---
title: "Cancel an agent execution"
method: DELETE
path: "/v1/agent/runs/{runId}"
tags: ["Agent Execution"]
---

# Cancel an agent execution

`DELETE /v1/agent/runs/{runId}`

## Request

- Base URL: `https://api.marketintell.ai`
- URL: `https://api.marketintell.ai/v1/agent/runs/{runId}`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Key`

Cancel a tenant-owned pending or running workflow execution.

## Path parameters

- `runId` string, uuid, required

## Response `200`

Run canceled

- object

## Other responses

- `404`: Run not found or owned by another key
- `409`: Run already completed or failed and can no longer be canceled

---

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