EMILIANOM
09/27/2025, 8:27 PMChiranjeet Mishra
09/27/2025, 8:27 PMVapi Support Bot
09/27/2025, 8:28 PMallowTransientAssistant: true restriction. Here’s an example payload for generating a public JWT token that allows transient assistants:
js
const payload = {
orgId: process.env.ORG_ID,
token: {
tag: "public",
restrictions: {
enabled: true,
allowedOrigins: ["https://your-app.com"],
allowedAssistantIds: [],
allowTransientAssistant: true, // <-- must be true
},
},
};
Regenerate your token with this payload and use it for your web calls. This should resolve the permission issue for transient assistants on /call/web ([documentation](https://docs.vapi.ai/customization/jwt-authentication)).
Source:
- [JWT Authentication](https://docs.vapi.ai/customization/jwt-authentication)EMILIANOM
09/27/2025, 8:47 PMEMILIANOM
09/27/2025, 8:47 PMChiranjeet Mishra
10/01/2025, 6:28 PMallowTransientAssistant to true in the restrictions.
Here's how to fix it:
If using JWT, configure your token like this:
{
"orgId": "your-org-id",
"token": {
"tag": "public",
"restrictions": {
"enabled": true,
"allowTransientAssistant": true,
"allowedOrigins": [
"https://example.vapi.ai"
]
}
}
}
If using a public API key from the dashboard:
1. Go to your Vapi Dashboard
2. Navigate to API Keys section
3. Create a new public key or edit existing one
4. Make sure to enable the "Allow Transient Assistant" permission
Alternatively, instead of using a transient assistant configuration, you could:
1. Create a permanent assistant in your dashboard
2. Use the assistant ID in your requests instead of inline configuration
3. Use assistantOverrides to modify any dynamic valuesEMILIANOM
10/04/2025, 6:30 AMChiranjeet Mishra
10/08/2025, 2:23 AM