Skip to content

Authentication and Authorization Errors

The following error codes are returned during authentication and authorization.

HTTP StatusBusiness CodeDescription
401AUTH_REQUIREDMissing Authorization request header
401AUTH_INVALIDAuthentication information is invalid
401AUTH_EXPIREDThe access token has expired
403AUTH_SCOPE_DENIEDThe current client does not have the permission required by this endpoint

Insufficient Permission Response

AUTH_SCOPE_DENIED identifies the permission required by the current operation.

json
{
  "code": "AUTH_SCOPE_DENIED",
  "message": "This operation requires the device:control permission. Update the API Client permissions in the Developer Console and obtain a new access token.",
  "requestId": "req_001",
  "data": {
    "requiredScope": "device:control"
  }
}

After receiving this error:

  1. Add the permission in data.requiredScope to the API client in the Developer Console.
  2. Save the permission settings.
  3. Obtain a new access token.
  4. Retry the operation with the new token.

For example, a client with only device:read receives requiredScope: device:control when it attempts to switch a relay.

Docs buildVersion v1.3.6-20260720-180213-70
Copyright © 2026 WLTE