v3
latestOpenAPI 3.1.02026-07-311,4541,5202.3 MBopenAiBatch
Upload File
Upload a file to the provider.
Required fields:
- file: The file to upload (multipart/form-data)
- purpose: The purpose of the file (e.g., "batch", "assistants")
- provider_id: The provider to upload to (e.g., "openai", "parasail")
post/api/files/
Headers
Authorizationstring required
Use your Respan API key for Respan API authentication. Enter only the Respan API key value; clients send Authorization: Bearer <RESPAN_API_KEY>. For /api/responses, provider credentials such as Perplexity, OpenAI, or Azure OpenAI go in Settings -> Providers or respan_params.credential_override in the request body, not in this authentication field.
Response
No response body
OpenAIBatchUploadFileResponse200 required
Empty response body