---
title: "Cancel a job"
method: POST
path: "/v1/jobs/{id}/cancel"
tags: ["Jobs & Batches"]
---

# Cancel a job

`POST /v1/jobs/{id}/cancel`

## Request

- Base URL: `https://api.talonic.com`
- URL: `https://api.talonic.com/v1/jobs/{id}/cancel`
- Auth: HTTP bearer

Cancel a pending or processing job. Jobs that are already `complete` or
`failed` cannot be cancelled and will return a 409 Conflict.

## Path parameters

- `id` string, uuid, required

## Response `200`

Job cancelled.

- JobResponse
  - `id` string, uuid, required
  - `name` string, nullable
  - `status` 'pending' | 'queued' | 'processing' | 'complete' | 'failed', required
  - `progress` integer, nullable: Percentage complete (0–100). Only present while `processing`.
  - `estimated_seconds_remaining` integer, nullable
  - `schema` object, nullable
    - `id` string, uuid
    - `name` string
  - `document_count` integer: Total documents in the job.
  - `completed_documents` integer: Documents that have finished processing.
  - `grid_stats` object, nullable: Grid fill statistics.
    - `total_cells` integer
    - `filled` integer
    - `empty` integer
    - `fill_rate` number, float
  - `current_phase` 'phase_1_resolve' | 'phase_2_strategy' | 'phase_2_execute' | 'phase_2_outliers' | 'phase_3_validation' | 'phase_4_reread' | 'completed' | 'error', nullable: Current pipeline phase.
  - `error` object, nullable: Present only when status is `failed`.
    - `code` string
    - `message` string
  - `created_at` string, date-time
  - `started_at` string, date-time, nullable
  - `completed_at` string, date-time, nullable
  - `links` object
    - `self` string
    - `cancel` string: Cancel URL. Only present for pending/processing jobs.
    - `dashboard` string, uri

## Other responses

- `401`: Missing or invalid API key.
- `403`: The API key does not have the required scope.
- `404`: The requested resource was not found.
- `409`: The request conflicts with the current resource state.
- `429`: Daily rate limit exceeded.

---

[API](https://skmtc.dev/talonic/apis/talonic-api.md) · [All operations](https://skmtc.dev/talonic/apis/talonic-api/llms.txt) · [OpenAPI document](https://skmtc.dev/talonic/apis/talonic-api/revisions/678fe5f8c9c3?raw)
