Batch Calls
Cancel Batch Operation
Cancel a batch call operation and stop any remaining calls from being processed
DELETE
Headers
API key used for authenticating requests to the API.
Workspace identifier for the API.
Path Parameters
The unique identifier of the batch call operation to cancel
Response
The ID of the cancelled batch
New status of the batch (will be “cancelled”)
Confirmation message about the cancellation
Summary of the cancellation impact
Example Usage
Example Response
Cancellation Behavior
When you cancel a batch operation:
- Queued Calls: All calls waiting in the queue are immediately cancelled and will not be processed
- Active Calls: Currently active calls will continue to completion but no new calls will start
- Completed Calls: Already completed calls are not affected
- Batch Status: The batch status is updated to “cancelled”
- History: The cancellation is recorded in the batch history
Error Responses
Error message describing what went wrong
Additional context about the error
The batch ID that was not found (for 404 errors)
Common Error Codes:
404
- Batch not found with the specified ID500
- Server error during cancellation process
Use Cases
- Stop a batch operation that was started with incorrect data
- Cancel remaining calls when you’ve achieved your campaign goals
- Emergency stop for batch operations
- Cost control by stopping long-running batches
Important Notes
- Cancellation cannot be undone
- You will still be charged for completed calls
- Active calls at the time of cancellation will finish normally
- The batch cannot be restarted after cancellation