https://retellai.com/?utm_source=discord&utm_medium=seo logo
Does Retell use a Bearer authorization token
# ❓・ai-evy-support
h
@AI Evy Does Retell use a Bearer authorization token?
a
Thanks for tagging me @hasbi44. I'll look through relevant sources and get back to you shortly.
​ To learn more, see the sources I considered: [[1] Get Chat](https://docs.retellai.com/api-references/get-chat) ​
### Answer Yes, Retell AI API endpoints require an Authorization header containing your API key in the format Bearer YOUR_API_KEY [(1) ]() .
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
h
@AI Evy Dynamic variables not working
a
Thanks for the follow-up, @hasbi44. I'll get back to you soon.
### Answer If dynamic variables are not working in your Retell AI agent, here are key points to check: 1. Use the correct syntax: dynamic variables must be wrapped in double curly braces, e.g., {{variable_name}} [(1) ]() . 2. When sending dynamic variables via API, ensure you pass them as strings in the retell_llm_dynamic_variables field. Example for an outbound SMS:
Copy code
json
"retell_llm_dynamic_variables": {
  "customer_name": "John Doe"
}
, [(2) ]() 3. Do not include spaces in the variable names within the curly braces (e.g., use {{provider_info}}, not {{ provider_info }}) , as spaces can cause issues [(3) ]() . 4. If you experience inconsistent behavior, make sure the variables are being set and not empty in your API request [(4) ]() , [(3) ]() . 5. Test with a simple agent and prompt—sometimes agents with complex logic or missing variables may not resolve as expected [(4) ]() . 6. For prompts and conversation flows, always check that dynamic variables are available at the right step and are spelled exactly as defined [(1) ]() . If you need more targeted troubleshooting, please share a sample of your API call payload and the agent prompt where you use the dynamic variable.
​ To learn more, see the sources I considered: [[1] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) [[2] Create Outbound SMS](https://docs.retellai.com/api-references/create-sms-chat) [[3] Issue with Dynamic Variables.](https://discord.com/channels/1186424376300679209/1336469878068219904) [[4] Dynamic Variables](https://discord.com/channels/1186424376300679209/1356680357084135558) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
h
"retell_llm_dynamic_variables": { "name": "{{ $json.firstName }}", "description": "{{ $json.description }}" } @AI Evy This is how it looks like right now, is it correct
a
Thanks for the follow-up, @hasbi44. I'll get back to you soon.
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
​ To learn more, see the sources I considered: [[1] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) [[2] Create Outbound SMS](https://docs.retellai.com/api-references/create-sms-chat) [[3] dynamic variables are not being used even though in data tab it was captured](https://discord.com/channels/1186424376300679209/1380529470468919320) ​
### Answer The values in the retell_llm_dynamic_variables field should be plain strings, not templated placeholders like {{ $json.firstName }} or {{ $json.description }}. You should send the actual string values for each variable. For example:
Copy code
json
"retell_llm_dynamic_variables": {
  "name": "John",
  "description": "Sample description"
}
All values must be strings, and the variable names must match exactly as referenced in your agent's prompt (case-sensitive) [(1) ]() , [(2) ]() , [(3) ]() .
h
@AI Evy This is an inbound agent, it's not fetching the dynamic variables for some reason though it should be receiving it. Where does the URL of the webhook go into the agent so it receives the dynamic variables?
a
Thanks for the follow-up, @hasbi44. I'll get back to you soon.
### Answer To use dynamic variables with an inbound agent, you need to configure the "Inbound Call Webhook" in your phone number settings. The webhook URL should be set at the phone number level—not directly in the agent. When an inbound call comes in, Retell will POST to your webhook, and you can return call-specific dynamic variables in your response. This allows the agent to receive and use the dynamic variables for that call [(1) ]() .
​ To learn more, see the sources I considered: [[1] Inbound call webhook](https://docs.retellai.com/features/inbound-call-webhook) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.