Get detailed information and metadata about a specific uploaded file
| Parameter | Type | Required | Description |
|---|---|---|---|
file_id | string | Yes | The ID of the file to retrieve |
| Field | Type | Description |
|---|---|---|
id | string | Unique identifier for the file |
object | string | Always “file” |
bytes | integer | Size of the file in bytes |
created_at | integer | Unix timestamp of when the file was created |
filename | string | Original name of the uploaded file |
purpose | string | The purpose specified when the file was uploaded |
status | string | Processing status: “uploaded”, “processed”, “error” |
status_details | string | Additional details about the status (if applicable) |
| Status | Description |
|---|---|
uploaded | File has been uploaded but not yet processed |
processed | File has been successfully processed and is ready for use |
error | An error occurred during file processing |
| Status Code | Error Type | Description |
|---|---|---|
404 | file_not_found | File with the specified ID does not exist |
401 | authentication_error | Invalid or missing API key |
403 | permission_denied | File belongs to a different organization |