Retrieve a file
GET/v1/files/:file_id
The file's metadata. Download its bytes from /v1/files/{file_id}/content.
Request
Responses
- 200
- 400
- 401
- 404
- 422
- 503
The file.
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).
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).