Skip to main content
POST
pre-call
{
  "variables": {}
}

Authorizations

x-api-key
string
header
required

API key for authentication. Generate API keys from the RevRing dashboard.

Body

application/json
event
string
required
Example:

"pre_call"

agentId
string<uuid>
required

The agent ID

fromNumber
string
required

Caller's phone number (E.164)

Example:

"+11234567890"

toNumber
string
required

Dialed phone number (E.164)

Example:

"+19876543210"

Response

200 - application/json

Webhook response with optional variables

variables
object

Additional variables to merge with agent defaults