Atomically acquire the next Full Auto task
POST
/v1/projects/{projectId}/automation-runs/{runId}/nextWorker-only transition that returns the existing running step or advances the immutable task snapshot to its next pending step.
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 |
Query parameters
None.
Body schema
This endpoint does not require a request body.
None.
What the API returns
Each response code below includes the documented payload shape for the ACP API.
200Current automation step or terminal runapplication/json
| Field | Type | Required | Description |
|---|---|---|---|
| run | object | Yes | — |
| run.id | string | Yes | Unique identifier. |
| run.userId | string | Yes | User ID. |
| run.organizationId | string | Yes | — |
| run.createdByUserId | string | Yes | — |
| run.projectId | string | Yes | Project ID. |
| run.status | queued | running | paused | completed | failed | cancelled | Yes | Current lifecycle status. |
| run.stopOnFailure | boolean | Yes | — |
| run.maxTasks | integer | Yes | — |
| run.currentStepId | string | Yes | — |
| run.dispatchId | string | Yes | — |
| run.startedCount | integer | Yes | — |
| run.completedCount | integer | Yes | — |
| run.failedCount | integer | Yes | — |
| run.lastErrorCode | string | Yes | — |
| run.lastErrorMessage | string | Yes | — |
| run.idempotencyKey | string | Yes | — |
| run.metadata | object | Yes | Free-form metadata object. |
| run.startedAt | string | Yes | ISO 8601 timestamp. |
| run.completedAt | string | Yes | ISO 8601 timestamp. |
| run.createdAt | string | Yes | ISO 8601 timestamp. |
| run.updatedAt | string | Yes | ISO 8601 timestamp. |
| run.steps | object[] | Yes | — |
| run.steps[].id | string | Yes | Unique identifier. |
| run.steps[].runId | string | Yes | — |
| run.steps[].projectId | string | Yes | Project ID. |
| run.steps[].taskId | string | Yes | — |
| run.steps[].sequence | integer | Yes | — |
| run.steps[].status | pending | running | completed | failed | cancelled | Yes | Current lifecycle status. |
| run.steps[].attemptCount | integer | Yes | — |
| run.steps[].taskAgentSessionId | string | Yes | — |
| run.steps[].threadId | string | Yes | Thread ID. |
| run.steps[].errorCode | string | Yes | — |
| run.steps[].errorMessage | string | Yes | — |
| run.steps[].evidence | object | Yes | — |
| run.steps[].startedAt | string | Yes | ISO 8601 timestamp. |
| run.steps[].completedAt | string | Yes | ISO 8601 timestamp. |
| run.steps[].createdAt | string | Yes | ISO 8601 timestamp. |
| run.steps[].updatedAt | string | Yes | ISO 8601 timestamp. |
| step | object | Yes | — |
| step.id | string | Yes | Unique identifier. |
| step.runId | string | Yes | — |
| step.projectId | string | Yes | Project ID. |
| step.taskId | string | Yes | — |
| step.sequence | integer | Yes | — |
| step.status | pending | running | completed | failed | cancelled | Yes | Current lifecycle status. |
| step.attemptCount | integer | Yes | — |
| step.taskAgentSessionId | string | Yes | — |
| step.threadId | string | Yes | Thread ID. |
| step.errorCode | string | Yes | — |
| step.errorMessage | string | Yes | — |
| step.evidence | object | Yes | — |
| step.startedAt | string | Yes | ISO 8601 timestamp. |
| step.completedAt | string | Yes | ISO 8601 timestamp. |
| step.createdAt | string | Yes | ISO 8601 timestamp. |
| step.updatedAt | string | Yes | ISO 8601 timestamp. |
| task | object | Yes | — |
| task.id | string | Yes | Unique identifier. |
| task.title | string | Yes | Display title. |
| task.assigneeAgentId | string | Yes | — |
| task.idempotencyKey | string | Yes | — |
409The task graph or run state cannot advance
None.
Atomically acquire the next Full Auto task
Loading...
Response 200
Loading...