---
title: "Connect Node-RED to Servicely"
site: admin
version: 1.11
versions: "all"
url: https://docs-new.servicely.ai/admin/1.11/integrations/connect-node-red/
type: task
application: platform_integration
last_updated: 2026-10-18
commit: 5ea5eb0dd83d
---


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.

## 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, select **Administration → Integration → System API Tokens**, then **New**.
  </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 |
  </Step>
  <Step>
    Optionally, limit the token in **URL Allowed Paths** or **Allowed Scopes**. 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/platform-roles)
