Retrieve a batch

Retrieve an OpenAI-compatible batch job by ID.

Authentication

AuthorizationBearer

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, OpenAI or Azure OpenAI provider credentials go in Settings -> Providers or the request body credential_override field, not in this auth field.

Path parameters

batch_idstringRequired
Batch ID.

Headers

X-Data-Respan-ParamsstringOptional

Base64-encoded JSON object of Respan request parameters. Legacy X-Data-Keywordsai-Params is still accepted.

Response

Batch details.
idstring
Batch ID.
statusenum
objectstring
endpointstring
input_file_idstring
output_file_idstring or null
Output file ID, available when the batch completes.
error_file_idstring or null
Error file ID, when provider errors are available.
completion_windowstring
created_atinteger
Unix timestamp.
in_progress_atinteger or null
expires_atinteger or null
finalizing_atinteger or null
completed_atinteger or null
failed_atinteger or null
expired_atinteger or null
cancelling_atinteger or null
cancelled_atinteger or null
request_countsobject
metadatamap from strings to any
errorsany or null
Provider error details, when available.

Errors

401
Unauthorized Error
404
Not Found Error