Skip to content

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

ScopeRequiredDescription
device:readYesQuery command results

Request

Full URL:

http
GET {baseUrl}/wlte/v1/commands/{commandId}

Request headers:

http
Authorization: Bearer {accessToken}
Accept: application/json

Path parameters:

ParameterTypeRequiredRule
commandIdstringYesThe command ID returned in data.id

Success Response

HTTP status:

text
200 OK

Command Statuses

text
SENT
SUCCESS
FAILED
TIMEOUT
  • SENT: the command is still waiting for final confirmation from the device
  • SUCCESS: the device confirmed success
  • FAILED: the command did not complete successfully
  • TIMEOUT: the final outcome was not confirmed within the wait window

Response data Schema

FieldTypeRequiredDescription
idstringYesUnique command identifier
deviceIdstringYesDevice identifier
relayIndexintegerYesRelay index, starting from 1
actionstringYesCommand action. Enum: ON, OFF, JOG
statusstringYesCommand status. Enum: SENT, SUCCESS, FAILED, TIMEOUT
createdAtstringYesCommand 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 2 to 3 seconds
  • Recommended maximum polling duration: align it with the command wait window in your integration
  • TIMEOUT means 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_REQUEST
  • 401 AUTH_REQUIRED
  • 401 AUTH_INVALID
  • 401 AUTH_EXPIRED
  • 403 AUTH_SCOPE_DENIED
  • 404 COMMAND_NOT_FOUND
  • 429 RATE_LIMITED
  • 500 INTERNAL_ERROR
Docs buildVersion v1.2.19-20260602-174859-60
Copyright © 2026 WLTE