Get Command Result
Returns the current execution status and final outcome of a command by command ID. The command ID is the data.id returned by the execute-device-operation response. The platform does not provide a command history list, so the caller should persist command IDs on its side.
Endpoint
http
GET /wlte/v1/commands/{commandId}Authorization Requirements
| Scope | Required | Description |
|---|---|---|
device:read | Yes | Query command results |
Request
Full URL:
http
GET {baseUrl}/wlte/v1/commands/{commandId}Request headers:
http
Authorization: Bearer {accessToken}
Accept: application/jsonPath parameters:
| Parameter | Type | Required | Rule |
|---|---|---|---|
commandId | string | Yes | The command ID returned in data.id |
Success Response
HTTP status:
text
200 OKCommand Statuses
text
SENT
SUCCESS
FAILED
TIMEOUTSENT: the command is still waiting for final confirmation from the deviceSUCCESS: the device confirmed successFAILED: the command did not complete successfullyTIMEOUT: the final outcome was not confirmed within the wait window
Response data Schema
| Field | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Unique command identifier |
deviceId | string | Yes | Device identifier |
relayIndex | integer | Yes | Relay index, starting from 1 |
action | string | Yes | Command action. Enum: ON, OFF, JOG |
status | string | Yes | Command status. Enum: SENT, SUCCESS, FAILED, TIMEOUT |
createdAt | string | Yes | Command creation time in RFC3339 UTC |
Polling Guidance
- If the initial command response returns
SENT, poll this endpoint until a terminal status is returned - Recommended polling interval: once every
2to3seconds - Recommended maximum polling duration: align it with the command wait window in your integration
TIMEOUTmeans the command outcome was not confirmed in time. It does not prove that the device definitely did not act, so the client should decide whether to retry based on business rules and the current device state
Error Responses
Possible responses:
400 INVALID_REQUEST401 AUTH_REQUIRED401 AUTH_INVALID401 AUTH_EXPIRED403 AUTH_SCOPE_DENIED404 COMMAND_NOT_FOUND429 RATE_LIMITED500 INTERNAL_ERROR
