Skip to main content
Use the JavaScript library for Node.js tools, simulators, gateways, and service integrations that need to interact with firmngin device or platform APIs.

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 standard error and message fields when displaying API errors.