https://retellai.com/?utm_source=discord&utm_medium=seo logo
Is it possible to see what a webhook returns
# ❓・ai-evy-support
b
@AI Evy Is it possible to see what a webhook returns? My automation receives the webhook call and says it provided the meta-data correctly for dynamic variables but my retellai agent says it didn't get any variables.
a
Thanks for tagging me @backwoods5482. I'll look through relevant sources and get back to you shortly.
### Answer Yes, you can check what your webhook returns by examining the call logs and data tab in your call history [(1) ]() . When debugging webhook issues, you should: 1. Check the call logs - Look for webhook-related entries in the detailed logs section of your call history [(2) ]() . You'll see entries like "triggering inbound call webhook" and any error messages . 2. Review the Data tab - In your call history, check the Dynamic Variables section to see if the variables were received . For inbound call webhooks specifically, the correct response format should be [(3) ]() :
Copy code
json
{
  "call_inbound": {
    "dynamic_variables": {
      "customer_name": "John Doe"
    },
    "metadata": {
      "random_id": "12345"
    }
  }
}
Common issues causing variables not to be received include [(4) ]() : - Incorrect response format - Variables must be inside the
retell_llm_dynamic_variables
object for outbound calls, or inside
call_inbound.dynamic_variables
for inbound webhooks - Invalid JSON structure - Ensure your response is properly formatted JSON [(2) ]() - Response timeout - The webhook has a 10-second timeout [(3) ]() The webhook expects a successful status code (2xx) and will retry up to 3 times if it doesn't receive one . If you're seeing "Invalid webhook response format" errors in your logs, double-check that your response structure matches the expected format exactly [(2) ]() .
​ To learn more, see the sources I considered: [[1] Inbound dynamic variables not working](https://discord.com/channels/1186424376300679209/1383762143253499987) [[2] agent not receiving dynamic variables from inbound webhook response](https://discord.com/channels/1186424376300679209/1394015802402930778) [[3] Inbound call webhook](https://docs.retellai.com/features/inbound-call-webhook) [[4] Discord message from @fyodor2572 on 2025-01-13](https://discord.com/channels/1186424376300679209/1186462578310910112/1328501089112424508) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.