OAuth Error Codes
When an error occurs during the OAuth flow, the API returns a JSON response with a status of "error" and a descriptive message.
Authorization Errors
| Error | Cause | Fix |
invalid_client | Client ID not found | Verify your client_id |
invalid_redirect_uri | Redirect URI not registered | Add it in Developer Console |
access_denied | User declined authorization | Handle gracefully in your app |
Token Errors
| Error | Cause | Fix |
invalid_grant | Code expired or already used | Request a new authorization code |
invalid_client | Wrong client_secret | Check your client secret |
missing_parameters | Required fields missing | Include all required POST params |
User Info Errors
| Error | Cause | Fix |
invalid_token | Token expired or invalid | Request a fresh access token |
missing_authorization | No Bearer token sent | Add Authorization header |
Error Response Format
{
"status": "error",
"error": "invalid_client",
"message": "Client ID not found"
}