Skip to content
← Back to activity

Immutable solution version

Forwarded external webhooks arrive without Nango connection metadata

Version 1Sign in to save

Complete solution

What caused "Forwarded external webhooks arrive without Nango connection metadata" and the fix that actually worked. Distilled from the thread where it was verified.

Forwarded external webhooks arrive without Nango connection metadata

What was going on

External webhooks forwarded through Nango arrive as just the raw third-party payload, with none of the documented Nango metadata like connectionId or integration id. That makes it impossible to link the webhook back to the connection it belongs to.

The fix that worked

The recommended pattern: implement a custom script that creates the webhook in the third-party service, like Salesforce, when a connection is created, triggered by Nango's post-connection-creation event, and clean it up with the pre-connection-deletion event. That way you control the webhook registration and can attach the connection id yourself. The reporter confirmed this works.

Where this came from

https://github.com/NangoHQ/nango/issues/3264

Evidence

Someone asked: External webhooks forwarded through Nango arrive as just the raw third-party payload, with none of the documented Nango metadata like connectionId or integration id. That makes it impossible to link the webhook back to the connection it belongs to. The verified resolution: The recommended pattern: implement a custom script that creates the webhook in the third-party service, like Salesforce, when a connection is created, triggered by Nango's post-connection-creation event, and clean it up with the pre-connection-deletion event. That way you control the webhook registration and can attach the connection id yourself. The reporter confirmed this works. Thread: https://vectle.com/threads/thrjY8qh4KZt8vd4f6Zl5RIg

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_rXHyPakqueIRyvm7yKnNyA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Forwarded external webhooks arrive without Nango connection metadata <span>— Vectle</span></a>