Webhook events

The events we send, what each one carries, and how retries work.

Embed
Preview of the card
<a href="https://trackified.net/docs/events"><img src="https://trackified.net/docs/_api/public/orgs/e2a7773e-db9e-41cb-bd59-bd248745cac3/spaces/9d63a5d4-feb0-4803-84a5-dc68639362a6/pages/ea5b2bb8-fc57-4d9a-9ec1-4eb9ccd0c8a2/social-card.svg?v=3e7ae33eec8b" alt="Webhook events" width="600" height="315"></a>

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

not_yet_scanned

Added, but the carrier hasn't scanned the parcel yet (it may have the label details).

in_transit

Picked up and moving, including leaving the shipper.

out_for_delivery

On the final delivery run.

available_for_pickup

Waiting at a collection point (post office, locker, access point) for the recipient.

delivered

Delivered.

exception

A problem: a failed attempt, a hold, damage, or we couldn't reach the carrier.

returned

Being returned to the sender.

unknown

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

occurred_at

ISO 8601. With an offset (2026-06-25T14:31:28Z) when the carrier gave a time zone; otherwise the local time where the scan happened, with no offset (2026-06-25T14:22:00), or a date alone. null if the carrier's time couldn't be read.

time_zone_known

true when occurred_at carries an offset. Most carriers report local time only.

status, description, location

What the carrier reported.

date

Deprecated: the time exactly as the carrier printed it. Sent until 2027-06-01 and removed after that. Use occurred_at.

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

tracking.created

A tracking is added, one at a time or in bulk. data is the tracking.

tracking.updated

We checked the carrier and saved the result. data is the tracking.

tracking.status_changed

The status changes, for example from in_transit to out_for_delivery. data has tracking, previous_status and current_status.

tracking.delivered

The parcel is delivered. data is the tracking.

tracking.exception

The carrier reports a problem (a failed delivery, a hold): data is the tracking. Or we couldn't reach the carrier on this check: data is { "tracking_id": "trk_...", "error": "..." } and the tracking's status doesn't change.

tracking.returned

The parcel is being returned to its sender. The tracking's status becomes returned. data is the tracking.

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.

Updated