Authenticating API requests
Every request to /api/external/v1 needs your API key in the Authorization header:
Authorization: Bearer YOUR_API_KEYRules:
- The header must be exactly
Bearer, a space, then the key. - Production keys start with
dei_live_. - Call the API from your server, never from a browser or mobile app, so the key isn't exposed.
If authentication fails you get a 401 with an error code such as UNAUTHORIZED, INVALID_API_KEY or API_KEY_EXPIRED. See "Fixing 401 errors and invalid API keys".