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

# Cancel a running job

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

## Request

- Base URL: `https://api.toksta.com`
- URL: `https://api.toksta.com/v1/jobs/{id}/cancel`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/toksta/apis/toksta-public-api/docs/v1/jobs/:id/cancel/post.ts> (a function with typed inputs; its response is checked against the schema)

Cancel a running creator-discovery job. The `{id}` path parameter must be a **plain UUID**. A JSON body is required even when empty — send `{}` (sending no body returns `400 Request body must be valid JSON`). Already-terminal jobs return `canceled: false` with a `reason`.

## Path parameters

- `id` string, required

## Request body

- object: Empty object `{}` is valid.

## Response `200`

Cancellation result.

- object: Cancellation result.
  - `success` true, required
  - `data` object, required: Operation payload. See the example for the exact field structure.
  - `meta` object, required
    - `request_id` string, required
    - `trace_id` string

## Other responses

- `400`: Bad request or validation error (`BAD_REQUEST` / `VALIDATION_ERROR`).
- `401`: Missing, invalid, or revoked API key.
- `402`: Insufficient credits for this operation.
- `403`: API access disabled or workspace entitlement required.
- `404`: Resource not found, or result expired past retention.
- `429`: Rate limit exceeded — back off per `Retry-After`.
- `500`: Unexpected server error.
- `501`: Endpoint is registered but not implemented yet.

---

[API](https://skmtc.dev/toksta/apis/toksta-public-api.md) - [All operations](https://skmtc.dev/toksta/apis/toksta-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/toksta/apis/toksta-public-api/revisions/a8cf8189fdd1?raw)
