Create company
Create a new company record.
Required scopes: companies: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/company.create' \ -H 'Content-Type: application/json' \ -d '{ "input": { "name": "string" }}'{ "result": null, "commitId": "string", "eventId": "string", "idempotentReplay": true}Was this page useful?
Archive company POST
Take a company out of the lists without deleting anything: its contacts, deals, quotes, invoices, conversations and timeline stay with it, and company.unarchive brings it back. With detachContacts its contacts are unlinked first and stay in the lists as standalone contacts. Each change is a version in its history. Required scopes: companies:write. Needs confirmation: with an API key, send "approved": true beside the input, or it answers 409 APPROVAL_REQUIRED.
Delete company POST
Delete a company for good (admins only). Refused while the company has quotes or invoices; merge it instead. Its contacts, deals and leads stay without it, and its other names go with it. Its notes, tasks and timeline stay, and its history can bring it back. Required scopes: companies:admin. Needs confirmation: with an API key, send "approved": true beside the input, or it answers 409 APPROVAL_REQUIRED.