Skip to main content
POST
/
webhooks
/
campaign-call-outcome
Call outcome webhook
curl --request POST \
  --url https://app2.freyavoice.ai/api/v2/webhooks/campaign-call-outcome \
  --header 'Content-Type: application/json' \
  --data '
{
  "campaignId": "<string>",
  "phoneNumber": "<string>",
  "outcome": "success",
  "callId": "<string>",
  "failureCategory": "<string>",
  "message": "<string>",
  "willRetry": true,
  "retryScheduledAt": "2023-11-07T05:31:56Z",
  "retriesRemaining": 123,
  "attemptNumber": 123
}
'

Body

application/json
campaignId
string
required
phoneNumber
string
required
outcome
enum<string>
required
Available options:
success,
failed
callId
string
failureCategory
string

SipCodeCategory value or 'api_error' if outcome is 'failed'

message
string

Contextual message: ended_reason, timeout message, or LLM evaluation reason

willRetry
boolean

Whether the call will be retried

retryScheduledAt
string<date-time>

ISO8601 timestamp when retry is scheduled

retriesRemaining
number

Number of retries remaining

attemptNumber
number

Which attempt this outcome is for (1-indexed)

Response

200

Webhook received successfully