~/Rev_

Bring-Your-Own Plaid Keys, and Verifying Webhooks Signed With Each User's Key

Every user connects their banks with their own Plaid account. That keeps control with them, and it means each webhook has to be verified against that user's own keys.

work: 10 Nov 2026 · Built · DecoupleX Finance, Plaid, Webhooks, Security

Why bring your own keys

Plaid's personal-use trial gives each account a limited number of live bank connections. If every user brings their own Plaid keys, each one gets their own allowance and owns their bank connections. Revoking access is something they can do at Plaid, not something they have to ask me for. For the beta audience (technical people) that setup is reasonable, and a setup guide covers it. It won't work for normal users at scale; that's a pricing decision before any public launch.


Connection lifecycle

  • Connect through Plaid Link with the user's own client ID and secret, stored encrypted (X07)
  • Cursor-based sync: only changes since the last cursor, never a full re-pull
  • Fix a connection in update mode, which reuses the existing slot instead of spending a new one
  • Duplicate-bank guard, so the same bank can't be connected twice by accident
  • Slot counter in Settings, and revoke on disconnect so a removed bank is actually removed at Plaid

Webhook verification

Plaid sends webhooks when new transactions land. Each one carries a signed JWT in a header. Verification, per request:

  1. Decode the JWT header and confirm the algorithm is ES256. Reject anything else; never accept none.
  2. Fetch the verification key for the header's key ID using that user's Plaid credentials, since the key belongs to their Plaid account, not mine.
  3. Verify the signature and check the token isn't stale.
  4. Hash the raw request body with SHA-256 and compare it with the hash claim in the JWT, so a valid token can't be replayed with a different body.

Only then does the sync run. A webhook that fails any step is dropped and logged without its body.


What it enabled

New transactions arrive within minutes instead of once a day, and connections that need the user to sign in again get flagged right away. The nightly sync stays as a safety net for missed webhooks.


Lessons

  • Multi-tenant keys mean multi-tenant verification. Whose key signed this is part of the check.
  • Verify the body, not just the token.
  • Webhooks are a fast path, not the only path. Keep a scheduled sync behind them.

Sources: DecoupleX Finance roadmap, Shipped: Plaid and "Real-time and alerts" (9–10 Nov 2026)