Get a deal
curl --request GET \ --url https://example.com/api/v1/deals/example \ --header 'Authorization: Bearer <token>'Returns a single deal by ID, with fields: the deal’s value for each field shown on deals, in the workspace’s order. Members without deals.view_all can only read deals they own.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Deal identifier (CUID2).
Deal identifier (CUID2).
Responses
Section titled “Responses”Deal.
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.
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" }}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