Skip to content

Verify with Bruno

Use the Bruno collection to verify authentication, device listing, one real-time device-state query, and an optional control command. This is the recommended complete verification before writing integration code.

Before You Start

  • Prepare clientId and clientSecret.
  • Enable device:read.
  • Enable device:control only if you will run the optional relay command.
  • Confirm that the target device and relay are safe to control.

1. Install Bruno

Download the Bruno desktop app. For CI or headless environments, install the CLI:

bash
npm install -g @usebruno/cli
bru --version

2. Open the Collection

bash
git clone https://github.com/svnwi/wlte-openapi-sdk.git

Open this folder in Bruno:

text
examples/bruno/WLTE-OpenAPI/

3. Configure the Environment

Open environments/quickstart.bru and replace only:

text
clientId     ->  your_client_id
clientSecret ->  your_client_secret

Select the quickstart environment. Collection scripts populate accessToken, deviceId, and commandId; relayIndex defaults to 1.

4. Run Read-only Verification

Run these requests in order:

OrderRequestPurpose
100-auth / AuthObtain an access token
201-device-queries / 01-list-devicesConfirm accessible devices
301-device-queries / 02-get-device-real-time-statusRefresh and read one device state

The built-in assertions validate the HTTP status and response shape.

5. Optionally Verify Control

Device commands change real hardware. Continue only when the API Client has device:control and the operation is safe.

OrderRequestPurpose
402-relay-control / 01-turn-relay-onSubmit one relay command
503-command-result / 01-get-command-resultRead the command result

Skip this section for read-only integrations.

CLI Usage

bash
cd examples/bruno/WLTE-OpenAPI
bru run --env quickstart

For a first integration, the desktop app is easier for inspecting environment variables, assertions, and response bodies.

Verification Result

After completing this page, you have verified:

  • API Client authentication
  • Device access and list responses
  • Single-device real-time state
  • Optional command submission and result lookup

Do not use repeated single-device requests to monitor an entire account. Use device lists for bulk views and WebSocket events for continuous changes.

Next Steps

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