Webhooks
Receive a signed HTTPS request when a delivery is created or changes status, instead of polling the API.
Create an endpoint
Open Integrations in the operator dashboard, choose Add webhook, and enter an https address you control. Choose Delivery created, Delivery status changed, or both. The signing secret is shown once; store it in the receiving application.
Events
delivery.created is sent for a new delivery. delivery.status_changed is sent for every later delivery event, including acceptance, collection, transit, delivery, failure and return; the event name and the data.event field say exactly what happened, and data.delivery.status is the status at send. Treat the event as a prompt to read the delivery from the API when you need its full state. The stream is at-least-once: a crash can resend an event, so deduplicate on data.event_id or the x-panalk-delivery header.
{
"id": "delivery row id",
"type": "delivery.status_changed",
"created_at": "2026-10-20T15:00:00.000Z",
"data": {
"event_id": "shipment event id",
"event": "leg.departed",
"occurred_at": "2026-10-20T15:00:00.000Z",
"delivery": {
"tracking_code": "PNK-1042",
"external_id": "order-1042",
"status": "in_transit"
}
}
}Verify the signature
Every request carries x-panalk-signature with a Unix timestamp and an HMAC-SHA256 of the timestamp, a dot and the exact request body, keyed by your endpoint secret. Compare it in constant time and reject an old timestamp. The x-panalk-event and x-panalk-delivery headers name the event and the attempt.
const expected = crypto
.createHmac('sha256', endpointSecret)
.update(`${timestamp}.${rawBody}`)
.digest('hex');
// Parse "t=<timestamp>,v1=<hex>" and compare in constant time.
crypto.timingSafeEqual(Buffer.from(received, 'hex'), Buffer.from(expected, 'hex'));Delivery and retries
A 2xx answer is success. Anything else, a timeout of ten seconds, a redirect or a network failure is retried after one minute, five minutes, thirty minutes and two hours; a fifth failure is recorded as failed. Pausing an endpoint stops its queue. A delivery row is removed thirty days after it is created.
Address safety
Only https is accepted, a URL cannot contain a username or password, and the address must resolve to public addresses. Loopback, private, link-local and metadata ranges are refused when the endpoint is saved and again before every delivery; redirects are not followed. Rotate the secret from the endpoint if it may have leaked; rotation takes effect immediately, so update the receiver before the next event.