Error Response Format
All Trackpilots API errors follow a consistent response structure:Authentication & Authorization Errors
All Trackpilots API endpoints require a valid API key sent in theAuthorization header. The following errors are returned when authentication fails.
AUTHORIZATION_HEADER_MISSING
The request was sent without anAuthorization header.
Authorization header to every request.
INVALID_API_KEY_SCHEMA
TheAuthorization header was present but did not use the Bearer scheme.
Bearer (note the space).
Token YOUR_API_KEY, API_KEY, or the key value directly without a scheme.
API_KEY_MISSING
TheAuthorization: Bearer header was present but the key value after it was empty.
undefined at the time the request is made. Check environment variable loading if using .env files.
INVALID_API_KEY
The API key was provided but does not match any active key on record — either it was never valid, has been deleted, or has been deactivated.- Log in to the Trackpilots dashboard and go to Settings → Developer Tools → API Keys.
- Confirm the key you are using is listed and shows an Active status.
- If the key has been deleted or deactivated, generate a new one and update your integration.
PLAN_EXPIRED
- The organisation’s paid subscription has expired and has not been renewed.
- The organisation is on the Free (Basic) plan, which does not include API access.
- The subscription is in a payment failure or pending state.
- The API key belongs to an account whose plan has since been downgraded or cancelled.
- Visit trackpilots.com/pricing to compare plans.
- Click Upgrade Now inside the dashboard Billing page.
If your plan shows Active in the dashboard but you are still receiving
PLAN_EXPIRED, contact support — there may be a sync issue between the billing system and the API gateway.Handling errors in code
Check theerror.code field to handle specific errors programmatically without relying on HTTP status codes alone.
Error Code Reference
Support
For persistent errors after following the steps above:- Email: team@trackpilots.com
- In-app chat: Available from the bottom-right corner of the dashboard
