Skip to navigation

Get a short-lived download link for a generated or uploaded file

file_id is a generated file from a chat reply, or a file uploaded through POST /api/v2/files. It must belong to the user who created the API key; anything else answers 404.

Authentication

AuthorizationBearer

Pyramid API key (prefix with “Bearer ”)

Path parameters

file_idstringRequired

Query parameters

ttlintegerOptional60-3600Defaults to 300
Seconds the link stays valid

Response

Download link
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
404
Not Found Error