{
"event": "pre_call",
"agentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"fromNumber": "+11234567890",
"toNumber": "+19876543210",
"dialedAgentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"variables": {}
}Webhooks
Pre-Call Webhook
Called before an inbound call is answered. Return variables to be merged with the agent’s default variables for this call.
WEBHOOK
pre-call
{
"event": "pre_call",
"agentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"fromNumber": "+11234567890",
"toNumber": "+19876543210",
"dialedAgentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"variables": {}
}Authorizations
API key for authentication. Generate API keys from the RevRing dashboard.
Body
application/json
Example:
"pre_call"
The agent ID
Caller's phone number (E.164)
Example:
"+11234567890"
Dialed phone number (E.164)
Example:
"+19876543210"
Agent ID when the call was routed directly to an agent (null if routed via phone number)
Response
200 - application/json
Webhook response with optional variables
Additional variables to merge with agent defaults