---
title: "Cancel batch job (Anthropic format)"
method: POST
path: "/anthropic/v1/messages/batches/{batch_id}/cancel"
tags: ["Anthropic Integration"]
---

# Cancel batch job (Anthropic format)

`POST /anthropic/v1/messages/batches/{batch_id}/cancel`

Cancels a batch processing job.

## Path parameters

- `batch_id` string, required

## Headers

- `x-model-provider` string

## Response `200`

Successful response

- object
  - `id` string
  - `type` string
  - `processing_status` 'in_progress' | 'ended' | 'canceling'
  - `request_counts` object
    - `processing` integer
    - `succeeded` integer
    - `errored` integer
    - `canceled` integer
    - `expired` integer
  - `ended_at` string, date-time, nullable
  - `created_at` string, date-time
  - `expires_at` string, date-time
  - `archived_at` string, date-time, nullable
  - `cancel_initiated_at` string, date-time, nullable
  - `results_url` string, nullable

## Other responses

- `400` — Bad request
- `500` — Internal server error

---

[API](https://skmtc.net/getbifrost/apis/bifrost-api.md) · [All operations](https://skmtc.net/getbifrost/apis/bifrost-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/getbifrost/bifrost-api/versions/f8cab88f64ea/schema)
