Skip to main content
POST
/
files
Error
A valid request URL is required to generate request examples
{
  "id": "<string>",
  "object": "file",
  "bytes": 123,
  "created_at": 123,
  "filename": "<string>",
  "purpose": "<string>"
}

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