Cannot Verify JWT
# support
v
The "Cannot Verify JWT" error typically occurs when your API key isn't properly configured. Check your VAPI Dashboard under the Provider Keys tab to ensure your API key is correctly added:
Copy code
javascript
// Example of correct JWT implementation
const token = jwt.sign(
  { orgId: 'YOUR_ORG_ID' },  // payload
  process.env.PRIVATE_KEY,   // private key
  { expiresIn: '1h' }        // options
);
Make sure you're using the private key (not public key) and that it's in PEM format. Sources: - [Troubleshooting JWT verification errors in Vapi](https://discord.com/channels/1211482211119796234/1336414771309838448) - [Common causes of JWT verification failures in Vapi](https://discord.com/channels/1211482211119796234/1336360744916226168) - [JWT Authentication](https://docs.vapi.ai/customization/jwt-authentication)
m
@Vapi Support Bot I am not using this token model in my flows.
v
Even if you're not explicitly using a token model, Vapi still requires proper API key configuration for authentication. Check your VAPI Dashboard under the Provider Keys tab to ensure your API key is correctly added.
Copy code
javascript
// Verify your API key is correctly configured in the dashboard
// No need for manual JWT implementation if using the Start Call button
This is likely causing the JWT verification error despite not using the token model directly. Sources: - [Troubleshooting JWT verification errors in Vapi](https://discord.com/channels/1211482211119796234/1336414771309838448) - [API Key Configuration Issues](https://discord.com/channels/1211482211119796234/1336414771309838448)
c
Hey, really sorry for your experience and for your customers' bad experience as well. If possible, could you record a loom video describing this error/behavior or inconsistency in the dashboard with the steps to reproduce it? That way, I can share this with my team, and we'll take a look. We'll even try to reproduce the same so we can fix it for you. Also, I'll request you to share your assistant ID.