Skip to content
Last updated

Client Credentials — Troubleshooting

You seeCauseFix
400 Bad RequestRequest body is missing a field, or using the wrong field names, client_id instead of clientId, for exampleCheck your JSON body uses exactly clientId and clientSecret, both camelCase
401 UnauthorizedToken expired or malformedRequest a new token, don't reuse an expired one
403 Insufficient scopeThis credential doesn't have the scope the endpoint requiresAdd the missing scope to this service account, don't create a new one with broader access
404 Not FoundThe token endpoint URL is wrong, often from an old or cached exampleConfirm you're calling https://api.lytx.com/api/serviceaccount/token exactly