---
title: "Cancel an in-flight run"
method: POST
path: "/v1/agents/{agentID}/runs/{runID}/cancel"
---

# Cancel an in-flight run

`POST /v1/agents/{agentID}/runs/{runID}/cancel`

## Request

- Base URL: `https://api.plori.ai`
- URL: `https://api.plori.ai/v1/agents/{agentID}/runs/{runID}/cancel`
- Auth: HTTP bearer

Requests cancellation; cascades to any child runs the run delegated to.

## Path parameters

- `agentID` string, uuid, required
- `runID` string, required

## Response `202`

Cancellation requested.

- object
  - `runId` string
  - `status` 'cancelling'

## Other responses

- `401`: Missing or invalid credential.
- `403`: The resource belongs to another account.
- `404`: No such resource.
- `409`: Run already finished.

---

[API](https://skmtc.dev/plori/apis/plori-rest-api.md) · [All operations](https://skmtc.dev/plori/apis/plori-rest-api/llms.txt) · [OpenAPI document](https://skmtc.dev/plori/apis/plori-rest-api/revisions/15c4f9260dff?raw)
