v3
latestOpenAPI 3.1.02026-07-3197486526.1 KBRetrieve batch status
Use this method to monitor a batch. The response includes the current batch status and counts for queued, processing, ready, failed, and canceled items.
Poll this method until the batch reaches the completed, canceled, or expired status. To retrieve the results, call the GET method of the /analyze/batches/{batch_id}/results endpoint.
Do not treat the completed status as a success signal. It means processing has finished for every item, not that every analysis succeeded. To see how many items succeeded, failed, or were canceled, check the ready_items, failed_items, and canceled_items fields. A batch never has the failed status.
Path parameters
The unique identifier of the batch.
Headers
Your API key.
<Note title="Note"> You can find your API key on the <a href="https://playground.twelvelabs.io/dashboard/api-keys" target="_blank">API Keys</a> page. </Note>Response
Batch status retrieved successfully. The response includes batch details and item counts for each item status.