batch
Retrieve a file
Read a file's metadata: size, purpose, and when it expires. Use the /content endpoint for the bytes.
get/v1/files/{file_id}
Path parameters
file_idstring required
The file_ prefixed id of the file whose metadata you want.
Example:file_9c2c1c3e-5b6a-4f0e-8d0f-2a1b3c4d5e6f
Identifies the file to read.
Response
File metadata.
Example response
{
"id": "file_9c2c1c3e-5b6a-4f0e-8d0f-2a1b3c4d5e6f",
"object": "file",
"bytes": 48211,
"created_at": 1780000000,
"expires_at": 1782592000,
"filename": "requests.jsonl",
"purpose": "batch",
"status": "uploaded"
}Changes
Changed in 1 of the 3 revisions of this API.1
- ○
endpoint added
endpoint-added
- ○