Upload file

Upload a file that can be used with the Batch API. The Batch API only supports .jsonl files with a specific required format.

Body Params
string
required

The file object (not file name) to be uploaded.

string
required

The intended purpose of the uploaded file. Currently, this value must be set to batch.

Responses

5XX

Server Error

This indicates our servers are experiencing high traffic or having an unexpected issue. Please see our Error Codes guide.

Language
Credentials
Header
Request
Response
Choose an example:
application/json