Webhook signature verification
Verify webhook payloads from Apian Labs Relay before processing them.
Steps
- Capture the raw request body exactly as received.
- Read
x-apian-timestampandx-apian-signatureheaders. - Use the Relay SDK helper to verify the signature.
- Reject requests that fail validation (401).
If verification fails
- Ensure the webhook secret matches the workspace
- Confirm the raw body is not modified before verification