Create deal
Create a deal. If the linked company is still a Lead, advance it to Prospect (side effect).
Required scopes: deals:write. Runs at once.
bearerAuthAuthorizationBearer <token>An API key (flito_pat_…) from Settings, API & AI connections.
application/json- body
input*idempotencyKey?stringSend the same key to retry safely: the second call returns the first result.
length <= 255The capability ran.
application/json- response
result*unknownThe capability’s output.
commitId?|The config commit, for versioned records.
eventId?string|nullidempotentReplay?booleanTrue when this answer is a replay of an earlier call.
curl -X POST 'https://crm.yourcompany.com/api/cap/deal.create' \ -H 'Content-Type: application/json' \ -d '{ "input": { "name": "string", "documentType": "quote" }}'{ "result": null, "commitId": "string", "eventId": "string", "idempotentReplay": true}Was this page useful?
Watch POST
Take a sample of how the database is doing, and tell the admins and OPS_ALERT_EMAIL when it stays bad and when it recovers. Run every 5 minutes. Required scopes: integrations:write. Runs at once.
Delete deal POST
Delete a deal for good (admins only). Refused while the deal has quotes, invoices or envelopes; archive it instead. Required scopes: deals:admin. Needs confirmation: with an API key, send "approved": true beside the input, or it answers 409 APPROVAL_REQUIRED.