https://retellai.com/?utm_source=discord&utm_medium=seo logo
how can I block certain numbers from calling my in...
# ❓・ai-evy-support
a
@AI Evy how can I block certain numbers from calling my inbound agent?\
a
Thanks for tagging me @anthonylovatt_26757. I'll look through relevant sources and get back to you shortly.
### Answer You can block certain numbers from calling your inbound agent by using the Inbound Call Webhook feature. [(1) ]() [(2) ]() Here's how to set it up: [(1) ]() 1. Unset the
Inbound Call Agent
in the phone number setting 2. Enable the
Inbound Webhook
[(1) ]() [(2) ]() 3. Configure your webhook to listen to the
call_inbound.from_number
in the webhook request body [(1) ]() When your webhook receives an inbound call: - **To allow the call**: Respond with a 200 status code containing
"call_inbound.override_agent_id"
as a JSON object - **To block the call**: Respond with a 200 status code without the
"call_inbound.override_agent_id"
field This gives you programmatic control to selectively accept or reject calls based on the caller's number. You can set the
inbound_webhook_url
for your phone number using the Update Phone Number API endpoint. [(2) ]()
​ To learn more, see the sources I considered: [[1] Inbound call webhook](https://docs.retellai.com/features/inbound-call-webhook) [[2] Update Phone Number](https://docs.retellai.com/api-references/update-phone-number) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.