Hans
06/04/2025, 12:45 PMVapi Support Bot
06/04/2025, 12:49 PMAuthorization: OAuth oauth_token={{apiToken}}
At runtime, provide the correct apiToken value for each assistant via dynamic variables in your server response or configuration. This allows each hotel assistant to use its own API key automatically.
Reference: [Vapi Personalization Docs](https://docs.vapi.ai/assistants/personalization)
Source:
- [Vapi Personalization Docs](https://docs.vapi.ai/assistants/personalization)Vapi
06/04/2025, 12:49 PM{{variableName}} in your header configuration. For example, set the Authorization header like this: "Authorization": "Bearer {{hotelApiKey}}".
2. **Pass Variable Values**: When making the call, ensure you're passing the hotelApiKey value through assistantOverrides.variableValues in your JSON payload.
json
{
"assistantOverrides": {
"variableValues": {
"hotelApiKey": "your-specific-hotel-api-token"
}
}
}
This setup will dynamically replace {{hotelApiKey}} with the corresponding API token for each assistant during the request. More on dynamic variables can be found [here](https://docs.vapi.ai/assistants/dynamic-variables).Hans
06/04/2025, 1:05 PMHans
06/04/2025, 1:05 PMVapi Support Bot
06/04/2025, 3:48 PMHans
06/04/2025, 3:49 PMAibaze Foundations
06/04/2025, 7:00 PM