Generate MQTT credentials for a device
Dashboard-only
DeviceGrant), and use the Device Control endpoints.Firmware-facing credentials for connecting to the MQTT broker - not the same thing as an API key. The password is shown once and is not recoverable afterward; use "Reveal credentials" only re-shows what was already generated.
Authorization
sessionAuth A session token for an existing account, obtained from POST /auth/login (see the Authentication endpoints) - not an API key. Endpoints marked with this scheme reject API key callers outright, regardless of what that key is granted. Outside the Authentication endpoints themselves, everything requiring this scheme manages dashboard resources (schedules, rules, grants, keys, device configuration) and mirrors what a human does in the Nexalware web app - it is not meant to be automated by a third-party integration the way the Device Control endpoints are.
In: header
Path Parameters
Response Body
application/json
application/json
application/json
curl -X POST "https://example.com/api/v1/devices/string/credentials"{ "mqttUsername": "string", "mqttPassword": "string", "mqttHost": "string", "mqttPort": 0, "wsPort": 0, "configBlock": "string"}