Skip to content

Latest commit

 

History

History
166 lines (128 loc) · 8.1 KB

getting-started.md

File metadata and controls

166 lines (128 loc) · 8.1 KB

Getting started

The long version: installing, creating the credential, setting up the trigger, finding the URL to give your provider, and what this package has been verified against.

Install

This is a verified community node, so it installs on n8n Cloud and on self-hosted n8n. Either way you need to be an instance owner or admin, and once it is installed, everyone on the instance can use it.

You'll also need a Hookdeck account; the free tier is enough to run real workflows on.

n8n Cloud

  1. Open the nodes panel (click + or press N) and search for Hookdeck.
  2. Select Hookdeck Event Gateway under More from the community and click Install.

Self-hosted n8n

Install it from the nodes panel, as on n8n Cloud, or by package name: follow the community nodes installation guide and use @hookdeck/n8n-nodes-hookdeck. The package-name route also works when verified community nodes are turned off.

Your instance doesn't need a public address. If Hookdeck can't reach it, for example behind NAT, the trigger delivers through the Hookdeck CLI instead. Transport covers both routes.

Credentials

The nodes authenticate with the API key of a Hookdeck Event Gateway project.

  1. Open Hookdeck and select an Event Gateway project.
  2. Go to Project Settings → Secrets and copy the API key.
  3. In n8n, create a new Hookdeck Event Gateway API credential and paste the key.

One credential is one project. The key carries the project, so there is nothing else to configure and no way to reach across projects — everything these nodes create or read belongs to the project the key came from. To work with a second project, add a second credential.

A key from an Outpost project will not work here. Outpost is the outbound path, with its own API; these nodes only speak to the Event Gateway.

How the key is stored, and routes other than the editor

n8n stores the key in its own database, encrypted with the instance's N8N_ENCRYPTION_KEY, and shows it masked once saved. Pasting it into the editor is the usual route, but not the only one:

  • External secrets (Enterprise, self-hosted or Cloud). Set API Key to {{ $secrets.<vault-name>.<secret> }} and n8n reads the key from AWS Secrets Manager, Azure Key Vault, GCP Secrets Manager, HashiCorp Vault, Infisical or 1Password. This is the answer when policy says secrets are not pasted into UIs.
  • Credential overwrites (self-hosted). Setting CREDENTIALS_OVERWRITE_DATA='{"hookdeckEventGatewayApi":{"apiKey":"<key>"}}' fills API Key on Hookdeck credentials without storing the key in them. The editor then hides the field, so every Hookdeck credential created there uses that key, and so that one project.
  • Scripted provisioning. n8n's public API and n8n import:credentials create the credential without the editor.

Not {{ $env.HOOKDECK_API_KEY }}. n8n 2.x blocks $env in expressions unless N8N_BLOCK_ENV_ACCESS_IN_NODE=false, which reopens environment access to every node and Code step on the instance, and n8n Cloud has no environment to read. Credential overwrites do the same job without that cost.

Setting up the trigger

Set a source name, pick the platform sending the events, and activate the workflow. On activation the node creates a Hookdeck connection whose destination is this workflow's webhook URL. The public source URL to give your provider is then listed under Source → From List — see Finding the source URL.

Events arrive through Hookdeck rather than directly, so Hookdeck's connection rules apply to them — retries, delivery rate limits and deduplication are configured on the node under Options. Every option is listed in the trigger reference.

On wording. n8n 2.x calls making a workflow live publishing — the button reads Publish, and Unpublish to take it down. Older versions, the REST API, and the node option On Deactivate still say activate and deactivate. They are the same thing.

Verification only starts when a secret is set. Choosing a Source Type tells Hookdeck which signature scheme that platform uses; it does not enable verification on its own. Fill in Webhook Secret for platform sources, or set Verification for generic ones. AWS SNS and ShipStation are the exception: Hookdeck fetches their signing keys itself, so they take no secret, and the node turns their verification on. Security explains why this is easy to miss and how to confirm a source is verifying.

An existing source is adopted, not rewritten

If a source of that name is already in the project, the node binds the connection to it by ID and leaves its Source Type and Verification exactly as they are — a source can feed several connections, and rewriting it would change how their events are verified too. The node's own Source Type and Verification apply only when it creates the source. Note that this holds even when the types agree: a Webhook Secret or HMAC setting entered here does not reach a source that already exists. Whenever a setting is ignored, n8n's server log names it.

To deliberately reconfigure an existing source, turn on Options → Update Existing Source. That applies this node's settings to the source, and to every connection fed by it.

Finding the source URL

This is the address you give your provider. It is https://hkdk.events/<source id>, and Hookdeck generates that ID when the source is created, so it cannot be predicted from the name and does not exist until the source does.

  1. Source → By Name, type a name.
  2. Publish the workflow. The node creates the source.
  3. Source → From List. Each source is listed as name — https://hkdk.events/....
  4. Give that URL to Stripe, GitHub, or whatever is sending the events.

There is no need to know the URL before publishing. Nothing can arrive until your provider has been pointed at it, so publishing first costs nothing.

If the source already exists in Hookdeck, skip to step 3 — pick it from the list, and the node leaves its Source Type and Verification alone. The link beside the field in By Name mode opens Hookdeck's create-a-source page, if you would rather make it there first.

To get the URL onto your clipboard, either use the link beside a listed source, which opens it in the Hookdeck dashboard where there is a copy button, or run the Hookdeck Event Gateway node with Source → Get or Create or Source → Get URL, both of which return the URL as workflow data with copy-on-hover. (The link deliberately does not point at the source URL itself: that endpoint rejects browser GET requests with 405, and aiming a link at your own ingest endpoint invites firing requests at it by accident.)

n8n's own webhook URL is hidden on this node on purpose. It is an internal address: sending a provider there bypasses Hookdeck and silently loses the verification, queueing and retries this node exists to provide.

If Hookdeck cannot reach your n8n

A laptop, or an instance behind NAT, has no address Hookdeck can deliver to. The trigger detects this on publish, provisions a CLI destination instead of an HTTP one, and writes the hookdeck listen command to run to n8n's server log. There is nothing to configure, but the CLI route has limits of its own — Transport covers both routes and what differs.

Compatibility

Built against Hookdeck API version 2025-07-01, and verified end to end on n8n 2.35.7 with Node.js 22.23.2: package loaded from N8N_CUSTOM_EXTENSIONS, credential created and its test passing, workflow activated, a live event sent through the source URL and received by the workflow with its signature verified, forged requests rejected with 401, and an event sent while deactivated held and then delivered on reactivation.

It targets n8nNodesApiVersion: 1, which n8n 1.x also supports, but only 2.x has been tested — if you run 1.x, treat it as unverified rather than assumed working.