Create a company
Creates a company record. Requires companies:write. Create can set custom fields in the same format as PATCH.
Body
namestringrequiredCompany name
created_ bystringuser ID of the record creator
assigned_ tostringuser ID to assign the company to
assigned_ bystringuser ID of the assigner
workflow_ idstringWorkflow ID to attach on creation. When omitted, the workspace default workflow for this item type is used (see GET /v4/workflows/defaults); without a default the record gets no workflow.
workflow_ phase_ idstringWorkflow phase ID to place the new company in. Requires workflow_id. Must belong to that workflow. When omitted, the workflow's default sourcing phase is used if set; otherwise the company is attached to the workflow without a phase.
primary_ document_ idstringfile ID for the primary document
custom_ fieldsobjectObject keyed by custom-field slug. Values may be strings, numbers, booleans, arrays, objects, or null. Image/file custom fields are read as image:<sqid> / file:<sqid> reference tokens and may be written with a linked object sqid or matching token.
Response
Company created
Invalid request body
Invalid API key
Insufficient scope
Validation error
Internal server error
Authorization
bearer_ authhttp (bearer) in headerAPI key or OAuth access token in Authorization header
Scopes: companies:write
oauth2_ authoauth2OAuth authorization code flow with mandatory S256 PKCE.
Scopes: companies:write
apikey_ authapiKey in queryAPI key in query string
Scopes: companies:write
