List deals
curl --request GET \ --url 'https://example.com/api/v1/deals?page=1&perPage=25&outcome=OPEN' \ --header 'Authorization: Bearer <token>'Returns a paginated list of deals in the workspace. Members without deals.view_all see only the deals they own or reach through a company they can see. referrerClientId narrows to the deals on companies that company referred, and referrerContactId to those its rep referred.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Only deals lost for this reason, an id from the lost reasons list.
Only deals lost for this reason, an id from the lost reasons list.
Only deals on companies that this company referred.
Only deals on companies that this company referred.
Only deals on companies that this contact, a referring company’s rep, referred.
Only deals on companies that this contact, a referring company’s rep, referred.
Narrows the list as a company’s Deals tab does. A project id keeps the deals whose kickoff project it is plus its company’s General deals (no kickoff project, which is every open deal), and never another company’s; a project out of the caller’s reach answers 404. general keeps only the General deals of the company in clientId, which is then required: without exactly one clientId, or for a project that belongs to no company, the answer is 422.
Narrows the list as a company’s Deals tab does. A project id keeps the deals whose kickoff project it is plus its company’s General deals (no kickoff project, which is every open deal), and never another company’s; a project out of the caller’s reach answers 404. general keeps only the General deals of the company in clientId, which is then required: without exactly one clientId, or for a project that belongs to no company, the answer is 422.
Responses
Section titled “Responses”List of deals.
object
object
The deal’s field values. Present on GET /deals/{id} only; absent on lists, on write responses and on an older server.
One deal field with a deal’s value for it.
object
The deal field this value belongs to.
True when the deal holds a value, or at least one checklist item, for the field.
The items of a CHECKLIST field, in order; null while it has none and on every other kind.
object
What a deal field holds: a short text, a long text, a link, a day, one option of a list, a yes or no, or a checklist.
The options of a DROPDOWN field; empty for every other kind.
The value of every kind but CHECKLIST, null while the field is empty: the text (TEXT, MULTILINE), the address (URL), the day as YYYY-MM-DD (DATE), the chosen option (DROPDOWN), or “true” or “false” (CHECKBOX). Always null on a CHECKLIST field.
True when no project was kicked off from the deal, so it sits in its company’s General section, as the company’s Deals tab marks it. Returned by the list only; absent on an older server.
The kickoff project the won deal was handed to delivery in.
The name of the kickoff project, when the caller reaches that project; null otherwise. Returned by the list only; absent on an older server.
The optional note written beside the lost reason. A deal lost before reasons existed keeps its old text here.
The reason the deal was lost, an id from the lost reasons list; null on an open or won deal and on a deal lost before reasons existed. Absent on an older server.
Pagination metadata for list responses.
object
Example
{ "data": [ { "fields": [ { "kind": "TEXT" } ], "outcome": "OPEN" } ]}Unauthorized.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Forbidden.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Not found.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Invalid input.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Rate limit exceeded. Wait for Retry-After before retrying.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Headers
Section titled “Headers”Maximum requests in the current quota window.
Quota policy in requests and window seconds, for example 60;w=60.
Requests left in this quota window (zero when blocked).
Seconds until the current quota window resets, when available from the rate-limit store.
Seconds until another request may be attempted.
Chelsea is operated by Arepa Labs LLC