Create local execution session

POST/v1/threads/{threadId}/local-sessions

Create 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
NameLocationTypeRequiredDescription
threadIdpathstringYesThread ID
Query parameters
None.

Body schema

Content type: application/json · Required

FieldTypeRequiredDescription
deviceIdstringYes
workspaceBindingIdstringNo
statuscreated | runningNoCurrent lifecycle status.
startedAtstringNoISO 8601 timestamp.
metadataobjectNoFree-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
FieldTypeRequiredDescription
sessionobjectNo
session.idstringNoUnique identifier.
session.threadIdstringNoThread ID.
session.userIdstringNoUser ID.
session.deviceIdstringNo
session.workspaceBindingIdstringNo
session.environmentIdstringNoComputer ID.
session.statuscreated | running | completed | failed | cancelledNoCurrent lifecycle status.
session.metadataobjectNoFree-form metadata object.
session.errorstringNo
session.startedAtstringNoISO 8601 timestamp.
session.lastHeartbeatAtstringNo
session.completedAtstringNoISO 8601 timestamp.
session.createdAtstringNoISO 8601 timestamp.
session.updatedAtstringNoISO 8601 timestamp.
Create local execution session
Loading...
Response 201
Loading...
See the ACP quickstart and SDK flow