Start a file upload
Registers the document and returns a URL to upload its bytes to, valid for 15 minutes. Call the confirm endpoint afterwards: until you do, the document is not visible anywhere, because the server has not yet checked that the bytes match what you declared. An upload that is never confirmed is discarded automatically after an hour.
Headers
Idempotency-KeyUnique key that makes this POST safe to retry: repeats with the same key replay the first response instead of re-executing. Replays are scoped to the retrying principal (same API key / user) and kept for 24 hours. Required on every POST.
Client-generated idempotency key (e.g. a UUID).
X-Workspace-IdSelects the workspace this request operates in, by workspace UUID or slug (e.g. a sandbox workspace for test integrations). Omitted: the organization's default live workspace. Unknown workspace: 404; workspace outside your organization: 403. Discover workspaces via GET /workspaces.
Workspace UUID or slug.
Start a file upload › Request Body
categoryWhat the document is. Decides the size cap and the accepted formats.
declared_content_typeThe format you believe the file is. The server checks the file's actual bytes when you confirm the upload, and rejects a file that disagrees.
declared_sizeThe file's size in bytes. Checked against the limit for this category before the upload starts, and again against the real size afterwards.
filenameThe file's name, shown in lists.
owner_idThe owning record's UUID.
owner_kindWhat this document hangs off.
visibilityDefaults to internal. Set shared to also show the document to the customer.
Start a file upload › Responses
OK
Delete a file
Removes the document immediately from every list and revokes any download link. The stored bytes are erased shortly afterwards.
path Parameters
idFile UUID
query Parameters
reasonOptional note recorded with the deletion.
Headers
X-Workspace-IdSelects the workspace this request operates in, by workspace UUID or slug (e.g. a sandbox workspace for test integrations). Omitted: the organization's default live workspace. Unknown workspace: 404; workspace outside your organization: 403. Discover workspaces via GET /workspaces.
Workspace UUID or slug.
Delete a file › Responses
No Content
Change whether a file is shared with the customer
Visibility is the only editable field. The name, the category and the record a document belongs to are fixed when it is uploaded.
path Parameters
idFile UUID
Headers
X-Workspace-IdSelects the workspace this request operates in, by workspace UUID or slug (e.g. a sandbox workspace for test integrations). Omitted: the organization's default live workspace. Unknown workspace: 404; workspace outside your organization: 403. Discover workspaces via GET /workspaces.
Workspace UUID or slug.
Change whether a file is shared with the customer › Request Body
visibilityinternal keeps the document on the operator surfaces; shared also shows it to the customer.
Change whether a file is shared with the customer › Responses
OK
Confirm an uploaded file
Checks the uploaded bytes — their size, their real format and their checksum — and makes the document available. Returns 422 when the file is not what was declared or is not an accepted format for its category; the document is then held aside rather than published, and cannot be downloaded.
path Parameters
idFile UUID
Headers
Idempotency-KeyUnique key that makes this POST safe to retry: repeats with the same key replay the first response instead of re-executing. Replays are scoped to the retrying principal (same API key / user) and kept for 24 hours. Required on every POST.
Client-generated idempotency key (e.g. a UUID).
X-Workspace-IdSelects the workspace this request operates in, by workspace UUID or slug (e.g. a sandbox workspace for test integrations). Omitted: the organization's default live workspace. Unknown workspace: 404; workspace outside your organization: 403. Discover workspaces via GET /workspaces.
Workspace UUID or slug.
Confirm an uploaded file › Responses
OK
Get a download link for a file
Returns a temporary link to the file's bytes, valid for 5 minutes. Only available once the upload has been confirmed.
path Parameters
idFile UUID
Headers
X-Workspace-IdSelects the workspace this request operates in, by workspace UUID or slug (e.g. a sandbox workspace for test integrations). Omitted: the organization's default live workspace. Unknown workspace: 404; workspace outside your organization: 403. Discover workspaces via GET /workspaces.
Workspace UUID or slug.
Get a download link for a file › Responses
OK