Error “Key doesn’t allow assistantId” when trying ...
# support
c
Hi Vapi team, I’m experiencing an issue when trying to use one of my assistants from the dashboard and via my private API key. The error I get is: Key doesn’t allow assistantId '76401f2c-da97-4bca-9ef1-beecc6dcd803' The assistant is called “Agendar_citas_automaticamente” and belongs to the project BluDFOpticosDonBenito. I’m using my private API key from this same workspace, but for some reason, the key doesn’t seem to have permission to access the assistantId. The assistant uses model gpt-4.1-mini (provider: OpenAI), transcriber deepgram, and voice eleven_flash_v2_5. My suspicion is that the issue might come from a mismatch between the assistantId (UUID format, like OpenAI’s) and Vapi’s internal short ID (like 1eHr...). Could you please verify whether this assistant is correctly linked to my BluDFOpticosDonBenito workspace, and confirm which assistantId I should be using with my private key? Thank you very much 🙏
v
To resolve the "Key doesn't allow assistantId" error, please verify that your assistant ID is correctly set and accessible in your workspace. In your API call, ensure you are using the correct assistant UUID and that your private API key has permission for that assistant. Here’s a quick check you can do:
Copy code
bash
curl -X GET https://api.vapi.ai/assistant/76401f2c-da97-4bca-9ef1-beecc6dcd803 \
  -H "Authorization: Bearer YOUR_PRIVATE_API_KEY"
If you receive a permission error, double-check the assistant's workspace and your API key permissions in the Vapi dashboard. Source: Discord troubleshooting discussion about assistant ID errors
4 Views