← Back to TinyFish
POST/v1/runs/{id}/cancel
Cancel run
Cancel a running automation. Idempotent: returns current status if already terminal. Only works for async/SSE runs, not synchronous.
TinyFish·$0 per call
Example code
// Using @orth/sdk - The simplest way to call APIs
// Install: npm install @orth/sdk
import Orthogonal from "@orth/sdk";
const orthogonal = new Orthogonal({
apiKey: process.env.ORTHOGONAL_API_KEY,
});
const output = await orthogonal.run({
api: "tinyfish/agent",
path: "/v1/runs/{id}/cancel"
});
console.log(output);