Record a terminal Full Auto worker failure

POST/v1/projects/{projectId}/automation-runs/{runId}/steps/{stepId}/fail

Worker-only recovery path used after a permanent or exhausted execution-dispatch failure.

How to call this endpoint

Every ACP API request uses bearer authentication. The examples here show the actual request path, auth header, and body shape that the platform expects.

Path, query, and header parameters

These parameters control which ACP object the endpoint acts on and how the request is processed.

Path parameters
NameLocationTypeRequiredDescription
projectIdpathstringYesProject ID
runIdpathstringYesDurable project Full Auto run ID
stepIdpathstringYesDurable project Full Auto step ID
Query parameters
None.

Body schema

Content type: application/json · Optional

FieldTypeRequiredDescription
codestringNo—
messagestringNoMessage text.

What the API returns

Each response code below includes the documented payload shape for the ACP API.

200Automation failure recordedapplication/json
FieldTypeRequiredDescription
automationRunobjectYes—
automationRun.idstringYesUnique identifier.
automationRun.userIdstringYesUser ID.
automationRun.organizationIdstringYes—
automationRun.createdByUserIdstringYes—
automationRun.projectIdstringYesProject ID.
automationRun.statusqueued | running | paused | completed | failed | cancelledYesCurrent lifecycle status.
automationRun.stopOnFailurebooleanYes—
automationRun.maxTasksintegerYes—
automationRun.currentStepIdstringYes—
automationRun.dispatchIdstringYes—
automationRun.startedCountintegerYes—
automationRun.completedCountintegerYes—
automationRun.failedCountintegerYes—
automationRun.lastErrorCodestringYes—
automationRun.lastErrorMessagestringYes—
automationRun.idempotencyKeystringYes—
automationRun.metadataobjectYesFree-form metadata object.
automationRun.startedAtstringYesISO 8601 timestamp.
automationRun.completedAtstringYesISO 8601 timestamp.
automationRun.createdAtstringYesISO 8601 timestamp.
automationRun.updatedAtstringYesISO 8601 timestamp.
automationRun.stepsobject[]Yes—
automationRun.steps[].idstringYesUnique identifier.
automationRun.steps[].runIdstringYes—
automationRun.steps[].projectIdstringYesProject ID.
automationRun.steps[].taskIdstringYes—
automationRun.steps[].sequenceintegerYes—
automationRun.steps[].statuspending | running | completed | failed | cancelledYesCurrent lifecycle status.
automationRun.steps[].attemptCountintegerYes—
automationRun.steps[].taskAgentSessionIdstringYes—
automationRun.steps[].threadIdstringYesThread ID.
automationRun.steps[].errorCodestringYes—
automationRun.steps[].errorMessagestringYes—
automationRun.steps[].evidenceobjectYes—
automationRun.steps[].startedAtstringYesISO 8601 timestamp.
automationRun.steps[].completedAtstringYesISO 8601 timestamp.
automationRun.steps[].createdAtstringYesISO 8601 timestamp.
automationRun.steps[].updatedAtstringYesISO 8601 timestamp.
Record a terminal Full Auto worker failure
Loading...
Response 200
Loading...
See the ACP quickstart and SDK flow