{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Client Credentials — Troubleshooting","description":"The best API documentation generator ever.","siteUrl":"https://developer.lytx.com","keywords":"redocly developer portal, api portal starter, api reference docs","lang":"en-US"},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"client-credentials--troubleshooting","__idx":0},"children":["Client Credentials — Troubleshooting"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"You see"},"children":["You see"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Cause"},"children":["Cause"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Fix"},"children":["Fix"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["400 Bad Request"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Request body is missing a field, or using the wrong field names, ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["client_id"]}," instead of ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["clientId"]},", for example"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Check your JSON body uses exactly ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["clientId"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["clientSecret"]},", both camelCase"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["401 Unauthorized"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Token expired or malformed"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Request a new token, don't reuse an expired one"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["403 Insufficient scope"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["This credential doesn't have the scope the endpoint requires"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Add the missing scope to this service account, don't create a new one with broader access"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["404 Not Found"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The token endpoint URL is wrong, often from an old or cached example"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Confirm you're calling ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://api.lytx.com/api/serviceaccount/token"]}," exactly"]}]}]}]}]}]},"headings":[{"value":"Client Credentials — Troubleshooting","id":"client-credentials--troubleshooting","depth":1}],"frontmatter":{"seo":{"title":"Client Credentials — Troubleshooting"}},"lastModified":"2026-11-09T09:43:00.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/docs/authentication_client_credentials_troubleshooting","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}