Skip to main content
POST
Upload file

Authorizations

Authorization
string
header
required

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

Query Parameters

ai_project_id
string | null

Project ID to upload file to

Body

multipart/form-data
file
string
required
purpose
enum<string>
required
Available options:
batch,
fine-tune,
history

Response

Successful Response

id
string
required
bytes
integer
required
created_at
integer
required
filename
string
required
purpose
string
required
object
string
default:file
status
string | null
status_details
string | null