Click to call

Getting Started:


Contact us at development@calldrip.com to receive your Developer API Credentials for testing.

  1. Send test leads to our development servers.
  2. Contact us when you receive a success message to verify the lead’s success
  3. Receive your Production API credentials.
  4. Send test leads to our production servers.

End Points


Integration Testing: https://devapi.calldrip.com/api/clicktocallv2
Production: https://app.calldrip.com/api/clicktocallv2

Parameters


Parameter Description
api_key Calldrip's Api Key (ExampleAPIKey2456Ax23)
account_id Calldrip's Account Id (123456)
user_id Agent's ID in either Calldrip or Vendor’s system (65432)
user_phone_number Phone number of the agent
customer_phone_number Phone number of the lead
customer_first_name Lead's First Name
customer_last_name Lead's Last Name

Examples


Agent Presses 1 - JSON Example

/**send body in JSON and apikey in header*/
$apikey = ExampleAPIKey2456Ax23;
$json = {
  "account_id": "123456",
  "user_id": "65432",
  "user_phone_number": "555555555",
  "customer_phone_number": "8888888888",
  "customer_first_name": "James",
  "customer_last_name": "Doe"
};

$apiUrl = 'https://devapi.calldrip.com/api/clicktocallv2';

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $apiUrl);
curl_setopt($ch, CURLOPT_HTTPHEADER, array('api_key: '.$apikey));
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_POSTFIELDS, $json);

$result = curl_exec($ch);
curl_close($ch);