Reserve a file to attach to an agentic turn
Step 1 of an upload. Declare the name, type and exact size, then PUT the bytes
to upload.url with the same API key, then name the file_id in
messages[].files. PDF, PNG, JPEG, Markdown, XLSX and DOCX, up to 500 MB.
The file is a chat attachment; it does not enter the knowledge library.
Authentication
AuthorizationBearer
Pyramid API key (prefix with “Bearer ”)
Request
This endpoint expects an object.
file_name
content_type
size_bytes
Exact size of the file. The upload must match it.
Response
Reserved file and where to send its bytes
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
403
Forbidden Error