Inbound call webhooks
Use an inbound call webhook to look up caller context before a voice conversation begins. Examples include a customer's preferred language, an appointment reference, or information your agent should use in its greeting.
Configure this on the phone number. It is separate from the agent's event webhook, which reports conversation activity.

Illustrative dashboard screenshot in dark mode, using sample data.
Configure and test the number
- Open Phone Numbers and choose the number.
- Open Manage Inbound Webhook.
- Enter the Inbound Dynamic Variables Webhook URL and save.
- Use Send Test Request to inspect the sample request and test your receiver.
- Verify with a controlled inbound test on that number's actual connection path.
The response builder provides controls for dynamic variables, metadata, and supported agent overrides. A sample test establishes receiver connectivity; it does not prove every routing or connection path uses the same payload shape.
Match the request format for your number
UponAI supports more than one inbound connection path. Build against the request and response format used by the number you are configuring.
Event-envelope path
This path sends a call_inbound event with caller and destination details:
{
"event": "call_inbound",
"call_inbound": {
"call_id": "call_example",
"agent_id": "agent_example",
"from_number": "+12025550123",
"to_number": "+12025550124"
}
}
Additional identifiers or context can be present. Return a successful JSON
response with a call_inbound object:
{
"call_inbound": {
"dynamic_variables": {
"customer_name": "Demo Customer",
"preferred_language": "English"
},
"metadata": { "case_reference": "case_demo" }
}
}
Supported routing configurations can use override_agent_id and
override_agent_version to select an agent for this call. Existing caller-routing
or time-routing decisions take precedence over conflicting values from the
customer webhook. Test the result with the number's actual routing rules enabled.
Flat dynamic-variable path
Other voice connection paths send a flat lookup request:
{
"llm_id": "llm_example",
"from_number": "+12025550123",
"to_number": "+12025550124"
}
On this path, return the variable map directly:
{
"customer_name": "Demo Customer",
"preferred_language": "English"
}
Do not return an event envelope to a receiver integration expecting a flat variable map. Agent override and rejection semantics should not be assumed on a path that only consumes dynamic variables.
Use the context in the conversation
Reference a returned variable in the relevant agent prompt, such as
Hello {{customer_name}}. Define a suitable fallback when the value is absent.
Test returning, new, and unrecognized callers so a failed lookup does not make the
conversation depend on invented customer information.
Failure handling and security
Keep lookup work fast and return valid JSON. Customer webhook failures can leave the call using its configured routing/default context; do not use a failed lookup as a reliable way to reject an inbound call. Verify fallback behavior for your number rather than relying on a universal retry or timeout guarantee.
Use HTTPS and treat caller details as sensitive. Agent event-webhook authentication settings do not automatically authenticate this number-level callback. Confirm the security supported by your connection path before relying on an authentication header.
This guide covers inbound voice context. It does not establish the same callback contract for inbound SMS or a universal call-rejection API.