Deals
/api/dealsEvery deal in the organization.
deals:read/api/dealsCreate a deal.
deals:writeBody
| title* | string | Name of the deal. |
| value* | number | Deal value, zero or above. |
| stage* | string | One of your organization's pipeline stages. |
| probability* | number | 0 to 100. |
| openDate* | string | When the deal opened. |
| contact* | string | The id of the contact this deal belongs to. |
| description | string | Longer description. |
| comment | string | Free-text note. |
| closeDate | string | When the deal closed or is expected to. |
| customFields | object | Values for any custom deal fields. |
Returns. The created deal.
/api/dealsBulk import deals.
deals:writeBody
| (body)* | DealImportRow[] | An array of deals. Each row needs title, value and a configured stage, plus your organization's required custom deal fields. Link the record with contactEmail or contactPhone (or contact, a contact id) — the contact must already exist in your organization. |
Returns. { success, failed, errors, failures, imported }. `failures` gives a { row, reason } entry per rejected row, numbered against the array you sent. Probability defaults to the stage's configured probability and openDate defaults to today.
/api/deals/paginatedOne page of deals, with search and filters applied.
deals:readQuery parameters
| page | number | 1-based page number. Defaults to 1. |
| limit | number | Records per page. Defaults to 10. |
| searchQuery | string | Matches the deal title. |
| filters | json | A JSON array of filter rows. Supported fields: stage, month. |
Returns. { deals, totalPages, currentPage } with each deal's contact included.
/api/deals/{dealId}A single deal with its contact.
deals:readReturns. { deal }
/api/deals/{dealId}Update a deal.
deals:writeReturns. The updated deal. Moving a deal into a won stage can trigger the external database sync if it is configured.
/api/deals/{dealId}Delete a deal.
deals:delete/api/deals/refresh-stateA lightweight signal the interface uses to tell whether the deal list has changed.
deals:read