Record a terminal Full Auto worker failure
POST
/v1/projects/{projectId}/automation-runs/{runId}/steps/{stepId}/failWorker-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
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| projectId | path | string | Yes | Project ID |
| runId | path | string | Yes | Durable project Full Auto run ID |
| stepId | path | string | Yes | Durable project Full Auto step ID |
Query parameters
None.
Body schema
Content type: application/json · Optional
| Field | Type | Required | Description |
|---|---|---|---|
| code | string | No | — |
| message | string | No | Message text. |
What the API returns
Each response code below includes the documented payload shape for the ACP API.
200Automation failure recordedapplication/json
| Field | Type | Required | Description |
|---|---|---|---|
| automationRun | object | Yes | — |
| automationRun.id | string | Yes | Unique identifier. |
| automationRun.userId | string | Yes | User ID. |
| automationRun.organizationId | string | Yes | — |
| automationRun.createdByUserId | string | Yes | — |
| automationRun.projectId | string | Yes | Project ID. |
| automationRun.status | queued | running | paused | completed | failed | cancelled | Yes | Current lifecycle status. |
| automationRun.stopOnFailure | boolean | Yes | — |
| automationRun.maxTasks | integer | Yes | — |
| automationRun.currentStepId | string | Yes | — |
| automationRun.dispatchId | string | Yes | — |
| automationRun.startedCount | integer | Yes | — |
| automationRun.completedCount | integer | Yes | — |
| automationRun.failedCount | integer | Yes | — |
| automationRun.lastErrorCode | string | Yes | — |
| automationRun.lastErrorMessage | string | Yes | — |
| automationRun.idempotencyKey | string | Yes | — |
| automationRun.metadata | object | Yes | Free-form metadata object. |
| automationRun.startedAt | string | Yes | ISO 8601 timestamp. |
| automationRun.completedAt | string | Yes | ISO 8601 timestamp. |
| automationRun.createdAt | string | Yes | ISO 8601 timestamp. |
| automationRun.updatedAt | string | Yes | ISO 8601 timestamp. |
| automationRun.steps | object[] | Yes | — |
| automationRun.steps[].id | string | Yes | Unique identifier. |
| automationRun.steps[].runId | string | Yes | — |
| automationRun.steps[].projectId | string | Yes | Project ID. |
| automationRun.steps[].taskId | string | Yes | — |
| automationRun.steps[].sequence | integer | Yes | — |
| automationRun.steps[].status | pending | running | completed | failed | cancelled | Yes | Current lifecycle status. |
| automationRun.steps[].attemptCount | integer | Yes | — |
| automationRun.steps[].taskAgentSessionId | string | Yes | — |
| automationRun.steps[].threadId | string | Yes | Thread ID. |
| automationRun.steps[].errorCode | string | Yes | — |
| automationRun.steps[].errorMessage | string | Yes | — |
| automationRun.steps[].evidence | object | Yes | — |
| automationRun.steps[].startedAt | string | Yes | ISO 8601 timestamp. |
| automationRun.steps[].completedAt | string | Yes | ISO 8601 timestamp. |
| automationRun.steps[].createdAt | string | Yes | ISO 8601 timestamp. |
| automationRun.steps[].updatedAt | string | Yes | ISO 8601 timestamp. |
Record a terminal Full Auto worker failure
Loading...
Response 200
Loading...