Amir UIDB
11/24/2025, 12:20 PMVapi Support Bot
11/24/2025, 12:21 PMassistantId. When making a squad web call, explicitly include the assistantId parameter in your API request, even if using a squad. For example:
javascript
const response = await vapi.calls.create({
workflow: { id: "your-workflow-id" },
assistantId: "your-assistant-id", // Ensure this is set
to: "+1234567890"
});
Check that the assistant is correctly assigned in your Vapi Dashboard and that your API key has permission to use this assistant.
For more details, see the [Discord discussion about Assistant not valid error](https://discord.com/channels/1211482211119796234/1367883431266095104).
Source:
- [Discord discussion about Assistant not valid error](https://discord.com/channels/1211482211119796234/1367883431266095104)Amir UIDB
11/24/2025, 12:25 PM