Authentication

Send an API key as a bearer token on every request.

Embed
Preview of the card
<a href="https://trackified.net/docs/authentication"><img src="https://trackified.net/docs/_api/public/orgs/e2a7773e-db9e-41cb-bd59-bd248745cac3/spaces/9d63a5d4-feb0-4803-84a5-dc68639362a6/pages/348f307e-ebdc-4ee0-9644-cbb6dfe35ae7/social-card.svg?v=3e7ae33eec8b" alt="Authentication" width="600" height="315"></a>

Every request carries your API key in the Authorization header:

Authorization: Bearer live_...

A missing, wrong or revoked key gets 401 unauthorized.

Keys

Create keys in the dashboard under API keys, or with POST /v1/account/api-keys. Each key has a mode, test or live, and the token starts with it: test_… or live_….

The full token is shown once, when you create the key. We store only a hash of it, so we can't show it again. If you lose a key, create a new one and revoke the old one.

Test and live keys

Both modes track real parcels and count toward your monthly quota. Use the mode to keep development and production keys apart, and to spot a test key in production config.

Where to keep the key

Put it in the TRACKIFIED_API_KEY environment variable. Every library, the CLI and the MCP server read it from there, so you don't pass it in code.

Keep the key on your server. Never ship it in a browser bundle or a mobile app: anyone holding it can add and stop trackings on your account.

To point a library or tool at another API host, set TRACKIFIED_BASE_URL. The default is https://api.trackified.net.

Rotate a key

  1. Create the new key

    Create a key with the same mode and deploy it.

  2. Revoke the old key

    Once nothing uses the old key, revoke it in the dashboard or with DELETE /v1/account/api-keys/{id}. It stops working at once.

GET /v1/account/api-keys lists your keys with their prefix, mode and last_used_at, so you can see whether an old key is still in use.

Rate limits

Requests are limited per API key, per minute. Your plan sets the limit. See Rate limits and plans.

Updated