Cancel batch
Authentication
Path parameters
The unique identifier of the batch to cancel. Format: batch_xxxxx
The unique identifier of the batch to cancel. Format: batch_xxxxx
Cancel a batch job that is currently in progress. Cancellation is not immediate - the batch status will transition from cancelling to cancelled once the operation completes.
Important: Cancellation cannot be undone. Completed requests in the batch will still be billed, and you won’t get results for incomplete requests.
Customer credentials required: This endpoint requires your own OpenAI API key configured in Respan dashboard (Settings → Providers).
You can pass Respan tracking parameters via the X-Data-Respan-Params header:
batch_id string required: The unique identifier of the batch to cancel. Format: batch_xxxxx
Example
Returns the batch object with cancelling status. Poll the retrieve batch endpoint to check when cancellation completes.
API key authentication. Get your API key from https://platform.respan.ai/platform/api-keys