Retrieve a batch
GET/v1/batches/:batch_id
Return the provider's current batch object. On the first terminal retrieval, DVARA reads any output file and attempts to record usage and cost once. Accounting failure does not replace the provider response; a later retrieval retries the accounting step.
Request
Responses
- 200
- 401
- 403
- 404
- 502
Batch
No key was sent (api_key_required), or the key is unknown (invalid_api_key), revoked (api_key_revoked) or expired (api_key_expired).
The key is valid but its nonempty scope list does not include batches:write (api_key_scope). On file upload and batch submit, a suspended workspace is also refused (workspace_suspended). On the Enterprise platform, upload and submit are also refused (policy_denied) when a JSONL line names a model the workspace may not use. The error names the first such line in line and custom_id.
The batch is not tracked for this workspace.
Every configured provider on the route (and every fallback) has failed.