Skip to main content
POST
/
api
/
v1
/
batch
/
cancel
Cancel Batch
curl --request POST \
  --url https://sa.dialgen.ai/api/v1/batch/cancel \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "batchId": "batch_123...",
  "status": "cancelled",
  "cancelledJobs": 50,
  "message": "Batch processing cancelled successfully"
}

Authorizations

Authorization
string
header
required

Bearer token authentication. Obtain your API key from the Dialgen API Keys dashboard at https://sa.dialgen.ai/api-keys

Query Parameters

batchId
string
required

The ID of the batch to cancel

Example:

"batch_123..."

Response

Batch cancelled successfully

success
boolean
batchId
string
status
string
cancelledJobs
number
message
string