Atomically acquire the next Full Auto task

POST/v1/projects/{projectId}/automation-runs/{runId}/next

Worker-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
NameLocationTypeRequiredDescription
projectIdpathstringYesProject ID
runIdpathstringYesDurable 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
FieldTypeRequiredDescription
runobjectYes
run.idstringYesUnique identifier.
run.userIdstringYesUser ID.
run.organizationIdstringYes
run.createdByUserIdstringYes
run.projectIdstringYesProject ID.
run.statusqueued | running | paused | completed | failed | cancelledYesCurrent lifecycle status.
run.stopOnFailurebooleanYes
run.maxTasksintegerYes
run.currentStepIdstringYes
run.dispatchIdstringYes
run.startedCountintegerYes
run.completedCountintegerYes
run.failedCountintegerYes
run.lastErrorCodestringYes
run.lastErrorMessagestringYes
run.idempotencyKeystringYes
run.metadataobjectYesFree-form metadata object.
run.startedAtstringYesISO 8601 timestamp.
run.completedAtstringYesISO 8601 timestamp.
run.createdAtstringYesISO 8601 timestamp.
run.updatedAtstringYesISO 8601 timestamp.
run.stepsobject[]Yes
run.steps[].idstringYesUnique identifier.
run.steps[].runIdstringYes
run.steps[].projectIdstringYesProject ID.
run.steps[].taskIdstringYes
run.steps[].sequenceintegerYes
run.steps[].statuspending | running | completed | failed | cancelledYesCurrent lifecycle status.
run.steps[].attemptCountintegerYes
run.steps[].taskAgentSessionIdstringYes
run.steps[].threadIdstringYesThread ID.
run.steps[].errorCodestringYes
run.steps[].errorMessagestringYes
run.steps[].evidenceobjectYes
run.steps[].startedAtstringYesISO 8601 timestamp.
run.steps[].completedAtstringYesISO 8601 timestamp.
run.steps[].createdAtstringYesISO 8601 timestamp.
run.steps[].updatedAtstringYesISO 8601 timestamp.
stepobjectYes
step.idstringYesUnique identifier.
step.runIdstringYes
step.projectIdstringYesProject ID.
step.taskIdstringYes
step.sequenceintegerYes
step.statuspending | running | completed | failed | cancelledYesCurrent lifecycle status.
step.attemptCountintegerYes
step.taskAgentSessionIdstringYes
step.threadIdstringYesThread ID.
step.errorCodestringYes
step.errorMessagestringYes
step.evidenceobjectYes
step.startedAtstringYesISO 8601 timestamp.
step.completedAtstringYesISO 8601 timestamp.
step.createdAtstringYesISO 8601 timestamp.
step.updatedAtstringYesISO 8601 timestamp.
taskobjectYes
task.idstringYesUnique identifier.
task.titlestringYesDisplay title.
task.assigneeAgentIdstringYes
task.idempotencyKeystringYes
409The task graph or run state cannot advance
None.
Atomically acquire the next Full Auto task
Loading...
Response 200
Loading...
See the ACP quickstart and SDK flow