Workaround: Instead of using a dynamic variable in the header, create a custom credential in the Vapi dashboard and select it in your API Request Tool configuration. This ensures the Authorization header is set correctly, even in the test runner.
Example:
1. Go to
Dashboard → Custom Credentials → Add Credential.
2. Choose
Bearer Token, enter your token, and save.
3. In your tool config, select this credential under "Authentication".
This approach avoids issues with variable substitution in headers during testing and is the recommended method for authentication ([see documentation](
https://docs.vapi.ai/server-url/server-authentication)).
Sources:
- [Default Tools](
https://docs.vapi.ai/tools/default-tools)
- [Server authentication](
https://docs.vapi.ai/server-url/server-authentication)