Reserve a document upload slot

Step 1 of the two-step upload flow. Returns a presigned URL for direct PUT to storage. After uploading, call POST /documents/process to kick off processing.

Authentication

AuthorizationBearer

Pyramid API key (prefix with “Bearer ”)

Request

This endpoint expects an object.
file_namestringRequiredformat: "^[^/\\\\]+$"1-500 characters
File name only. Path separators are forbidden.
content_typestringRequired

MIME type. Must be in the allowed set (application/pdf, application/msword, text/plain, etc.).

size_bytesintegerRequired1-524288000
File size in bytes. Used for upload verification.
project_idstringOptionalformat: "uuid"

Which project this document belongs to. Optional — omit for organization-level documents.

Response

Document reserved with upload URL
request_idstringformat: "uuid"

Server-generated per-request UUID. Also sent as X-Request-Id response header. Include in support tickets.

successany
dataobject
paginationobject

Present only on list endpoints. Top-level (not nested inside data).

Errors

400
Bad Request Error
401
Unauthorized Error
404
Not Found Error