Hello, if anyone could help me with this VAPI 'Key doesn't allow assistantId' issue, I would appreciate it.
In short, in the VAPI web interface, when I click the 'Talk to Assistant' button, I get this error:
'Key doesn't allow assistantId "xxx"'.
I can:
- Chat to the Assistants.
- Call the Assistants on their associated phone number.
There are:
- A number of Private and Public API keys in the account.
I have:
Created a new Private API key and associated it with all Assistants.
Checked that the Assistants can be retrieved from the API (Postman) using the Private Keys.
Checked that the Assistants can be called from a web page using the Public Keys.
Any advice on how to fix this and why it occurs would be greatly appreciated.
https://cdn.discordapp.com/attachments/1414603454839656538/1414603455120801905/assistant_id_error.png?ex=68c02ba1&is=68beda21&hm=d6e12b61cd676a97cc048f247c4ca34e72522b4fb9eccc8642f6ba360bbda4ad&
PatrickMichael
09/09/2025, 5:27 AM
I joined a VAPI stage and learnt the following:
- VAPI recently changed the way Public Keys work - tightening up the the relationship between the key and the assistant.
- The 'Talk to Assistant' button in the VAPI web interface is a POST request with Public Key and Assistant ID.
- If you have more than one Public Key, VAPI selects the last key created (I assume), and uses that. This key may not be associated with the Assistant you are trying to talk to.
- So creating a new Public Key (last key created) and associating it with all Assistants, may be a solution.
- Or, manipulate the 'Copy Assistant Demo Link' in a new browser tab with the correct Public Key and Assistant ID relationship.
https://cdn.discordapp.com/attachments/1414603454839656538/1414844581618647050/demo-link.png?ex=68c10c32&is=68bfbab2&hm=0a44339a7cb42541281d35f7123efe47ed4211c1b35c9fb41e95eeb41a90a444&
c
Chiranjeet Mishra
09/10/2025, 11:45 AM
Are you still experiencing the issue after creating your new public key?
p
PatrickMichael
09/10/2025, 1:00 PM
I have opted for manipulating the Assistant Demo link in a new browser tab. Now that I understand the issue, I am comfortable to proceed in this manner. Thank you.
c
Chiranjeet Mishra
09/12/2025, 8:46 AM
Glad you were able to get this resolved. If anything else comes up or you need further assistance, we’re here to help.