Skip to main content
GET
Retrieve 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

The ID of the file to use for this request.

Response

The File Object matching the specified ID.

id
string

Auto-assigned UUID file identifier.

Example:

"file-abc123"

object
string

Object type, which will always be 'file'.

Example:

"file"

bytes
integer

Size of the uploaded file in bytes.

Example:

120000

created_at
integer

Unix timestamp for when the file was created.

Example:

1677610602

filename
string

The name of the uploaded file.

Example:

"mydata.txt"

purpose
string

The purpose of the uploaded file.

Example:

"fine-tune"