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.

  1. Open Settings, then Developer, then Webhooks.
  2. Select Add Endpoint and enter your public HTTPS URL.
  3. Choose the event types you want to receive.
  4. Save the endpoint and copy the whsec_ signing secret immediately.
  5. Select Send Test to deliver a signed webhook.test ping and confirm a 2xx response.

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>.

  1. Split the header into the t timestamp and every v1 signature value.
  2. Reject requests whose timestamp falls more than 5 minutes away from your server clock.
  3. Build the signed payload string by joining <t>, a literal dot . and the raw UTF-8 request body.
  4. Compute HMAC-SHA256 using your webhook secret and compare it against each v1 value in constant time.

Accept the request if any v1 value matches your active secret.

Rotate secrets with zero downtime

  1. Open the endpoint in Webhooks settings and select Rotate Secret (or call POST /v1/webhooks/{id}/rotate-secret).
  2. Save the new secret immediately. DeltaVelocity updates secret_rotated_at and sets previous_secret_expires_at 24 hours ahead.
  3. During that 24-hour grace window, DeltaVelocity signs each request with both secrets and sends two v1= values in DV-Signature.
  4. Deploy the new secret to your receiver before previous_secret_expires_at passes.

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.

Was this helpful?