Error - Couldn't verify JWT
# support
g
I am getting this error when trying to start a test call in my workflows. I have already logged out and logged back in from the account. I also tried with an incognito browser. But without success. https://cdn.discordapp.com/attachments/1367683746211303485/1367683746610020402/image.png?ex=68157a3f&is=681428bf&hm=e58bae6de7f71d8c62ca955e0b3340e00fbb3fab8e930c0441e23e6a2232daff&
v
The "Couldn't verify JWT" error typically occurs due to private key issues. Verify your JWT token is correctly formatted and signed with the proper private key using [jwt.io](https://jwt.io/).
Copy code
javascript
// Check your JWT generation code
const payload = { orgId: 'YOUR_ORG_ID' };
const privateKey = process.env.VAPI_PRIVATE_KEY; // Ensure this matches the key registered with Vapi
const token = jwt.sign(payload, privateKey, { expiresIn: '1h' });
Make sure you're using the private key (not public key) when making API calls. Sources: - [JWT Authentication Documentation](https://docs.vapi.ai/customization/jwt-authentication) - [Discord conversation about JWT errors](https://discord.com/channels/1211482211119796234/1336414771309838448) - [Discord conversation about private key issues](https://discord.com/channels/1211482211119796234/1336360744916226168)
g
I am not using this token model in my flows.
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 email address either here or in DM.
4 Views