---
title: "Cancel Job"
method: POST
path: "/api/jobs/{job_id}/cancel"
tags: ["Scraping"]
---

# Cancel Job

`POST /api/jobs/{job_id}/cancel`

## Request

- Base URL: `https://api.kolens.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.kolens.ai/api/jobs/{job_id}/cancel`
- Auth: HTTP bearer

Cancel a queued job or request cancellation for a running job.

## Path parameters

- `job_id` string, required

## Headers

- `x-kolens-user-id` string, nullable
- `x-kolens-workspace-id` string, nullable

## Response `200`

Successful Response

- CancelJobResponse
  - `job_id` string, required
  - `status` string, required
  - `stage` string, nullable, required
  - `cancel_requested` boolean, required

## Other responses

- `422`: Validation Error

---

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