Webhooks
Verify webhook requests
Check the Plexus signature before accepting an incoming webhook.
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.
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.
| Field or check | Expected value |
|---|---|
| alg | RS256 |
| iss | plexus |
| kid | Starts with plexus/ (for example, plexus/key1). |
| aud | Matches the webhook URL you registered. |
| nbf | The current time is after the not-before time. |
| exp | The current time is before the expiry time. |
| Signature | Valid 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).
https://api.plexus.net/.well-known/jwks.jsonNeed help with your integration? Contact the Plexus team.