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
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