Skip to main content
Use webhooks to receive real-time notifications in your system whenever a call is completed or a WhatsApp message event occurs from our platform.

Webhook Endpoint

You are required to provide us with a publicly accessible HTTPS endpoint (e.g., https://yourdomain.com/webhook). Our system will send a POST request to this endpoint with the event data.

Request Method

All webhook notifications will be sent using the HTTP POST method with a JSON payload.

Secret Token Authentication

To ensure that the webhook request is coming from an authorized source, a secret token will be included in the request headers. This helps verify that the payload originated from our system and not from a third-party source. The secret token will be shared with you securely during setup and must be validated on your server for every webhook request. Header Example:
{
  "Authorization": "Bearer YOUR_SECRET_TOKEN"
}
On your server, you should verify the token before processing the payload. If the token is invalid, respond with an HTTP 401 Unauthorized status.

Expected Response

Your endpoint should respond with an HTTP 200 status code upon successful receipt and processing of the data. If the response code is not 200, our system may retry the webhook delivery.

Sample Payloads

Call Webhook Payload

When a call is completed, the following payload will be sent to your webhook endpoint:
{
  "event_type": "call",
  "call_id": "aerfttYRDwcdtr",
  "agent_id": "aiyvytyTFrduav",
  "campaign_name": "Loan Recovery - Nov",
  "loan_id": "LN1029384",
  "name": "Rahul Sharma",
  "phone": "9999999999",
  "language": "hindi",
  "from_phone": "+918888888888",
  "status": "Contacted",
  "direction": "outbound",
  "duration": 45,
  "disposition": "Hangup",
  "summary": "The user cut the call mid conversation",
  "start_time": "2025-11-01T13:26:27",
  "end_time": "2025-11-01T13:27:12",
  "recording_id": "63c30c3d-ce24-4c33-a64a-c2f81ca48d0b",
  "extracted_data": {
    "ptp_date": "2025-11-03"
  },
  "additional_data": {
    "custom_key": "value"
  }
}

Field Descriptions

FieldTypeDescription
event_typestringType of event (call.completed)
call_idstringUnique ID representing a call
agent_idstringUnique ID representing the agent
campaign_namestringName of the campaign
loan_idstringUnique loan ID for the customer
namestringCustomer’s full name
phonestringCustomer’s phone number
languagestringLanguage used for conversation
from_phonestringNumber used for dialing
statusstringFinal call status
directionstringIndicates call direction (inbound / outbound)
durationintegerDuration of call in seconds
dispositionstringCall outcome
summarystringShort summary of the call
start_timestringCall start timestamp (ISO 8601 format)
end_timestringCall end timestamp (ISO 8601 format)
recording_idstringUnique ID representing the call recording
extracted_dataobjectAdditional data extracted from the call
additional_dataobjectCustom fields specific to your business

Retry Policy

If the webhook fails (non-200 response or timeout), we will retry up to 2 times with exponential backoff.

Security

It is strongly recommended to verify the webhook source using the provided secret token. All webhook requests will be sent over HTTPS only.
For any questions or configuration changes, please contact our technical team.