This is what the device does over its own WebSocket connection. An application asks for an OTP
with
POST /device/otp/generate instead — see Organization access.Frame Types
Message Definitions
OTPRequest (device → server):Flow
- Device sends an
OTP_REQUESTframe with a serialized (empty)OTPRequestmessage over the existing WebSocket connection. - Server generates the OTP and replies with an
OTP_RESPONSEframe on the same connection. - If generation fails,
erroris non-empty —otpshould be ignored in this case.
Code Example
Notes
- The OTP is scoped to the requesting device’s connection — it is not broadcast to other subscribers.
- The server answers within 10 seconds, or the request times out.
POST /device/otp/generateremains available as an alternative for obtaining an OTP without an active WebSocket connection.