Upload file
Authentication
Request
The file to upload. Must be a valid JSONL (JSON Lines) file for batch processing.
The intended purpose of the file. For batch jobs, use “batch”. Supported values: - “batch” - For use with the Batch API
The file to upload. Must be a valid JSONL (JSON Lines) file for batch processing.
The intended purpose of the file. For batch jobs, use “batch”. Supported values: - “batch” - For use with the Batch API
Upload a file for use with OpenAI Batch API. The uploaded file is stored on OpenAI’s servers and can be used to create batch jobs for asynchronous LLM request processing.
Customer credentials required: This endpoint requires your own OpenAI API key configured in Respan dashboard (Settings → Providers). Respan passes the request through to OpenAI’s infrastructure.
The request must use multipart/form-data encoding.
file file required: The file to upload. Must be a valid JSONL (JSON Lines) file for batch processing.
Example JSONL format
purpose string required: The intended purpose of the file. For batch jobs, use "batch".
Supported values:
"batch" - For use with the Batch APIReturns a file object with metadata about the uploaded file.
API key authentication. Get your API key from https://platform.respan.ai/platform/api-keys