Skip to main content
POST
Cancels a batch:
  • A batch still validating ends at once, with nothing checked or billed.
  • A batch in_progress moves to canceling. Messages not yet started are canceled and not billed. Messages already checked keep their results and are billed. The batch then finalizes and ends, with the results so far.
Canceling a batch that is already canceling or finalizing returns its current state. Needs a full-access API key.

Path Parameters

string
required
The batch to cancel.

Response

The batch, in the shape returned by Get a Batch.

Errors