API Auth Troubleshooting
invalid_client error when generating a token
If your Client ID and Secret are correct but you’re getting invalid_client or invalid_grant, check for character confusion when copying credentials from email. Common mix-ups:
- Uppercase
I(eye) vs lowercasel(ell) - Uppercase
Ovs digit0(zero) - Digit
1vs lowercasel(ell)
Copy credentials from the source system directly (ScopeStack or your identity provider) rather than from an email, where proportional fonts make these characters indistinguishable. If in doubt, paste the value into a monospace text editor to verify each character.
invalid_grant — Most Common Cause
If you’re using Postman and selected “Password Credentials” in the OAuth 2.0 helper (Authorization tab > OAuth 2.0 > Grant Type dropdown), that is likely the cause.
Postman’s OAuth helper sends a redirect_uri parameter even for password grants. ScopeStack’s OAuth server rejects the request because password grants should not include redirects.
Option 1: Switch to Authorization Code in the Grant Type dropdown. This uses browser-based login and works with Postman’s OAuth helper.
Option 2: Bypass the OAuth helper entirely. Make a direct POST request:
- Create a POST request to
https://app.scopestack.io/oauth/token - Set Authorization tab to No Auth
- In Body tab, select x-www-form-urlencoded
- Add:
grant_type=password,client_id,client_secret,username,password - Click Send
For other invalid_grant causes (expired authorization codes, callback URL mismatches, wrong credentials), see the OAuth Token Errors table in the API Error Codes reference.
Missing Accept header
ScopeStack requires the Accept header on all API calls:
Accept: application/vnd.api+jsonOmitting this header may produce unexpected response formats or errors.
”Resource not found” when it exists
Check your URL format. Most endpoints require the account slug:
https://api.scopestack.io/{account-slug}/v1/clientsGet your account slug by calling GET /v1/me after authenticating.
Authentication Endpoints
| Purpose | Endpoint |
|---|---|
| Authorization (browser login) | https://app.scopestack.io/oauth/authorize |
| Get/refresh token | https://app.scopestack.io/oauth/token |
| Verify token / get account info | https://api.scopestack.io/v1/me |
| API documentation | https://api.scopestack.io |
HTTP Error Codes (401, 403, 422, etc.)
For a complete reference of all API error codes, causes, and solutions, see API Error Codes.
Still stuck? Contact ScopeStack support via chat or email. Include the exact error message, what you were trying to do, and whether you are using Postman, Workato, or custom code.