Cancel a run still in the queue
const url = 'https://beta-api.plune.ai/v1/projects/example/case-generations/example';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://beta-api.plune.ai/v1/projects/example/case-generations/example \ --header 'Authorization: Bearer <token>'A run that has not started is cancelled and never reaches the model. A running one has been sent already and is let finish (409). An owner or a member.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”An id from GET /v1/projects
The id a start answered with
Responses
Section titled “ Responses ”The run, cancelled
One run (ADR 0067 point 4). It never holds the text: what went to the model is counted (fetched), masked secrets are counted (redactions), and the text itself lives only in the proposals the run wrote.
object
Characters of each field sent to the model, after masking.
object
How many places were masked as a secret before anything was sent.
Proposals put in the review queue, each pending.
Proposals left out: invalid broke a bound of the proposal (the field named), over_limit came past maxCases.
object
Tokens null = the provider reported none; costUsd null beside tokens = the model’s price is unknown — never 0. Counted in the project’s monthly AI limit.
object
Where the run was sent, once it started.
Only on failed.
Example
{ "id": "6f1c2b3a-0000-4000-8000-0000000000aa", "state": "cancelled", "inputKind": "pasted-text", "maxCases": 6, "language": "en", "fetched": { "title": 14, "text": 214 }, "redactions": 0, "produced": 0, "skipped": [], "cost": { "inputTokens": null, "outputTokens": null, "costUsd": null }, "requestedBy": "6f1c2b3a-0000-4000-8000-0000000000a2", "createdAt": "2026-10-25T09:00:00.000Z", "startedAt": null, "finishedAt": "2026-10-25T09:00:05.000Z"}No / invalid token or session
You are in the project as a reader
No such project among yours, or no such run in it
object
Example generated
{ "error": "example"}The run is no longer in the queue
object
Example generated
{ "error": "example"}Rate-limited: the per-route throttle, or the per-minute request limit of the plan an API token counts by (#1442; the body names the plan, #2092). Retry-After carries the seconds until the window rolls over.
object
Example generated
{ "error": "example"}Headers
Section titled “Headers ”Seconds until the window rolls over