Use this library for
- Device simulators.
- Gateway processes that bridge non-MQTT devices.
- Your own tools that read device state.
- Automation helpers that need API access.
Security note
Do not ship backend API tokens to browser code. Browser UI should call the firmngin backend through authenticated user sessions, not through service tokens embedded in JavaScript bundles.Basic client setup
Create an API token in Dashboard → Integrations and keep it in server-side code or environment configuration only. See the API reference for every endpoint.Standard errors
Always prefer the standarderror and message fields when displaying API errors.