Anthropic

Cancel message batch (Anthropic-compatible)

Cancels an Anthropic Message Batch when cancellation is still available for that batch.

post/v1/messages/batches/{message_batch_id}/cancel

Request

  • Base URL: https://api.tokenlab.sh
  • URL: https://api.tokenlab.sh/v1/messages/batches/{message_batch_id}/cancel
  • Auth: HTTP bearer

Path parameters

message_batch_idstring required

Anthropic message batch identifier

Response

Cancelled message batch

idstring required

Message batch identifier

type'message_batch' required
processing_statusstring required

Current processing status for the batch

request_countsobject required

Request count summary for the batch

ended_atstring nullable required

ISO timestamp when processing ended, when available

created_atstring required

ISO timestamp when the batch was created, when available

expires_atstring required

ISO timestamp when the batch expires, when available

cancel_initiated_atstring nullable required

ISO timestamp when cancellation was initiated, when available

archived_atstring nullable required

ISO timestamp when the batch was archived, when available

results_urlstring nullable required

Results URL, when available

Example response

{
  "id": "msgbatch_01ABC123",
  "processing_status": "in_progress"
}

Changes

No recorded changes to this operation across all 1 revision of this API.