Webhook Signature Verification
Posttu uses Svix for webhook delivery and security. Every webhook HTTP request sent to your endpoint includes cryptographic signature headers.
Verifying these signatures ensures that incoming requests genuinely originated from Posttu and have not been altered or forged in transit.
Each incoming HTTP POST request from Posttu contains the following headers:
How to Verify Signatures
You can verify signatures using the official Svix library for your preferred language or framework.
TypeScript / Node.js
Install the svix package:
Verify the signature in your HTTP handler:
Python
Install svix:
Verify in Python:
Security Best Practices
- Replay Protection: The
svix SDK automatically rejects messages sent older than 5 minutes to prevent replay attacks.
- Keep Secrets Secure: Store your webhook signing secret (starting with
whsec_) securely in environment variables.
- Use Raw Request Body: Always pass the exact raw byte string or raw text payload to
wh.verify(). Parsing JSON prior to verification alters white spaces and invalidates signatures.
Last modified on July 30, 2026