← Home Push — Call Lead

Call Lead

Overview:This document contains details of the call lead payload to be sent through to your Push API endpoint and other details that may be needed.

API Payload Details:

{
   "id":"1291df0-afca-453e-a9b7-20cdfbb9f074",
   "agent":{
      "name":"John Doe",
      "phone":"971551234567",
      "email":"john@example.com"
   },
   "call_details":{
      "pickup_timestamp":1731320903,
      "call_status":"connected",
      "proxy_number":"9712233445",
      "receiver_number":[
         "971551234567"
      ],
      "call_duration":18.0,
      "call_total_duration":22.0
   },
   "enquirer":{
      "phone_number":"971557654321"
   }
}

Header Details:

The header “X-Bayut-Signature” Is created with the below formula, through a PHP framework to help validate the authenticity of the payload -md5($secret_key . $body, false) Where, $secret_key will be provided by us once we register your API endpoint in our system and $body is the whole payload.

Needed Detail:To complete the API integration provide the specific API Endpoint URL where you wish to receive the data to support@bayut.com.

Code Examples
{
   "id":"1291df0-afca-453e-a9b7-20cdfbb9f074",
   "agent":{
      "name":"John Doe",
      "phone":"971551234567",
      "email":"john@example.com"
   },
   "call_details":{
      "pickup_timestamp":1731320903,
      "call_status":"connected",
      "proxy_number":"9712233445",
      "receiver_number":[
         "971551234567"
      ],
      "call_duration":18.0,
      "call_total_duration":22.0
   },
   "enquirer":{
      "phone_number":"971557654321"
   }
}