Batches
Cancel a batch
Changed onRequest cancellation of a batch. The batch stops scheduling new requests and drains in-flight work before settling to cancelled. Cancelling a batch that is already cancelling or cancelled is idempotent and returns the batch unchanged. A batch that has already reached a terminal status (completed or expired) cannot be cancelled and the request fails with a 409.
post/batches/{id}/cancel
Request
- Base URLhttps://api.exa.ai
- URLhttps://api.exa.ai/batches/{id}/cancel
- Auth
- API key in header x-api-key
- or HTTP bearer
Path parameters
idstring required
Batch ID.
Headers
Exa-Beta'batches-2026-06-06' required
Required beta token for the Batch API.
Response
OK
Changes
- info
added the non-success response with the status
- info
- warning
deleted the
headerrequest parameterExa-Version - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- warning