Fail a run
Local runs authenticate with the run token (or an API key plus executor_id). Claimed queue runs send claim_token.
POST
/api/agent/runs/{id}/failAuthorization
AuthorizationBearer token (ba_run_...) · headerrequiredPer-run token returned by start, valid for 6 hours and bound to one run.
or
AuthorizationBearer token (ba_sk_...) · headerrequiredAPI key from /dashboard/api-keys. Keys expire after 365 days.
Path parameters
idstringrequiredRun id
Request body
requiredapplication/jsonerrorstringrequiredmax length 1000
claim_tokenstringexecutor_idstringmetadataobjectResponses
200
OK
runobject401
Missing, invalid, expired, or revoked API key
errorstringrequiredcodestring409
RUN_NOT_ACTIVE or CLAIM_CONFLICT
errorstringrequiredcodestring