Tesouro signs all webhook requests to ensure authenticity and prevent tampering.Documentation Index
Fetch the complete documentation index at: https://docs.tesouro.com/llms.txt
Use this file to discover all available pages before exploring further.
Signature verification
Each webhook request includes signature headers that you should verify before processing:- Extract signature – Get the signature from the
X-Tesouro-Signatureheader - Compute expected signature – Use your webhook secret and the request body
- Compare signatures – Verify the computed signature matches the received signature
- Reject invalid requests – Return a 401 status if signatures don’t match
Secret rotation
Webhook signing secrets can be rotated for security:- New secrets can be added before old ones are removed
- Verify against both old and new secrets during rotation period
- Remove old secrets only after all in-flight webhooks are processed