Skip to navigation

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_namestringRequired<=255 characters
content_typeenumRequired
size_bytesintegerRequired1-524288000
Exact size of the file. The upload must match it.

Response

Reserved file and where to send its bytes
request_idstringformat: "uuid"

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

successany
dataobjectOptional
paginationobjectOptional

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

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error