Skip to main content

Webhooks

Register and manage webhook endpoints that receive real-time invoice event notifications.

Coinsnap signs every delivery twice with the webhook secret, so you can verify authenticity on your server.

X-Coinsnap-Signature: t=<unixSeconds>,v1=<hex> signs ${t}.${body}. Prefer it: the timestamp is part of the signed input, so a captured request cannot be replayed with a fresh t. Verify v1, reject a t older than about 5 minutes, and compare in constant time.

X-Coinsnap-Sig: sha256=<hex> signs the body alone and offers no replay protection by itself. It is kept for existing receivers.

See the Webhook Payloads section below for the exact body structure of each event type.