Create a batch
Create a new batch processing job from an uploaded JSONL file.
Headers
Authorization
Bearer token. Use Bearer YOUR_API_KEY.
Request
This endpoint expects an object.
input_file_id
ID of the uploaded JSONL file. Get from Upload file endpoint.
endpoint
API endpoint for batch requests.
Allowed values:
completion_window
Processing time frame.
Allowed values:
metadata
Custom key-value pairs for tracking.
customer_identifier
End user identifier.
custom_identifier
Custom identifier for fast querying.
thread_identifier
Conversation thread ID.
environment
Environment tag.
Response
Created batch.
id
Batch ID.
status
Batch status.
input_file_id
output_file_id
Output file ID (available when completed).
error_file_id
Error file ID (if errors occurred).
endpoint
completion_window
created_at
completed_at
request_counts
metadata
Errors
401
Unauthorized Error