---
title: "Stop new dispatch and request sandbox termination"
method: POST
path: "/credits/workflow-runs/{runId}/cancel"
tags: ["Hosted Workflows"]
---

# Stop new dispatch and request sandbox termination

`POST /credits/workflow-runs/{runId}/cancel`

## Request

- Base URL: `https://api.paywithlocus.com/api`
- URL: `https://api.paywithlocus.com/api/credits/workflow-runs/{runId}/cancel`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer
  - HTTP bearer
  - HTTP bearer

Stops dispatching new work for the run and requests termination of its sandbox. Returns the updated run.

## Path parameters

- `runId` string, uuid, required

## Response `200`

Tenant-scoped durable Workflow run envelope

- object
  - `success` unknown, required
  - `replay` boolean
  - `run` object, required

---

[API](https://skmtc.dev/paywithlocus/apis/locus-pro-api.md) - [All operations](https://skmtc.dev/paywithlocus/apis/locus-pro-api/llms.txt) - [OpenAPI document](https://skmtc.dev/paywithlocus/apis/locus-pro-api/revisions/aab8fa5d6cef?raw)
