Steps to Integrate
Steps to integrate
with Leadsquared
Step 1
Access your Leadsquared accountÂ
- Login to your Leadsquared account.Â
- Verify that it contains Universal Telephony Connector.Â
- Configure the settings by clicking the config icon.

Step 2
Update Agent Information Â
- Enable the agent popup API.
- Click on the Save button.
- Fill in the ‘Click2Call’ details with this
C2C code
C2C code
- URL:https://api.acefone.co.uk/v1/click_to_call
- HTTP Method: POST
- Response Keyword: OK, Success
- Request Type: JSON
- Data Template: {"destination_number":"@PhoneNumberWithCountryCode","agent_number":"@{User:mx_Custom_1,}","caller_id":"@AgentNumberWithCC"}
- Response Type: JSON - Click on Manage Users and ensure the Show Phone Call popup under Other Details is ‘Yes’. If not, then make changes by clicking on Edit.

Step 3
Setup Webhooks
- Click on Settings and then click on API and Webhooks.
- The API and Webhooks page display the Access Key and Secret Key.
- Login to your Acefone account and click on Webhook under Services tab.Â
- Create these Webhooks
Webhook 1
Name: Agent Pop up LS For Inbound Calls
Description: Agent Pop up LS for Inbound Calls
Trigger: Dialed on Extension
URL: https://{host}/v2/Telephony.svc/ShowAgentPopup?accessKey={AccessKey}&secretKey={SecretKey}
Request: POST
Call Type: Inbound
Content-Type: application/json
My Numbers: Choose the DID number from the list.
Timezone: Choose the time zoneWebhook 2
Name: Call Log API LS(Incoming-Answered)
Description: Call Log API LS (Incoming-Answered)
Trigger: Call Missed or Answered
URL: https://{host}/v2/Telephony.svc/LogCall?accessKey={AccessKey}&secretKey={SecretKey}
Request: POST
Call Type: Inbound
Content-Type: application/json
My Numbers: Choose the number to be called on
Timezone: Choose the time zoneWebhook 3
Name: Call Log API LS Outbound
Description: Call Log API LS Outbound
Trigger: Call Hangup
URL: https://{host}/v2/Telephony.svc/LogCall?accessKey={AccessKey}&secretKey={SecretKey}
Request: POST
Call Type: Outbound
Content-Type: application/json
Timezone: Choose the time zoneWebhook 4
Description: Call Log API For Click To Call
Trigger: Call hangup
URL: https://{host}/v2/Telephony.svc/LogCall?accessKey={AccessKey}&secretKey={SecretKey}
Request: POST
Call Type: Click To Call
Content-Type: application/json
Timezone: Choose the timezone - Enter their corresponding Response Body
Response body 1
{
"SourceNumber": "$caller_id_number",
"DestinationNumber": "$call_to_number",
"DisplayNumber": "$caller_id_number",
"Direction": "Inbound"
}Response body 2
{
"SourceNumber": "$caller_id_number",
"CallerSource": "$caller_id_number",
"DestinationNumber": "$call_to_number",
"DisplayNumber": "$caller_id_number",
"StartTime": "$start_stamp",
"EndTime": "$end_stamp",
"CallDuration": "$total_seconds_of_duration",
"ResourceURL": "$recording_url",
"Direction": "Inbound",
"CallSessionId": "$uuid",
"Status": "$call_status"
}Response body 3
{
"SourceNumber": "$caller_id_number",
"CallerSource": "$caller_id_number",
"DestinationNumber": "$call_to_number",
"DisplayNumber": "$caller_id_number",
"StartTime": "$start_stamp",
"EndTime": "$end_stamp",
"CallDuration": "$total_seconds_of_duration",
"ResourceURL": "$recording_url",
"Direction": "Outbound",
"CallSessionId": "$uuid",
"Status": "$call_status"
}Response body 4
{
"SourceNumber": "$caller_id_number",
"CallerSource": "$caller_id_number",
"DestinationNumber": "$call_to_number",
"DisplayNumber": "$caller_id_number",
"StartTime": "$start_stamp",
"EndTime": "$end_stamp",
"CallDuration": "$total_seconds_of_duration",
"ResourceURL": "$recording_url",
"Direction": "$direction",
"callSessionID": "uuid",
"Status": "$call_status"
} - You will now see a pop up on your Leadsquared CRM account whenever a lead tries to reach you
