Create a deal
create_dealOpen a deal, optionally linked to a contact (by id or email) and a company. Stages: lead, contacted, qualified, proposal, won, lost. The deal takes its contact's company unless company_id is given. Unknown arguments are rejected with unknown_field. Requires the write_crm scope.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stage | No | lead (default), contacted, qualified, proposal, won or lost. | |
| title | Yes | Deal title. | |
| fields | No | Free-form custom columns, for example {"stack":"Next.js","funding":"seed"}. Values are strings or numbers. | |
| source | No | Where it came from. | |
| currency | No | 3-letter code, default EUR. | |
| company_id | No | Company id. | |
| contact_id | No | Contact id. | |
| value_cents | No | Deal value in cents. | |
| contact_email | No | Link the contact with this email. | |
| idempotency_key | No | Optional. Repeating a call with the same key and the same arguments returns the first result instead of writing again, so retries are safe. |