Skip to main content
GET
Get File

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

file_id
string
required
Example:

"file-eden-kuhiiahctna5jjywirtfkraaaa"

Response

Successful Response

Response for a file.

file_id
string
required

The file's id, to pass wherever an API call takes a file

Example:

"file-eden-kuhiiahctna5jjywirtfkraaaa"

file_name
string
required

File name as uploaded, made safe to save on any system: no folder path or leading dot, characters not allowed in file names replaced with _, and cut to 255 bytes, keeping an extension of up to 16 characters. A name left empty becomes upload.

file_size
integer
required

File size in bytes

file_mimetype
string
required

Detected MIME type

purpose
string
required

Purpose of the file (e.g., 'general', 'assistants')

created_at
string<date-time>
required

Upload timestamp

metadata
Metadata · object

File metadata (e.g., page_count for PDFs/documents)

expires_at
string<date-time> | null

Expiration timestamp