---
title: "Cancel Script Agent Run"
method: POST
path: "/api/v1/scripts/{script}/agent/runs/{run}/cancel"
tags: ["scripts"]
---

# Cancel Script Agent Run

`POST /api/v1/scripts/{script}/agent/runs/{run}/cancel`

## Request

- Base URL: `https://subscribr.ai`
- URL: `https://subscribr.ai/api/v1/scripts/{script}/agent/runs/{run}/cancel`
- Auth: HTTP bearer

## Response `200`

Successful response.

- CancelScriptAgentRunResponse
  - `cancelled` boolean, required
  - `message` string, required
  - `refunded` boolean, required
  - `run_id` integer, required
  - `status` string, required

## Other responses

- `400`: The request could not be processed.
- `401`: Authentication is required.
- `403`: The token, role, entitlement, or object policy denies this action.
- `404`: The resource was not found or is not visible.
- `422`: One or more request fields are invalid.
- `429`: The request exceeded a rate limit.
- `500`: The service is temporarily unavailable.

---

[API](https://skmtc.dev/subscribr/apis/subscribr-customer-api.md) · [All operations](https://skmtc.dev/subscribr/apis/subscribr-customer-api/llms.txt) · [OpenAPI document](https://skmtc.dev/subscribr/apis/subscribr-customer-api/revisions/d1f105b58bbd?raw)
