Suggestion:
The error means your API key does not have permission to access the assistant. To fix this, try generating a new public API key in your Vapi dashboard and ensure it is linked to the correct assistant:
1. Go to
Vapi Dashboard → API Keys.
2. Create a new public key and use it in your integration.
3. Make sure the assistantId matches the one authorized for your key.
If the issue persists, double-check that your assistant and key are in the same organization and environment.
Source:
- [Vapi API Key Permissions](
https://docs.vapi.ai/chat/web-widget#copy-your-public-api-key)