Webhook events
The events we send, what each one carries, and how retries work.
Register an endpoint with POST /v1/webhooks and pick the events you want in event_types. Leave it out and you get tracking.updated and tracking.delivered. The URL must use HTTPS.
A tracking's status is one of:
Status | Meaning |
|---|---|
| Added, but the carrier hasn't scanned the parcel yet (it may have the label details). |
| Picked up and moving, including leaving the shipper. |
| On the final delivery run. |
| Waiting at a collection point (post office, locker, access point) for the recipient. |
| Delivered. |
| A problem: a failed attempt, a hold, damage, or we couldn't reach the carrier. |
| Being returned to the sender. |
| The carrier's latest update couldn't be classified. |
events is always newest first: sorted by occurred_at, with any event that has no time kept in the carrier's order after the dated ones. The API guarantees this order, so events[0] is the latest scan.
Each entry in events has the same statuses, except that not_yet_scanned is info_received (the carrier has the label details but not the parcel), and:
Field | Meaning |
|---|---|
| ISO 8601. With an offset ( |
|
|
| What the carrier reported. |
| Deprecated: the time exactly as the carrier printed it. Sent until 2027-06-01 and removed after that. Use |
delivered_at is the delivered scan's own time, in the same form as occurred_at (with delivered_at_time_zone_known). delivery_detected_at is when Trackified first saw the delivery.
Event | Sent when |
|---|---|
| A tracking is added, one at a time or in bulk. |
| We checked the carrier and saved the result. |
| The status changes, for example from |
| The parcel is delivered. |
| The carrier reports a problem (a failed delivery, a hold): |
| The parcel is being returned to its sender. The tracking's status becomes |
tracking.expired is accepted in event_types but isn't sent today.
Every delivery is a POST with a JSON body:
{
"id": "evt_...",
"type": "tracking.status_changed",
"created_at": "2026-10-21T20:18:19.402Z",
"data": {
"tracking": { "id": "trk_...", "tracking_number": "1Z999AA10123456784", "status": "out_for_delivery", "events": [] },
"previous_status": "in_transit",
"current_status": "out_for_delivery"
}
}Retries
Answer with any 2xx status once you've accepted the event. Anything else, or no answer, and we try again: up to 5 attempts, about 30 seconds apart. An endpoint that fails 100 times in a row is disabled; turn it back on in the dashboard once it's fixed.
To change an endpoint's URL or events, or pause it with enabled: false, call PATCH /v1/webhooks/{id}. The secret stays the same, and a paused endpoint receives nothing. To change the secret, see Rotate the secret.
Use the event id to ignore an event you've already handled: a retry carries the same id. GET /v1/webhook-deliveries lists recent attempts with the status your endpoint returned, which helps when an endpoint is failing. To test your handler, POST /v1/webhooks/{id}/test returns a signed sample event without sending it.