ERROR "Key doesnt allow assistantID"
# support
d
I was logging in to one of my vapi agents and then when I try testing the agent from the back end all of the sudden I get an error "Key doesnt allow assistantID (and it shows the assistant ID number )" its a red error on the bottom right of my screen that appears when I try to talk to my agent. what can that be? The funny thing is when I call the agent from the website widget its working fine. When I try calling the agent directly from the backend I get the error
c
Hi there, Thank you for your message. Our team is currently out of the office. We operate Monday through Friday, from 9:00 AM to 8:00 PM Pacific Standard Time (PST). We’ll get back to you as soon as possible during our normal business hours. If your message is urgent, please mark it accordingly or include “URGENT” in the subject line, and we’ll do our best to respond promptly. Warm regards, Vapi Customer Support Team
v
Thanks for sharing the details! Since the widget works but the backend gives a "Key doesnt allow assistantID" error, it may be related to the type or scope of the API key or JWT token used in your backend. Could you confirm whether your backend is using a public or private API key/JWT token, and if it is configured to allow access to the specific assistant ID you are testing? This will help determine if the issue is due to key restrictions or configuration. If you’re unsure where to check, let me know what language or framework you’re using and I can guide you to the right place in your code or dashboard. Sources: - [JWT Authentication](https://docs.vapi.ai/customization/jwt-authentication) - [Web widget](https://docs.vapi.ai/chat/web-widget)
d
I made a new public key for that assistant. Could that be the problem?
c
If you create a new VAPI API key, this will resolve that issue
3 Views