Upload batch input file
POST
/v1/filesUpload a JSONL file that will be used as the input for POST /v1/batches. Set purpose=batch.
Authentication
Authorization Bearer
Request Body
multipart/form-data
filefilerequiredJSONL file. Max 200 MB. Extension must be .jsonl when purpose=batch.
purposestringrequiredMust be batch for batch input files.
asset_groupstringOptional storage group. Console uploads often use library.
ttl_secondsintegerOptional time-to-live for the stored file.
Response
idstringFile ID. Pass as input_file_id when creating a batch.
objectstringfile
bytesintegerFile size in bytes.
created_atintegerUnix timestamp.
filenamestringOriginal filename.
purposestringbatch
statusstringe.g. processed
Was this page helpful?