Operating system set to macOS
Documentation jurisdiction set to United States
Sign inConnect Claude

Invoke Skill Workstream Cancel

post/api/v1/skills/workstream.cancel/invoke

Cancel a running workstream run. The run terminates; you'll need to start a fresh one if you want to retry. Reason is recorded to the audit trail and shown in Studio.

Request bodyapplication/json

FieldTypeDescription
cycle_idrequiredstring (uuid)The cycle to cancel. Identified by `cycle_id` from `workstream_run`.
reasonstring | nullAudit trail. Strongly recommended.
idempotency_keystring | nullCaller-supplied stable token. Replaying within 24h returns the same cancellation result rather than erroring on the already-cancelled cycle.

Responses

200Skill executed successfully
FieldTypeDescription
skillrequiredstringβ€”
outputrequiredobjectCycle state after cancellation.
show nested
FieldTypeDescription
stub_fieldsstring[]β€”
warningsstring[]β€”
cycle_idstring (uuid) | nullThe cycle that was cancelled.
run_idstring (uuid) | nullβ€”
status"cancelled" | "failed"`cancelled` on success; `failed` if the cancel signal could not be delivered.
cancelledfailed
errorstring | nullβ€”
error_envelopeany | nullCanonical structured error. Populated when `status == 'failed'`.
correlation_idrequiredstringβ€”
401Authentication required
FieldTypeDescription
errorrequiredobjectβ€”
show nested
FieldTypeDescription
typerequiredstringβ€”
coderequiredstringβ€”
messagerequiredstringβ€”
paramstringβ€”
retry_after_secondsintegerβ€”
403Insufficient permissions
FieldTypeDescription
errorrequiredobjectβ€”
show nested
FieldTypeDescription
typerequiredstringβ€”
coderequiredstringβ€”
messagerequiredstringβ€”
paramstringβ€”
retry_after_secondsintegerβ€”
404Skill not found
FieldTypeDescription
errorrequiredobjectβ€”
show nested
FieldTypeDescription
typerequiredstringβ€”
coderequiredstringβ€”
messagerequiredstringβ€”
paramstringβ€”
retry_after_secondsintegerβ€”
429Rate limit exceeded
FieldTypeDescription
errorrequiredobjectβ€”
show nested
FieldTypeDescription
typerequiredstringβ€”
coderequiredstringβ€”
messagerequiredstringβ€”
paramstringβ€”
retry_after_secondsintegerβ€”
5XXInternal server error
FieldTypeDescription
errorrequiredobjectβ€”
show nested
FieldTypeDescription
typerequiredstringβ€”
coderequiredstringβ€”
messagerequiredstringβ€”
paramstringβ€”
retry_after_secondsintegerβ€”
curl https://api.dev.arch.ie/api/v1/skills/workstream.cancel/invoke \
  -X POST \
  -H "Authorization: Bearer sk_..." \
  -H "Content-Type: application/json" \
  -d '{
       "cycle_id": "00000000-0000-0000-0000-000000000000",
       "reason": null,
       "idempotency_key": null
     }'