|
| 1 | +# Getting started |
| 2 | + |
| 3 | +The long version: installing, creating the credential, setting up the trigger, |
| 4 | +finding the URL to give your provider, and what this package has been verified |
| 5 | +against. |
| 6 | + |
| 7 | +## Install |
| 8 | + |
| 9 | +Follow the [community nodes installation guide](https://docs.n8n.io/integrations/community-nodes/installation/) |
| 10 | +and use the package name `@hookdeck/n8n-nodes-hookdeck`. |
| 11 | + |
| 12 | +You'll also need a [Hookdeck account](https://dashboard.hookdeck.com/signup); |
| 13 | +the free tier is enough to run real workflows on. |
| 14 | + |
| 15 | +**Self-hosted n8n today.** n8n Cloud installs only community nodes on n8n's |
| 16 | +[verified list](https://docs.n8n.io/integrations/community-nodes/installation/verified-install/), |
| 17 | +and this package is not on it yet — the submission is pending. Self-hosted |
| 18 | +instances can install any community package, so that is where it runs for now. |
| 19 | + |
| 20 | +## Credentials |
| 21 | + |
| 22 | +The nodes authenticate with the API key of a Hookdeck **Event Gateway** project. |
| 23 | + |
| 24 | +1. Open [Hookdeck](https://dashboard.hookdeck.com) and select an Event Gateway |
| 25 | + project. |
| 26 | +2. Go to **Project Settings → Secrets** and copy the API key. |
| 27 | +3. In n8n, create a new **Hookdeck Event Gateway API** credential and paste the |
| 28 | + key. |
| 29 | + |
| 30 | +One credential is one project. The key carries the project, so there is nothing |
| 31 | +else to configure and no way to reach across projects — everything these nodes |
| 32 | +create or read belongs to the project the key came from. To work with a second |
| 33 | +project, add a second credential. |
| 34 | + |
| 35 | +A key from an Outpost project will not work here. Outpost is the outbound path, |
| 36 | +with its own API; these nodes only speak to the Event Gateway. |
| 37 | + |
| 38 | +## Setting up the trigger |
| 39 | + |
| 40 | +Set a source name, pick the platform sending the events, and activate the |
| 41 | +workflow. On activation the node creates a Hookdeck connection whose destination |
| 42 | +is this workflow's webhook URL. The public source URL to give your provider is |
| 43 | +then listed under **Source → From List** — see |
| 44 | +[Finding the source URL](#finding-the-source-url). |
| 45 | + |
| 46 | +Events arrive through Hookdeck rather than directly, so Hookdeck's connection |
| 47 | +rules apply to them — retries, delivery rate limits and deduplication are |
| 48 | +configured on the node under **Options**. Every option is listed in the |
| 49 | +[trigger reference](trigger.md). |
| 50 | + |
| 51 | +> **On wording.** n8n 2.x calls making a workflow live **publishing** — the |
| 52 | +> button reads *Publish*, and *Unpublish* to take it down. Older versions, the |
| 53 | +> REST API, and the node option **On Deactivate** still say activate and |
| 54 | +> deactivate. They are the same thing. |
| 55 | +
|
| 56 | +**Verification only starts when a secret is set.** Choosing a Source Type tells |
| 57 | +Hookdeck *which* signature scheme that platform uses; it does not enable |
| 58 | +verification on its own. Fill in **Webhook Secret** for platform sources, or |
| 59 | +set **Verification** for generic ones. [Security](security.md) explains why this |
| 60 | +is easy to miss and how to confirm a source is verifying. |
| 61 | + |
| 62 | +### An existing source is adopted, not rewritten |
| 63 | + |
| 64 | +If a source of that name is already in the project, the node binds the |
| 65 | +connection to it by ID and leaves its Source Type and Verification exactly as |
| 66 | +they are — a source can feed several connections, and rewriting it would change |
| 67 | +how their events are verified too. The node's own Source Type and Verification |
| 68 | +apply only when it creates the source. Note that this holds even when the types |
| 69 | +agree: a Webhook Secret or HMAC setting entered here does not reach a source |
| 70 | +that already exists. Whenever a setting is ignored, n8n's server log names it. |
| 71 | + |
| 72 | +To deliberately reconfigure an existing source, turn on **Options → Update |
| 73 | +Existing Source**. That applies this node's settings to the source, and to every |
| 74 | +connection fed by it. |
| 75 | + |
| 76 | +## Finding the source URL |
| 77 | + |
| 78 | +This is the address you give your provider. It is `https://hkdk.events/<source id>`, |
| 79 | +and Hookdeck generates that ID when the source is created, so it cannot be |
| 80 | +predicted from the name and does not exist until the source does. |
| 81 | + |
| 82 | +1. **Source → By Name**, type a name. |
| 83 | +2. **Publish the workflow.** The node creates the source. |
| 84 | +3. **Source → From List.** Each source is listed as `name — https://hkdk.events/...`. |
| 85 | +4. Give that URL to Stripe, GitHub, or whatever is sending the events. |
| 86 | + |
| 87 | +There is no need to know the URL before publishing. Nothing can arrive until |
| 88 | +your provider has been pointed at it, so publishing first costs nothing. |
| 89 | + |
| 90 | +If the source already exists in Hookdeck, skip to step 3 — pick it from the |
| 91 | +list, and the node leaves its Source Type and Verification alone. The link |
| 92 | +beside the field in **By Name** mode opens Hookdeck's create-a-source page, if |
| 93 | +you would rather make it there first. |
| 94 | + |
| 95 | +To get the URL onto your clipboard, either use the link beside a listed source, |
| 96 | +which opens it in the Hookdeck dashboard where there is a copy button, or run |
| 97 | +the **Hookdeck Event Gateway** node with **Source → Get or Create** or |
| 98 | +**Source → Get URL**, both of which return the URL as workflow data with |
| 99 | +copy-on-hover. (The link deliberately does not point at |
| 100 | +the source URL itself: that endpoint rejects browser `GET` requests with `405`, |
| 101 | +and aiming a link at your own ingest endpoint invites firing requests at it by |
| 102 | +accident.) |
| 103 | + |
| 104 | +n8n's own webhook URL is hidden on this node on purpose. It is an internal |
| 105 | +address: sending a provider there bypasses Hookdeck and silently loses the |
| 106 | +verification, queueing and retries this node exists to provide. |
| 107 | + |
| 108 | +## If Hookdeck cannot reach your n8n |
| 109 | + |
| 110 | +A laptop, or an instance behind NAT, has no address Hookdeck can deliver to. |
| 111 | +The trigger detects this on publish, provisions a CLI destination instead of an |
| 112 | +HTTP one, and writes the `hookdeck listen` command to run to n8n's server log. |
| 113 | +There is nothing to configure, but the CLI route has limits of its own — |
| 114 | +[Transport](transport.md) covers both routes and what differs. |
| 115 | + |
| 116 | +## Compatibility |
| 117 | + |
| 118 | +Built against Hookdeck API version `2025-07-01`, and verified end to end on n8n |
| 119 | +**2.35.7** with Node.js 22.23.2: package loaded from `N8N_CUSTOM_EXTENSIONS`, |
| 120 | +credential created and its test passing, workflow activated, a live event sent |
| 121 | +through the source URL and received by the workflow with its signature verified, |
| 122 | +forged requests rejected with `401`, and an event sent while deactivated held and |
| 123 | +then delivered on reactivation. |
| 124 | + |
| 125 | +It targets `n8nNodesApiVersion: 1`, which n8n 1.x also supports, but only 2.x has |
| 126 | +been tested — if you run 1.x, treat it as unverified rather than assumed working. |
0 commit comments