CreateFileResponse
March 9, 2026 ยท View on GitHub
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
id | str | :heavy_check_mark: | The unique identifier of the file. | 497f6eca-6276-4993-bfeb-53cbbbba6f09 |
object | str | :heavy_check_mark: | The object type, which is always "file". | file |
size_bytes | int | :heavy_check_mark: | The size of the file, in bytes. | 13000 |
created_at | int | :heavy_check_mark: | The UNIX timestamp (in seconds) of the event. | 1716963433 |
filename | str | :heavy_check_mark: | The name of the uploaded file. | files_upload.jsonl |
purpose | models.FilePurpose | :heavy_check_mark: | N/A | |
sample_type | models.SampleType | :heavy_check_mark: | N/A | |
num_lines | OptionalNullable[int] | :heavy_minus_sign: | N/A | |
mimetype | OptionalNullable[str] | :heavy_minus_sign: | N/A | |
source | models.Source | :heavy_check_mark: | N/A | |
signature | OptionalNullable[str] | :heavy_minus_sign: | N/A | |
expires_at | OptionalNullable[int] | :heavy_minus_sign: | N/A | |
visibility | OptionalNullable[models.FileVisibility] | :heavy_minus_sign: | N/A |