---
title: "Cancel Team Run"
method: POST
path: "/teams/{team_id}/runs/{run_id}/cancel"
tags: ["Teams"]
---

# Cancel Team Run

`POST /teams/{team_id}/runs/{run_id}/cancel`

## Request

- The document declares no server URL.
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/agno/apis/agno-api-reference/docs/teams/:team_id/runs/:run_id/cancel/post.ts> (a function with typed inputs; its response is checked against the schema)

Cancel a currently executing team run. This will attempt to stop the team's execution gracefully.

**Note:** Cancellation may not be immediate for all operations.

## Path parameters

- `team_id` string, required
- `run_id` string, required

## Query parameters

- `session_id` string, nullable: Session ID the run belongs to. Required for non-admin JWT users.

## Response `200`

Successful Response

- unknown

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `404`: Team not found
- `422`: Validation Error
- `500`: Failed to cancel team run

---

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