---
title: "Connect Node-RED to Servicely"
site: admin
version: 2027.1
versions: "all"
url: https://docs-new.servicely.ai/admin/2027.1/integrations/connect-node-red/
type: task
application: platform_integration
last_updated: 2026-12-03
commit: 6777698daac5
---


Connect Node-RED to Servicely when you build a flow that reads or writes Servicely records from inside your network. At the end, Node-RED signs its requests with an HMAC header token that only it and Servicely know.

<Callout type="info">
  **Changed in 2027.1.** Once a token has any **Allowed Scopes**, every other entry point is refused. No action is needed on upgrade.
</Callout>

## Before you begin

- You need the `administrator` role, or `api_token_administrator`, to create a System API token.
- Have a Servicely user ready for the token to impersonate. The flow can do only what that user's roles allow.
- Have a Node-RED installation you can sign in to, secured with HTTPS and enforced sign-in.

## Steps

<Steps>
  <Step>
    In Node-RED, add the `node-red-contrib-servicely` package to the palette, as the Node-RED guide to [adding nodes](https://nodered.org/docs/user-guide/runtime/adding-nodes) describes. Use version 0.0.17 or later.
  </Step>
  <Step>
    In Servicely, go to **Integrations → API access → System API tokens** and select **New**.

    <Image src="asset:screenshots/admin/integrations-connect-node-red/nav-system-api-tokens.png">The System API tokens item in the API access menu of Integrations.</Image>
  </Step>
  <Step>
    Enter a **Name** that says which Node-RED installation uses the token.
  </Step>
  <Step>
    Set the validation fields as the table below shows, and choose the user in **Impersonate user**.

    | Field | Value |
    | --- | --- |
    | **Validation type** | HMAC header validation |
    | **Hash method** | SHA256 |
    | **Header key** | Date |

    <Image src="asset:screenshots/admin/integrations-connect-node-red/hmac-header-token.png">A new System API token with HMAC header validation, SHA256 and the Date header key.</Image>
  </Step>
  <Step>
    Optionally, limit the token in **URL Allowed Paths** or **Allowed Scopes**. If you select scopes, include every entry point the flow uses, for example **REST API (v1)** and **Async Queue**. Leave both empty to allow every entry point the impersonated user can reach.
  </Step>
  <Step>
    Select **Generate Token**. Copy the token and the secret and store them somewhere safe. Servicely stores only the token prefix, so it cannot show them again.
  </Step>
  <Step>
    In Node-RED, open a Servicely node and add a Servicely connection. Set the authentication type to **HMAC Header Token** and paste the token and the secret.
  </Step>
  <Step>
    Deploy the flow and run it once with a REST node that reads one record.
  </Step>
</Steps>

## Result

The REST node returns the record, and the token's last authentication time and address appear on the System API token record. Every Servicely node that uses the connection now signs its requests with the token. If the secret is lost, generate a new token and update the connection.

## Related

- [Node-RED](page:integrations/node-red)
- [Authentication methods for inbound integrations](page:integrations/inbound-authentication)
- [Platform roles](page:access/roles-and-permissions/platform-roles)
