Webhooks

Verify webhook requests

Check the Plexus signature before accepting an incoming webhook.

On this page

Read the signature header

Plexus includes a signed JSON Web Token (JWT) in the X-Plexus-Signature header. The token uses RS256 and identifies the intended webhook URL as its audience.

Signature header format HTTP
X-Plexus-Signature: <signed JWT>

Validate the token

Use a JWT verification library with the Plexus public keys. Decoding the token alone does not verify its signature. Check all of the following before processing the event.

Required JWT checks
Field or checkExpected value
algRS256
issplexus
kidStarts with plexus/ (for example, plexus/key1).
audMatches the webhook URL you registered.
nbfThe current time is after the not-before time.
expThe current time is before the expiry time.
SignatureValid against the matching key from the Plexus JWKS.

Get the Plexus public keys

Plexus publishes the keys needed for signature verification in its JSON Web Key Set (JWKS).

Plexus JWKS URL
https://api.plexus.net/.well-known/jwks.json

Need help with your integration? Contact the Plexus team.