Cancel a browser API-key scoped workflow run
Cancel a browser API-key scoped workflow run
POST
Cancel a browser API-key scoped workflow run
BrowserWorkflowApiKeyheader
X-API-Key<token>Project- and environment-scoped browser workflow API key.
projectId*stringFormat
uuidenvironmentId*stringFormat
uuidrunId*stringFormat
uuidIdempotency-Key?stringOptional. Generate a unique value before a write and retain it for an exact-body retry; replay is free and a different body returns 409 IDEMPOTENCY_CONFLICT.
Length
8 <= length <= 200Persisted cancellation state Error body uses the documented PublicError DTO.
application/json- response
id*stringFormat
uuidproject_id*stringFormat
uuidenvironment_id*stringFormat
uuidworkflow_id*stringFormat
uuidworkflow_version_id*stringFormat
uuidproxy_type*|Proxy class selected when the run was created; null for legacy runs that predate class selection.
max_credits_per_request*|Request-wide credit ceiling fixed at admission; null for legacy runs without a configured cap.
Range
1 <= valuerequested_by?integer|nullstatus*stringValue in
"queued""running""succeeded""failed""cancelled""expired"execution_kind*stringValue in
"workflow""cdp"variables*result*|nullaction_trace*array<>Items
items <= 100result_metadata*quality_state*stringValue in
"pending""validated""unavailable"error_code*|Terminal workflow error, including budget_exhausted and PROXY_CLASS_UNAVAILABLE when applicable.
error_message*string|nullattempt_count*integermax_attempts*integerpriority*integercreated_at*stringFormat
date-timestarted_at*|Format
date-timefinished_at*|Format
date-timeexpires_at*stringFormat
date-timecurl -X POST 'https://api.runharvester.com/api/v1/browser/projects/497f6eca-6276-4993-bfeb-53cbbbba6f08/environments/497f6eca-6276-4993-bfeb-53cbbbba6f08/runs/497f6eca-6276-4993-bfeb-53cbbbba6f08/cancel' \ --header "X-API-Key: ${RUNHARVESTER_BROWSER_API_KEY:?Set your Browser Workflow API key}" \ --header "Idempotency-Key: ${RUNHARVESTER_IDEMPOTENCY_KEY:?Set a unique key for this submission; reuse it for retries}"{ "id": "9a20bd58-ed33-4a5b-b63f-b52bb1a62248", "status": "pending"}