Skip to Content
API referenceWorkflows

Cancel Workflow Run

POST
/api/v1/ai-workflows/{workflow_id}/runs/{run_id}/cancel

Required scope: workflows:write

Authorization

headerAuthorizationBearer <luso8_sk_live_<40 characters>>

A workspace API key, sent as Authorization: Bearer <key>. Create keys in Settings → Developers → API keys.

Path Parameters

workflow_id*Workflow Id
run_id*Run Id

Response Body

Successful Response

application/json
  1. response
id*Id
workflow_id*Workflow Id
organization_id*Organization Id
triggered_by?string|null
status*WorkflowRunStatus
Value in"pending""running""waiting""completed""failed""cancelled"
trigger_type?|null
trigger_data?|null
input_data?|null
output_data?|null
current_step_id?string|null
steps_completed?Steps Completed
Default0
total_steps?Total Steps
Default0
error_message?string|null
error_step_id?string|null
context?|null
started_at?|null
completed_at?|null
duration_seconds?number|null
created_at*Created At
Formatdate-time
Example Request
curl -X POST 'https://api.luso8.rexplore.ai/api/v1/ai-workflows/string/runs/string/cancel'
Example Response
{  "id": "string",  "workflow_id": "string",  "organization_id": "string",  "triggered_by": "string",  "status": "pending",  "trigger_type": "manual",  "trigger_data": {},  "input_data": {},  "output_data": {},  "current_step_id": "string",  "steps_completed": 0,  "total_steps": 0,  "error_message": "string",  "error_step_id": "string",  "context": {},  "started_at": "2019-08-24T14:15:22Z",  "completed_at": "2019-08-24T14:15:22Z",  "duration_seconds": 0,  "created_at": "2019-08-24T14:15:22Z"}