---
title: "Cancel a running automation. Idempotent: returns current status if already terminal. Only works for async/SSE runs, not synchronous."
method: POST
path: "/tinyfish-agent/v1/runs/{id}/cancel"
tags: ["TinyFish Agent"]
---

# Cancel a running automation. Idempotent: returns current status if already terminal. Only works for async/SSE runs, not synchronous.

`POST /tinyfish-agent/v1/runs/{id}/cancel`

## Request

- Base URL: `https://api.orthogonal.com/mpp`
- URL: `https://api.orthogonal.com/mpp/tinyfish-agent/v1/runs/{id}/cancel`
- Auth: none declared
- TypeScript: <https://skmtc.dev/orthogonal/apis/orthogonal-api-marketplace/docs/tinyfish-agent/v1/runs/:id/cancel/post.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `id` string, required

## Response `200`

Successful response

## Other responses

- `402`: Payment Required (x402 / MPP / np)

## Changes

- **2026-11-08** `857e915717f4`: 1 breaking
  - added the new path request parameter `id`
- **2026-09-20** `79a8e1b08435`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/orthogonal/apis/orthogonal-api-marketplace/changes/tinyfish-agent/v1/runs/:id/cancel/post.md)

---

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