Upload file
POST
This feature is in Private Preview. For access or more information, contact us or reach out to your account representative.
Request
file
required
The file to upload. Must be a binary file.
string
required
The intended purpose of the file. Currently supported values:
batch: Input file for batch processing
object
The expiration policy for the file. Files with
purpose=batch expire after 7 days by default.Response
string
A unique identifier for the file.
string
The object type, which is always
file.string
The name of the uploaded file.
string
The intended purpose of the file.
integer
The size of the file in bytes.
integer
The Unix timestamp (in seconds) of when the file was created.
integer
The Unix timestamp (in seconds) of when the file will be automatically deleted.

