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_name
File name only. Path separators are forbidden.
content_type
MIME type. Must be in the allowed set (application/pdf, application/msword, text/plain, etc.).
size_bytes
File size in bytes. Used for upload verification.
project_id
Which project this document belongs to. Optional — omit for organization-level documents.
Response
Document reserved with upload URL
request_id
Server-generated per-request UUID. Also sent as X-Request-Id response header. Include in support tickets.
success
data
pagination
Present only on list endpoints. Top-level (not nested inside data).
Errors
400
Bad Request Error
401
Unauthorized Error
404
Not Found Error