curl -X POST "https://api.bouncedetector.com/api/v1/batches/507f1f77bcf86cd799439011/cancel" \
-H "Authorization: Bearer YOUR_API_KEY"
{
"message": "Batch cancelled",
"batch": {
"_id": "507f1f77bcf86cd799439011",
"status": "cancelled",
"totalCount": 100,
"processedCount": 45,
"createdAt": "2025-03-09T14:25:00.000Z"
}
}
Batch
Cancel Batch
Cancel a pending or processing batch.
POST
/
api
/
v1
/
batches
/
{id}
/
cancel
curl -X POST "https://api.bouncedetector.com/api/v1/batches/507f1f77bcf86cd799439011/cancel" \
-H "Authorization: Bearer YOUR_API_KEY"
{
"message": "Batch cancelled",
"batch": {
"_id": "507f1f77bcf86cd799439011",
"status": "cancelled",
"totalCount": 100,
"processedCount": 45,
"createdAt": "2025-03-09T14:25:00.000Z"
}
}
Cancel a pending or processing batch. Completed or already cancelled batches cannot be cancelled.
Request
string
required
Batch ID to cancel
Response
string
Confirmation message
object
Updated batch with status
cancelledcurl -X POST "https://api.bouncedetector.com/api/v1/batches/507f1f77bcf86cd799439011/cancel" \
-H "Authorization: Bearer YOUR_API_KEY"
{
"message": "Batch cancelled",
"batch": {
"_id": "507f1f77bcf86cd799439011",
"status": "cancelled",
"totalCount": 100,
"processedCount": 45,
"createdAt": "2025-03-09T14:25:00.000Z"
}
}
Last modified on March 9, 2026
