POST
/
v1
/
files

Authorizations

Authorization
string
headerrequired

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

Query Parameters

purpose
enum<string>
default: assistants
Available options:
assistants,
assistants_output,
batch,
batch_output,
fine-tune,
fine-tune-results,
vision

Body

multipart/form-data
file
file
required

Response

201 - application/json
id
string

Unique identifier of the file

filename
string
required

Name of the file

bytes
integer
required

Size of the file in bytes

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)

object
enum<string>
default: file

Type of the file

Available options:
file