Settle an execution dispatch claim
POST
/v1/internal/execution-dispatch/claims/{dispatchId}/completeHow 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 |
|---|---|---|---|---|
| dispatchId | path | string | Yes | Durable execution dispatch ID |
Query parameters
None.
Body schema
Content type: application/json · Required
| Field | Type | Required | Description |
|---|---|---|---|
| token | string | Yes | — |
| outcome | completed | cancelled | failed | Yes | — |
| error | string | No | — |
| status | integer | No | Current lifecycle status. |
| code | string | No | — |
| classification | transient | permanent | No | — |
What the API returns
Each response code below includes the documented payload shape for the ACP API.
200Claim settled, retried, or dead-letteredapplication/json
| Field | Type | Required | Description |
|---|---|---|---|
| dispatch | object | Yes | — |
| dispatch.id | string | Yes | Unique identifier. |
| dispatch.kind | evaluation_run | test_run | agent_optimization | Yes | — |
| dispatch.resourceId | string | Yes | — |
| dispatch.parentResourceId | string | No | — |
| dispatch.userId | string | No | User ID. |
| dispatch.organizationId | string | No | — |
| dispatch.status | queued | leased | retry_wait | completed | cancelled | dead_letter | Yes | Current lifecycle status. |
| dispatch.reason | string | Yes | — |
| dispatch.priority | integer | Yes | — |
| dispatch.attemptCount | integer | Yes | — |
| dispatch.maxAttempts | integer | Yes | — |
| dispatch.availableAt | string | Yes | — |
| dispatch.claimOwner | string | No | — |
| dispatch.claimExpiresAt | string | No | — |
| dispatch.heartbeatAt | string | No | — |
| dispatch.credentialId | string | No | — |
| dispatch.lastError | string | No | — |
| dispatch.lastErrorClassification | transient | permanent | No | — |
| dispatch.createdAt | string | Yes | ISO 8601 timestamp. |
| dispatch.updatedAt | string | Yes | ISO 8601 timestamp. |
| dispatch.completedAt | string | No | ISO 8601 timestamp. |
| dispatch.deadLetteredAt | string | No | — |
| dispatch.metadata | object | Yes | Free-form metadata object. |
409Claim expired
None.
Settle an execution dispatch claim
Loading...
Response 200
Loading...