REST API
The WLTE REST API provides device queries, relay control, and command result lookup over standard HTTP with Bearer Token authentication.
Service Address
text
https://openapi.svnwi.com{baseUrl} throughout this documentation refers to this address. Example full request URL:
text
https://openapi.svnwi.com/wlte/v1/devicesIntegration Flow
- Call Create Access Token to obtain
accessToken. - Use
Authorization: Bearer {accessToken}to call device APIs. - Call List Devices to get accessible devices.
- If you need the IO definition of a device type, call List Device Type Definitions.
- Call Create Relay Command to send a control command.
- Call Get Command Result to check the execution result.
Endpoint Summary
| Method | Path | Description | Scope |
|---|---|---|---|
POST | /wlte/v1/auth/token | Create access token | — |
GET | /wlte/v1/devices | List devices | device:read |
GET | /wlte/v1/devices/{deviceId} | Get device detail | device:read |
GET | /wlte/v1/device-profiles | List device type definitions | device:read |
POST | /wlte/v1/devices/{deviceId}/relays/{index}/commands | Create relay command | device:control |
GET | /wlte/v1/commands/{commandId} | Get command result | device:control |
Recommended Reading Order
- Response Envelope
- Base URL and Headers
- Permissions
- Pagination
- Rate Limits and Retries
- Create Access Token
- List Devices
- Get Device
- List Device Type Definitions
- Create Relay Command
- Get Command Result
- Status Code Overview
Reference
- Peripheral State Reference — field definitions for relays, digital inputs, sensors, and analog inputs
