Smooch认证异常:JWT正常但key_id/secret认证失败,求兼容或回退方案
Hey there, let's tackle your Smooch API authentication questions head on:
Can I enable both JWT and Key ID/Secret authentication at the same time?
Short answer: No. Smooch's API doesn't support running both authentication methods simultaneously for a single app. Once you switch to JWT authentication, the system automatically disables the Key ID/Secret authentication flow — that's exactly why your current Key/Secret requests are failing.
How do I revert back to using Key ID/Secret authentication?
If you need to switch back to the traditional Key ID/Secret setup, follow these straightforward steps:
- Log into your Smooch admin dashboard and navigate to your app's settings page
- Locate the Authentication configuration section
- Disable the JWT authentication mode and toggle back to the Key ID/Secret option
- Save your changes, wait a few minutes for the settings to propagate, and then you should be able to use your Key ID and Secret for API requests again
Why is my Key ID/Secret authentication failing right now?
The primary reason is that JWT authentication is still active for your app — Smooch locks out the Key/Secret method once JWT is enabled. That said, it's worth doing a quick double-check:
- Ensure your Key ID and Secret are copied correctly (no extra spaces, typos, or formatting errors)
- Verify that the credentials haven't been revoked or expired in your Smooch dashboard
内容的提问来源于stack exchange,提问作者rakeshpatra

