Getting Started
-
Choose Your Events
- Review the Event Types documentation
- Select which events you want to monitor
-
Register Your Webhook
- Use the UI in the Cargado webhooks integration settings: Production or Sandbox
- Or integrate programmatically via our API
- Add your endpoint URL where you’ll receive notifications
-
Create Your Endpoint
- Set up a public HTTPS POST endpoint
- Verify the signature on each request (see below) to confirm it came from Cargado
- Test locally using a tunnel such as ngrok
- Deploy to production once tested
Verifying deliveries
Every webhook is signed, so you can confirm a request genuinely came from Cargado before acting on it. When you register an endpoint, Cargado returns a signing secret — store it securely; it’s only shown once. Each delivery includes three headers:webhook-id— a unique id for the delivery (also useful for idempotency)webhook-timestamp— when the delivery was signedwebhook-signature— an HMAC over the id, timestamp, and the raw request body
- Reject deliveries whose
webhook-timestampfalls outside a tolerance window of a few minutes, to guard against replay. - Verify against the raw request body. Parsing and re-serializing the JSON first will change the bytes and break the signature.

