GET
/
v1
/
files
/
{file_id}

Get metadata for a previously uploaded 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

Response

200 - application/json

Response to the file upload API.

bytes
integer
required

Size of the file in bytes

filename
string
required

Name of the file

purpose
enum<string>
required

Purpose of the file

Available options:
assistants,
assistants_output,
batch,
batch_output,
fine-tune,
fine-tune-results,
vision
created_at
string

Date and time when the file was created (in UTC timezone)

id
string

Unique identifier of the file

object
string
default:
file

Type of the file

Allowed value: "file"