Create a batch
Create an OpenAI-compatible batch processing job from an uploaded JSONL file.
Headers
Authorization
Bearer token. Use Bearer YOUR_API_KEY for API key auth.
X-Data-Respan-Params
Base64-encoded JSON object of Respan request parameters. Legacy X-Data-Keywordsai-Params is still accepted.
Request
This endpoint expects an object.
input_file_id
Uploaded JSONL file ID.
endpoint
Endpoint each JSONL request targets.
Allowed values:
completion_window
Allowed values:
metadata
Custom metadata for tracking.
customer_identifier
End-user identifier for logging.
custom_identifier
Custom identifier for querying.
thread_identifier
Conversation thread identifier.
environment
Environment tag.
Response
Created batch.
id
Batch ID.
status
object
endpoint
input_file_id
output_file_id
Output file ID, available when the batch completes.
error_file_id
Error file ID, when provider errors are available.
completion_window
created_at
Unix timestamp.
in_progress_at
expires_at
finalizing_at
completed_at
failed_at
expired_at
cancelling_at
cancelled_at
request_counts
metadata
errors
Provider error details, when available.
Errors
400
Bad Request Error
401
Unauthorized Error