Authentication
Send an API key as a bearer token on every request.
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
- Create the new key
Create a key with the same mode and deploy it.
- 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.