POST
/api/im/remote/command
Send command to daemon
Send a command from mobile to the daemon. Cloud stores the command in im_remote_commands
and attempts immediate delivery via the daemon's control WS channel. If the daemon is offline,
it will receive the command on next reconnect (poll).
Responds with status: "delivered" if the daemon was online and acknowledged immediately.
No code sample available for this language
Request Body
| Field | Type | Req | Default | Description |
|---|---|---|---|---|
| bindingId | string | Y | — | Binding UUID (from pairing) |
| type | string | Y | — | Command type (e.g. tool_approve, tool_reject, agent_stop) |
| envelope | object | Y | — | Opaque payload forwarded to daemon unchanged |
| ttlMs | integer | N | — | Time-to-live in ms (no expiry if omitted) |
Response Example
{
"ok": true,
"data": {
"commandId": "cmd-uuid",
"status": "pending"
}
}