Skip to main content
POST
Error

Authorizations

Authorization
string
header
required

API key passed as a Bearer token.

Body

multipart/form-data
file
file
required

The file to upload.

purpose
string
required

The intended purpose of the file (e.g. batch).

Response

Uploaded file object

id
string
object
string
Example:

"file"

bytes
integer<int64>
created_at
integer<int64>
filename
string
purpose
string