Webhook forwarding lets Nango receive webhooks from external APIs and forward them to your appβs webhook URL. Use it when your app should own the webhook handling logic, but you still want Nango to provide the provider-specific webhook URL, routing, signing, retries, and logs. For processing the webhook inside Nango function code, use webhook functions.Documentation Index
Fetch the complete documentation index at: https://nango.dev/docs/llms.txt
Use this file to discover all available pages before exploring further.
How forwarding works
- You configure your appβs webhook URL in Environment Settings > Webhook URLs.
- You register the integrationβs Nango webhook URL in the providerβs developer portal. Find it in Integrations > [Integration] > Webhooks.
- The provider sends a webhook to Nango.
- Nango runs the provider-specific routing logic and tries to map the event to one or more Nango connections.
- Nango forwards the payload to your appβs webhook URL and signs the request like other Nango webhooks.
Forwarded payloads
When Nango can attribute the webhook to a connection, your app receives a Nango wrapper:Headers and signatures
Nango forwards safe provider headers when possible, excluding headers that should not be replayed such asauthorization, cookie, host, content-length, content-type, user-agent, and similar transport-sensitive headers.
Every forwarded webhook is signed with the same headers used by other Nango webhooks:
X-Nango-Hmac-Sha256X-Nango-Signaturefor backwards compatibility
When to use forwarding
Use forwarding when:- Your app already has webhook handling logic.
- You want app code to decide what to do with the provider event.
- You need Nango to attribute the event to a connection when possible.
- You want webhook delivery logs and retries without running Nango function code.
Configure forwarding
Configure your app webhook URL
In Nango, open Environment Settings > Webhook URLs and add your appβs endpoint.Nango sends forwarded webhooks to the same URLs used for auth, sync, and async action webhooks.
Register the provider webhook URL
In the integration page, copy the Nango webhook URL from Integrations > [Integration] > Webhooks and register it in the providerβs developer portal.Some providers use one global webhook registration. Others require one webhook registration per connected account. Provider-specific docs explain the required setup.
For agents
For agents
When implementing webhook forwarding, first find the provider-specific Nango webhook guide. Confirm whether the provider routes automatically or requires embedding the Nango connection ID, tenant ID, team ID, installation ID, or another identifier in the provider webhook subscription.Implement signature verification with
X-Nango-Hmac-Sha256, then branch on whether the incoming body has type: "forward". Store and use connectionId only when it is present.