https://retellai.com/?utm_source=discord&utm_medium=seo logo
how can I pull the inbound call ID as soon as some...
# ❓・ai-evy-support
a
@AI Evy how can I pull the inbound call ID as soon as someone calls
a
Thanks for tagging me @alarsen2k45.. I'll look through relevant sources and get back to you shortly.
### Answer To pull the inbound caller ID as soon as someone calls, you have two main options with Retell AI: ## Option 1: Inbound Call Webhook Set up an inbound call webhook that triggers immediately when someone calls [(1) ]() . The webhook payload includes the
from_number
field which contains the caller ID :
Copy code
json
{
  "event": "call_inbound",
  "call_inbound": {
    "agent_id": "agent_12345",
    "from_number": "+12137771234",
    "to_number": "+12137771235"
  }
}
The
from_number
field will always show up in the payload and helps you identify the caller . This webhook fires before the call is connected, so you get the caller ID immediately . ## Option 2: Call Event Webhooks Use the general call event webhooks which include the caller information [(2) ]() . The
call_started
webhook is triggered when a new call begins and includes basic call information . You can also use the
call_ended
webhook which contains all fields from the call object . The inbound call webhook is specifically designed for this use case and fires earliest in the call flow, making it the best option for immediately capturing the inbound caller ID [(1) ]() .
​ To learn more, see the sources I considered: [[1] Inbound call webhook](https://docs.retellai.com/features/inbound-call-webhook) [[2] Webhook Overview](https://docs.retellai.com/features/webhook-overview) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
I am using make.com. I have the make.com webhook url in the inbound option on retell. How do I see the call id on make.com during an inbound call. it only shows me the agent ID and the number
@AI Evy I am using make.com. I have the make.com webhook url in the inbound option on retell. How do I see the call id on make.com during an inbound call. it only shows me the agent ID and the number
a
Thanks for the follow-up, @alarsen2k45.. I'll get back to you soon.
### Answer The inbound call webhook does not include the call ID in its payload [(1) ]() . The webhook is triggered before the call is connected, so a call object hasn't been created yet . The inbound webhook payload only contains : - `agent_id`: if the number has inbound agent id set - `from_number`: caller's number (always present) - `to_number`: receiver's number (always present)
Copy code
json
{
 "event": "call_inbound",
 "call_inbound": {
 "agent_id": "agent_12345",
 "from_number": "+12137771234",
 "to_number": "+12137771235"
 }
}
To get the call ID, you'll need to use a different webhook that triggers after the call is established. Based on the Discord discussion, the
call_analyzed
webhook contains full call data including the call_id [(2) ]() . However, this webhook only fires after the call completes successfully . For real-time call ID access during an active call, you would need to use other webhook events that trigger after the call object is created, but the inbound call webhook specifically does not provide the call ID since it fires before call creation [(1) ]() .
​ To learn more, see the sources I considered: [[1] Inbound call webhook](https://docs.retellai.com/features/inbound-call-webhook) [[2] Inbound Call issues](https://discord.com/channels/1186424376300679209/1400852237428723763) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.