Quickstart

Add your first tracking and get a webhook when it changes. It takes about five minutes.

Embed
Preview of the card
<a href="https://trackified.net/docs/quickstart"><img src="https://trackified.net/docs/_api/public/orgs/e2a7773e-db9e-41cb-bd59-bd248745cac3/spaces/9d63a5d4-feb0-4803-84a5-dc68639362a6/pages/14c68536-5d2f-426d-b4ca-dca0eebf2765/social-card.svg?v=3e7ae33eec8b" alt="Quickstart" width="600" height="315"></a>

Pick a language in any code block. The choice carries over to every block on the page.

  1. Create an API key

    Sign up, then open API keys in the dashboard and create a test key. Test keys start with test_, live keys with live_.

    Put the key in the TRACKIFIED_API_KEY environment variable. Every library, the CLI and the MCP server read it from there.

    export TRACKIFIED_API_KEY=test_...

    See Authentication for how keys work.

  2. Install a library
    # Nothing to install. Send the key as a bearer token:
    # Authorization: Bearer $TRACKIFIED_API_KEY
  3. Add a tracking

    Send the tracking number. Add carrier if you know it, and custom_id to attach your own order reference. carrier can be our carrier id or a name such as "UPS Ground". Leave it out and we detect it from the number.

    curl -X POST https://api.trackified.net/v1/trackings \
      -H "Authorization: Bearer $TRACKIFIED_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{"tracking_number": "1Z999AA10123456784", "custom_id": "order_1042"}'

    We check the carrier within a minute, then keep checking on a schedule: every 4 hours until the first scan, every 2 hours in transit, and every 30 minutes once it's out for delivery. A parcel waiting at a collection point is checked every 4 hours.

    The libraries send an Idempotency-Key with every create, so a retried request never adds a second tracking. See Pagination, retries and idempotency.

  4. Add a webhook

    Register an HTTPS URL and pick the events you want. Leave event_types out and you get tracking.updated and tracking.delivered.

    curl -X POST https://api.trackified.net/v1/webhooks \
      -H "Authorization: Bearer $TRACKIFIED_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
        "url": "https://example.com/webhooks/tracking",
        "event_types": ["tracking.status_changed", "tracking.delivered"]
      }'

    The response includes the signing secret, once. Every event is signed with it. Verify the signature before you trust an event.

  5. Read a tracking
    curl https://api.trackified.net/v1/trackings/trk_... \
      -H "Authorization: Bearer $TRACKIFIED_API_KEY"

    The response has the current status and every carrier event, newest first. Webhook events lists every status.

Next

Every endpoint is in the API reference, in the sidebar.

Updated