Set up webhooks and rotate secrets
Last reviewed on by DeltaVelocity team
Register a webhook endpoint
Brand admins can register up to 5 webhook endpoints per brand in the dashboard or through POST /v1/webhooks. Every endpoint must use HTTPS on port 443 and resolve only to public IP addresses.
- Open Settings, then Developer, then Webhooks.
- Select Add Endpoint and enter your public HTTPS URL.
- Choose the event types you want to receive.
- Save the endpoint and copy the
whsec_signing secret immediately. - Select Send Test to deliver a signed
webhook.testping and confirm a2xxresponse.
DeltaVelocity shows the signing secret once at creation and does not follow HTTP redirects. See Shipping API and MCP for API details.
All 13 webhook event types
DeltaVelocity publishes 8 shipment events and 5 communication events:
| Group | Events |
|---|---|
| Shipment events | shipment.created, shipment.picked_up, shipment.ndr, shipment.delivered, shipment.rto_initiated, shipment.rto_delivered, shipment.cancelled, shipment.status_changed |
| Communication events | communication.message.received, communication.message.status, communication.request.created, communication.request.updated, communication.request.decided |
Use the DV-Event-Id header to deduplicate events in your database.
Verify DV-Signature
Every webhook request includes a DV-Signature header formatted as t=<unix_seconds>,v1=<hex_digest>.
- Split the header into the
ttimestamp and everyv1signature value. - Reject requests whose timestamp falls more than 5 minutes away from your server clock.
- Build the signed payload string by joining
<t>, a literal dot.and the raw UTF-8 request body. - Compute HMAC-SHA256 using your webhook secret and compare it against each
v1value in constant time.
Accept the request if any v1 value matches your active secret.
Rotate secrets with zero downtime
- Open the endpoint in Webhooks settings and select Rotate Secret (or call
POST /v1/webhooks/{id}/rotate-secret). - Save the new secret immediately. DeltaVelocity updates
secret_rotated_atand setsprevious_secret_expires_at24 hours ahead. - During that 24-hour grace window, DeltaVelocity signs each request with both secrets and sends two
v1=values inDV-Signature. - Deploy the new secret to your receiver before
previous_secret_expires_atpasses.
Rotating again inside the 24-hour grace window replaces only the current secret while keeping the previous secret valid until its original expiry.
Retries, auto-disable alerts and replay
DeltaVelocity attempts each delivery up to 5 times: once right away, then retries after 1 minute, 10 minutes, 1 hour and 6 hours. After the fifth failure, DeltaVelocity marks the delivery dead.
If an endpoint fails continuously for 3 days, DeltaVelocity auto-disables it and emails your brand support address. Fix your server, set the endpoint back to active, then open Deliveries (kept for 30 days) and select Replay on any dead delivery.
Read how to get tracking by API or webhook to combine webhooks with polling.
Related
Read the full reference in the DeltaVelocity docs
Ship with DeltaVelocity
Connect your store, compare couriers and track COD remittance from one dashboard.