Skip to main content
documents

Create /documents

Create a document. Required: name, client (client UUID). Optional: contact person, project, object, objects, opportunity, organization, assignees, status, category, type, dates, numbers, description, flags, and custom fields. Returns record with the detail projection.

POST
/documents
Authorizationstringheaderrequired

API key (Bearer token) created in Setup → API & MCP.

Body

application/json
allow_to_send_with_sales_docsstring

Allow sending with sales documents.

assigneesstring[]

Responsible person staff UUIDs. On update, replaces the full assignee list when sent.

categorystring

Document category picklist value UUID.

clientstringrequired

Client UUID.

contact_personstring

Contact person UUID.

custom_fieldsobject[]

Custom field values by slug.

date_sendstring

Date send (Y-m-d).

descriptionstring

Description.

document_datestring

Document date (Y-m-d).

document_numberstring

Document number.

is_asserted_consistentlystring

Asserted consistently (e-sign ordering).

namestringrequired

Document title.

objectstring

Related object UUID (legacy single link).

objectsstring[]

Related object UUIDs. On update, replaces the full list when sent.

opportunitystring

Related opportunity UUID.

organizationstring

Organization UUID.

projectstring

Related project UUID.

receive_datestring

Receive date (Y-m-d).

recipient_addressstring

Recipient address.

registration_numberstring

Registration number.

show_to_clientstring

Visible in client portal.

statusstring

Document status picklist value UUID.

text_descriptionstring

Text description / body content.

typestring

Document type picklist value UUID.

valid_tillstring

Valid till date (Y-m-d).

Response

application/json

Success

recordobject

Fields enabled for this documentation instance (projection enabled: feature, option, subdomain, closures) plus account-level form field visibility. Role- and user-level field overrides are not applied here, so an API key whose staff user has such overrides may receive fewer fields. A disabled field is omitted from the response object entirely; a present key with a null value means the record simply has no value.