---
title: "Cancel an in-flight agent run"
method: DELETE
path: "/public/agent/jobs/{jobId}"
tags: ["Agent"]
---

# Cancel an in-flight agent run

`DELETE /public/agent/jobs/{jobId}`

## Request

- Base URL: `https://api.johnsessentials.com/api/v1`
- URL: `https://api.johnsessentials.com/api/v1/public/agent/jobs/{jobId}`
- Auth: HTTP bearer

## Path parameters

- `jobId` string, uuid, required

## Response `200`

Cancellation accepted.

- object
  - `job_id` string, uuid
  - `ok` boolean
  - `status` string

## Other responses

- `404`: Resource not found.
- `503`: Job queue unavailable.

---

[API](https://skmtc.dev/johnsessentials/apis/john-s-essentials-api.md) · [All operations](https://skmtc.dev/johnsessentials/apis/john-s-essentials-api/llms.txt) · [OpenAPI document](https://skmtc.dev/johnsessentials/apis/john-s-essentials-api/revisions/56586ff78e6d?raw)
