Create local execution session
POST
/v1/threads/{threadId}/local-sessionsCreate a thread-scoped local execution session record for bridge-mode runtimes.
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 |
|---|---|---|---|---|
| threadId | path | string | Yes | Thread ID |
Query parameters
None.
Body schema
Content type: application/json · Required
| Field | Type | Required | Description |
|---|---|---|---|
| deviceId | string | Yes | — |
| workspaceBindingId | string | No | — |
| status | created | running | No | Current lifecycle status. |
| startedAt | string | No | ISO 8601 timestamp. |
| metadata | object | No | Free-form metadata object. |
What the API returns
Each response code below includes the documented payload shape for the ACP API.
201Local execution session createdapplication/json
| Field | Type | Required | Description |
|---|---|---|---|
| session | object | No | — |
| session.id | string | No | Unique identifier. |
| session.threadId | string | No | Thread ID. |
| session.userId | string | No | User ID. |
| session.deviceId | string | No | — |
| session.workspaceBindingId | string | No | — |
| session.environmentId | string | No | Computer ID. |
| session.status | created | running | completed | failed | cancelled | No | Current lifecycle status. |
| session.metadata | object | No | Free-form metadata object. |
| session.error | string | No | — |
| session.startedAt | string | No | ISO 8601 timestamp. |
| session.lastHeartbeatAt | string | No | — |
| session.completedAt | string | No | ISO 8601 timestamp. |
| session.createdAt | string | No | ISO 8601 timestamp. |
| session.updatedAt | string | No | ISO 8601 timestamp. |