Retrieve a batch
Retrieve an OpenAI-compatible batch job by ID.
Path parameters
batch_id
Batch ID.
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.
Response
Batch details.
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
401
Unauthorized Error
404
Not Found Error