Error when using "Talk to Assistant"
# support
g
I'm trying to test my agent on the computer and I keep getting this error "Error Key doesn't allow assistantld 'a35610a7-2110-4de0-a2b9- aa8f4bd10c84'." What is going on? It use to work fine before. https://cdn.discordapp.com/attachments/1418054097248194630/1418054097550049411/image.png?ex=68ccb94b&is=68cb67cb&hm=051c8536aedbfe4a0033c770ddd6b62d41578f67e5e35bbef88ef819fbdbbbad&
v
The error "Key doesn't allow assistantId ..." means your API key does not have permission to access this assistant. To fix this, go to your Vapi dashboard, generate a new Public API Key for the correct organization/assistant, and update your integration to use this new key:
Copy code
plaintext
1. Dashboard > API Keys > Create new Public API Key
2. Replace the old key in your code or widget with the new one
This should restore access if the assistant and key are correctly matched. [See API key management docs for details.](https://docs.vapi.ai/chat/web-widget#copy-your-public-api-key) Source: - [Web widget documentation](https://docs.vapi.ai/chat/web-widget#copy-your-public-api-key)
c
Hi, follow the below steps: First Step: Go to the VAPI dashboard Second Step: Go to the API Keys page Third Step: Scroll down to the Public Keys section Fourth Step: Select the default public key Fifth Step: Remove allowed assistant IDs, origins,  allow transient assistants Sixth Step: Do a hard refresh Seventh Step: Try again making a call.
2 Views