CorfedoCorfedoDocs
ReferenceAPI referenceAI

Cancel AI Run

POST /api/v1/ai/runs/{runId}/cancel. Request parameters and response schemas.

POST
/api/v1/ai/runs/{runId}/cancel

Authorization

corfedoOAuth corfedo:ai:invoke
headerAuthorizationBearer <token>

Corfedo-issued bearer credential for the workspace's API resource, such as https://workspace.corfedo.example/api; the workspace host is the issuer. Public clients identify themselves with a Client ID Metadata Document URL and use PKCE S256; service clients use private_key_jwt. Browser cookies and MCP-resource credentials are not accepted.

Scope: corfedo:ai:invoke

Path Parameters

runId*string
Formatuuid

Response Body

OK

application/json
  1. response
outcome*AiCancelOutcome
Value in"requested""cancelled""alreadyEnded"
Example Request
curl -X POST 'https://example.com/api/v1/ai/runs/497f6eca-6276-4993-bfeb-53cbbbba6f08/cancel'
Example Response
{  "outcome": "requested"}