Enqueue local session control command
POST
/v1/threads/{threadId}/local-sessions/{localSessionId}/controlHow 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 |
| localSessionId | path | string | Yes | Local execution session ID |
Query parameters
None.
Body schema
Content type: application/json · Required
| Field | Type | Required | Description |
|---|---|---|---|
| commandType | cancel | pause | resume | message | Yes | — |
| payload | object | No | — |
What the API returns
Each response code below includes the documented payload shape for the ACP API.
201Local session control command createdapplication/json
| Field | Type | Required | Description |
|---|---|---|---|
| command | object | No | — |
| command.id | string | No | Unique identifier. |
| command.sessionId | string | No | Session ID. |
| command.threadId | string | No | Thread ID. |
| command.userId | string | No | User ID. |
| command.commandType | cancel | pause | resume | message | No | — |
| command.payload | object | No | — |
| command.status | pending | acknowledged | completed | cancelled | No | Current lifecycle status. |
| command.createdAt | string | No | ISO 8601 timestamp. |
| command.acknowledgedAt | string | No | — |
| command.completedAt | string | No | ISO 8601 timestamp. |
| command.updatedAt | string | No | ISO 8601 timestamp. |
Enqueue local session control command
Loading...
Response 201
Loading...