Start durable project Full Auto
POST
/v1/projects/{projectId}/automation-runsSnapshots the dependency-ready agent task graph, creates idempotent execution steps, and queues the run for the platform execution worker. The run continues independently of the browser.
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 |
Query parameters
None.
Header parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| Idempotency-Key | header | string | No | — |
Body schema
Content type: application/json · Optional
| Field | Type | Required | Description |
|---|---|---|---|
| maxTasks | integer | No | — |
| stopOnFailure | boolean | No | — |
| idempotencyKey | string | No | — |
What the API returns
Each response code below includes the documented payload shape for the ACP API.
202Project Full Auto acceptedapplication/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. |
409No runnable tasks exist or another Full Auto run is active
None.
501Durable project automation requires PostgreSQL
None.