https://retellai.com/?utm_source=discord&utm_medium=seo logo
I'm getting this error on my call_inbound webhook ...
# ❓・ai-evy-support
b
@AI Evy I'm getting this error on my call_inbound webhook response. The log clearly shows that my response does include a call_inbound field. What am I doing wrong:2025-08-13 20:44:29.860 call_da5d6d58bcb182797bf8fe37f31 info: triggering inbound call webhook 2025-08-13 20:44:30.812 call_da5d6d58bcb182797bf8fe37f31 info: inbound call webhook response: [ { call_inbound: { dynamic_variables: [Object] } } ] 2025-08-13 20:44:30.812 call_da5d6d58bcb182797bf8fe37f31 error: Error met in inbound call webhook: Error: No call_inbound field found, please check the expected format at https://docs.retellai.com/features/inbound-call-webhook#inbound-call-webhook at triggerIncomingCallWebhook (file:///usr/src/app/dist/api/call_api.js:484:19) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async file:///usr/src/app/dist/api/call_api.js:712:41 2025-08-13 20:44:31.024 call_da5d6d58bcb182797bf8fe37f31 info: Starting call: call_da5d6d58bcb182797bf8fe37f31
a
Thanks for tagging me @backwoods5482. I'll look through relevant sources and get back to you shortly.
### Answer The issue is that your webhook is returning an array instead of a JSON object [(1) ]() . Looking at your log, the response shows
[ { call_inbound: { dynamic_variables: [Object] } } ]
- notice the square brackets indicating an array . The inbound call webhook expects a JSON response with fields grouped under
call_inbound
, not wrapped in an array . Here's the correct format:
Copy code
json
{
 "call_inbound": {
 "override_agent_id": "agent_12345",
 "override_agent_version": 1,
 "dynamic_variables": {
 "customer_name": "John Doe"
 },
 "metadata": {
 "random_id": "12345"
 }
 }
}
Your response structure should be a direct JSON object, not an array containing the object . Remove the array wrapper and return just the JSON object with the
call_inbound
field .
​ 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.