| You see | Cause | Fix |
|---|---|---|
400 Bad Request | Request body is missing a field, or using the wrong field names, client_id instead of clientId, for example | Check your JSON body uses exactly clientId and clientSecret, both camelCase |
401 Unauthorized | Token expired or malformed | Request a new token, don't reuse an expired one |
403 Insufficient scope | This credential doesn't have the scope the endpoint requires | Add the missing scope to this service account, don't create a new one with broader access |
404 Not Found | The token endpoint URL is wrong, often from an old or cached example | Confirm you're calling https://api.lytx.com/api/serviceaccount/token exactly |
- Client Credentials — Troubleshooting
Token Authentication
Advanced
Client ID & Secret
Client Credentials — Trou...
Last updated