Download a file's content
GET/v1/files/:file_id/content
The file's bytes, with its original type and name. A batch's output file is held while its organization owes for the batch's usage.
Request
Responses
- 200
- 400
- 401
- 402
- 404
- 422
- 503
The file's bytes.
An invalid parameter (invalid_value), an unsupported type (unsupported_file_type), or a batch input that is not a .jsonl file (invalid_file).
Missing or invalid Authorization: Bearer mdb_… (invalid_credentials).
A batch's output file, held until the organization's balance is back to zero.
No file with this id, or it has expired or belongs to someone else (file_not_found).
Validation Error
The Files API is unavailable (files_api_unavailable).