Skip to main content

WebhooksVerify signature

Verify signature

HMAC-SHA256 of the raw body with the signing_secret.

HeaderMeaning
X-Aivyro-Signaturesha256= + hex HMAC-SHA256 of the raw body
X-Aivyro-TimestampISO timestamp in the envelope
X-Aivyro-NonceUnique per delivery
X-Aivyro-Public-EventPublic name (contact.created)

Use event.public_type (or X-Aivyro-Public-Event) as the public name. event.type is internal. Rotate with POST /api/v1/webhooks/{id}/rotate_secret. The new secret is shown once. Old signatures fail.