Cancel an AI extraction of requirements still in the queue
const url = 'https://beta-api.plune.ai/v1/projects/example/requirements/import/extractions/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/requirements/import/extractions/example \ --header 'Authorization: Bearer <token>'Cancels the extraction (#2292) while it is queued: its job then calls no model and spends nothing. One already sent to the model, or ended, is a 409. The person who asked for it only; anyone else gets the 404 of GET.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”An id from GET /v1/projects
The id a POST …/extractions answered with
Responses
Section titled “ Responses ”Cancelled
object
True only on a POST that found the earlier extraction of the same text; false on GET and DELETE.
object
Characters sent, after masking.
Secrets masked before anything left.
The project’s provider when it was queued.
Tokens null = the provider reported none; costUsd null beside tokens = the model’s price is unknown, never 0.
object
Null unless failed: timeout (no answer within 5 minutes), the provider’s own kind (key_rejected, provider_rate_limited, provider_unavailable, invalid_response, address_rejected), stalled (it did not finish), ai_unavailable (the project’s AI was gone when it ran), or ai_budget_spent (the project’s monthly AI limit ran out while it waited in the queue: the provider was not called, nothing was spent).
What it proposed, each line in the file as sent: only while done and until resultKeptUntil, null otherwise.
object
object
Only when the text states it.
Only the ones the text states.
object
object
finishedAt plus 24 hours when done; then result reads null and the cost stays. Null otherwise.
Example
{ "id": "7a2c4e10-0000-4000-8000-0000000000b1", "state": "cancelled", "reused": false, "createdAt": "2026-11-04T09:00:00.000Z", "startedAt": null, "finishedAt": "2026-11-04T09:00:03.000Z", "fetched": { "text": 268 }, "redactions": 0, "provider": "anthropic", "model": "claude-haiku-4-5", "cost": { "inputTokens": null, "outputTokens": null, "costUsd": null }, "failureKind": null, "result": null, "resultKeptUntil": null}No / invalid token or session
You are in the project as a reader
No such project among yours, or no such extraction of yours in it
object
Example generated
{ "error": "example"}The extraction is not in the queue any more: running, or ended
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