Retrieve file content
GET/v1/files/:file_id/content
Download the raw content of a batch's input, output or error file. The download works only when a batch tracked for this workspace references the file ID as its input, output or error file. From 1.13.0 the error file can be downloaded; the gateway records its ID when a poll of the batch reports one. A missing file and a file owned by another workspace both return 404. Downloading content does not poll or settle the batch.
Request
Responses
- 200
- 401
- 403
- 404
- 429
- 502
Raw file content
No key was sent (api_key_required), or the key is unknown (invalid_api_key), revoked (api_key_revoked) or expired (api_key_expired).
The key is valid but its nonempty scope list does not include batches:write (api_key_scope). On file upload and batch submit, a suspended workspace is also refused (workspace_suspended). On the Enterprise platform, upload and submit are also refused (policy_denied) when a JSONL line names a model the workspace may not use. The error names the first such line in line and custom_id. An IP rule can also refuse the call (ip_access_denied, Enterprise platform).
No batch in this workspace references the file ID as its input, output or error file (file_not_found).
The key's rate limit is reached (rate_limit_exceeded, with a Retry-After header).
Response Headers
Seconds to wait before retrying.
Every configured provider on the route (and every fallback) has failed.