> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bland.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Cancel Pathway Translation Run

> Cancel a pending or running translation job.

### Overview

Marks a job started with [Start Pathway Translation](/api-v2/post/agents-migrate-translations) as `CANCELLED` and stops its background work. Only runs in `PENDING` or `RUNNING` status can be cancelled; once a run is `FINALIZING` (creating the agent) or already terminal, the request returns `409`. No body is required. Check the outcome with [Get Pathway Translation Run](/api-v2/get/agents-migrate-translations-run-id).

Requires an admin, owner, operator, or prompter role.

### Headers

<ParamField header="authorization" type="string" required>
  Your API key for authentication.
</ParamField>

### Path Parameters

<ParamField path="run_id" type="string" required>
  The run's unique identifier. Returns `400 INVALID_RUN_ID` if it is not a UUID and `404 TRANSLATION_RUN_NOT_FOUND` if no run with that ID exists in your organization.
</ParamField>

### Response

Returns `202` on success. The run's `error_code` becomes `TRANSLATION_CANCELLED` and no agent is created.

<ResponseField name="data.id" type="string">
  The cancelled run's ID.
</ResponseField>

<ResponseField name="data.status" type="string">
  Always `CANCELLED`.
</ResponseField>

<ResponseField name="errors" type="null | array">
  `null` on success, or a list of error objects if the request failed.
</ResponseField>

<ResponseExample>
  ```json Response theme={null}
  {
    "data": {
      "id": "7250267f-851e-4353-bf04-b9c8fa67be31",
      "status": "CANCELLED"
    },
    "errors": null
  }
  ```

  ```json Finalizing theme={null}
  {
    "data": null,
    "errors": [
      {
        "error": "TRANSLATION_RUN_FINALIZING",
        "message": "the run is already finishing — it can no longer be cancelled"
      }
    ]
  }
  ```

  ```json Already Finished theme={null}
  {
    "data": null,
    "errors": [
      {
        "error": "TRANSLATION_RUN_TERMINAL",
        "message": "the run already finished (COMPLETE)"
      }
    ]
  }
  ```

  ```json Not Found theme={null}
  {
    "data": null,
    "errors": [
      {
        "error": "TRANSLATION_RUN_NOT_FOUND",
        "message": "no translation run with that id"
      }
    ]
  }
  ```
</ResponseExample>

***

Docs for agents: [llms.txt](/llms.txt)
