Skip to main content
Build with NR Connect4 min read

Create a public webhook or API route

Expose an HTTP In endpoint and choose Open or Secret-key access.

On this page

When to use public webhook/API routes

By default, every path on https://your-instance.nr-connect.com requires an authenticated NR Connect browser session. Public webhook/API routes let you explicitly allowlist specific Node-RED http in paths so external services—such as webhooks, IoT gateways, Zapier/Make automations, or mobile shortcuts—can call your flows without logging in.

Editor & Dashboard paths stay protected

Public routes only open the exact path prefix you configure. Your Flow Editor (/), Admin APIs, and Dashboard 2.0 routes remain locked behind NR Connect authentication.

Open vs. Secret-key (Bearer) routes

Scroll sideways to view all columns.

ModeHow requests are verifiedBest for
Open (No auth)Forwarded directly to Node-RED without requiring an Authorization header.Third-party webhooks that verify their own request signatures inside Node-RED (e.g. Stripe, GitHub) or public health checks.
Secret key (Bearer) (Pro / Business)Verifies Authorization: Bearer <key> before requests ever reach your Node-RED host.Telemetry ingestion, CI/CD triggers, custom scripts, and private webhooks.

Creating a public route

  1. Build your HTTP In route in Node-RED

    Add an http in node (for example POST /webhook/sensor) wired to an http response node and deploy.

  2. Register the path in Instance Settings

    In the NR Connect portal, open your instance → Settings → Public webhook/API routes, enter /webhook/sensor, and pick Open or Secret key.

  3. Copy the secret key and test the route

    For Secret-key routes, the portal displays the generated key once and never stores the plaintext secret. Save it in your caller's secrets manager. You can also verify any route directly from Settings → Public webhook/API routes using the built-in tester (supporting GET, POST, PUT, PATCH, and DELETE requests with optional path suffix, body, and secret key).

Calling a secret-key route

Pass the secret key in the Authorization header as a Bearer credential. Requests missing or presenting an invalid key receive 401 Unauthorized before reaching your Node-RED host.

Test with curlbash
curl -X POST https://your-instance.nr-connect.com/webhook/sensor \
  -H "Authorization: Bearer YOUR_SECRET_KEY" \
  -H "Content-Type: application/json" \
  -d '{"deviceId":"tank-01","value":72.4}'