---
title: "Cancel a parsing job"
method: PATCH
path: "/v1/parsing/jobs/{job_id}"
tags: ["parsing"]
---

# Cancel a parsing job

`PATCH /v1/parsing/jobs/{job_id}`

## Request

- Base URL: `https://api.mixedbread.com`
- URL: `https://api.mixedbread.com/v1/parsing/jobs/{job_id}`
- Auth: HTTP bearer

Cancel a specific parse job.

Args:
    job_id: The ID of the parse job to cancel.

Returns:
    The cancelled parsing job.

## Path parameters

- `job_id` string, uuid, required: The ID of the parse job to cancel

## Response `200`

The cancelled parse job

- ParsingJobResponse: A parsing job with its result narrowed to the public fields.
  - `id` string, required: The ID of the job
  - `file_id` string, required: The ID of the file to parse
  - `filename` string, nullable: The name of the file
  - `status` 'pending' | 'in_progress' | 'cancelled' | 'completed' | 'failed', required: The lifecycle of a unit of background work. One vocabulary for every job family. The database keeps a separate enum type per table (``parsing_job_status``, ``store_file_status``, ...) but they all carry these values, so the aliases below are this enum rather than copies of it. :class:`SyncStatus` is this set plus ``IDLE`` for connectors, which have a resting state between runs.
  - `error` object, nullable: The error of the job
  - `result` DocumentParserResultResponse: The public result of a parsing job.
    - `chunking_strategy` 'page', required: Strategy used for chunking document content.
    - `return_format` 'html' | 'markdown' | 'plain', required: Format options for the returned document content.
    - `element_types` ElementType[], required: The types of elements extracted
    - `chunks` ChunkResponse[], required: List of extracted chunks from the document
      - `content` string, nullable: The full content of the chunk
      - `content_to_embed` string, required: The content of the chunk to embed
      - `elements` ChunkElementResponse[], required: List of elements contained in this chunk
        - `type` 'header' | 'footer' | 'title' | 'section-header' | 'page-number' | 'list-item' | 'figure' | 'table' | 'form' | 'text' | 'footnote', required: Types of elements that can be extracted from a document.
        - `confidence` number, required: The confidence score of the extraction
        - `bbox` unknown[], required: The bounding box coordinates [x1, y1, x2, y2]
          - unknown
        - `page` integer, required: The page number where the element was found
        - `content` string, required: The extracted text content of the element
        - `summary` string, nullable: A brief summary of the element's content
        - `image` string, nullable: The base64-encoded image data for figure elements
    - `page_sizes` array[]: List of (width, height) tuples for each page
      - unknown[]
        - unknown
  - `started_at` string, date-time, nullable: The started time of the job
  - `finished_at` string, date-time, nullable: The finished time of the job
  - `created_at` string, date-time: The creation time of the job
  - `updated_at` string, date-time, nullable: The updated time of the job
  - `object` 'parsing_job': The type of the object

## Other responses

- `422`: Validation Error

## Changes

- **2026-07-26** `587cbdf607b0`: 2 info
  - added `#/components/schemas/DocumentParserResultResponse` to the `result` response property `anyOf` list for the response status `200`
  - removed `#/components/schemas/DocumentParserResult` from the `result` response property `anyOf` list for the response status `200`

[Operation history](https://skmtc.dev/mixedbread/apis/mxbai-omni/changes/v1/parsing/jobs/:job_id/patch.md)

---

[API](https://skmtc.dev/mixedbread/apis/mxbai-omni.md) - [All operations](https://skmtc.dev/mixedbread/apis/mxbai-omni/llms.txt) - [OpenAPI document](https://skmtc.dev/mixedbread/apis/mxbai-omni/revisions/da24b4f7e983?raw)
