List answered calls
Returns answered-call booking and estimated-revenue metrics for the selected organization, region, or practices and date range. Set overview_only=true for one combined summary; otherwise results are grouped by practice and paginated.
curl --request GET \
--url https://api.prod.peerlogic.com/api/calls/answered-calls/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.prod.peerlogic.com/api/calls/answered-calls/"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.prod.peerlogic.com/api/calls/answered-calls/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.prod.peerlogic.com/api/calls/answered-calls/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.prod.peerlogic.com/api/calls/answered-calls/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.prod.peerlogic.com/api/calls/answered-calls/")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.prod.peerlogic.com/api/calls/answered-calls/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"meta": {
"page": 1,
"page_total": 1,
"page_size": 25,
"results_total": 1
},
"links": {
"previous": null,
"self": "https://api.prod.peerlogic.com/api/calls/answered-calls/?practice_ids=prc_example",
"next": null
},
"results": [
{
"total_appointments": 84,
"booked_calls": 51,
"captured_revenue": 38250,
"not_booked_calls": 33,
"potential_revenue": 24750,
"booked_calls_percentage": 60.71,
"not_booked_calls_percentage": 39.29,
"practice_id": "prc_example",
"practice_name": "Peerlogic Veterinary Center"
}
]
}Authorizations
Bearer access token issued by Peerlogic.
Query Parameters
Include accessible practices in this organization.
Include accessible practices assigned to this region.
Comma-separated practice IDs. All requested practices must be accessible to the authenticated account.
Include calls on or after this date, in YYYY-MM-DD format.
Include calls before this date, in YYYY-MM-DD format.
Return one combined summary instead of a paginated practice breakdown.
Page number, beginning with 1.
x >= 1Number of results per page.
1 <= x <= 100Response
Answered-call metrics. The response shape depends on overview_only.
- Option 1
- Option 2
Was this page helpful?
curl --request GET \
--url https://api.prod.peerlogic.com/api/calls/answered-calls/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.prod.peerlogic.com/api/calls/answered-calls/"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.prod.peerlogic.com/api/calls/answered-calls/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.prod.peerlogic.com/api/calls/answered-calls/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.prod.peerlogic.com/api/calls/answered-calls/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.prod.peerlogic.com/api/calls/answered-calls/")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.prod.peerlogic.com/api/calls/answered-calls/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"meta": {
"page": 1,
"page_total": 1,
"page_size": 25,
"results_total": 1
},
"links": {
"previous": null,
"self": "https://api.prod.peerlogic.com/api/calls/answered-calls/?practice_ids=prc_example",
"next": null
},
"results": [
{
"total_appointments": 84,
"booked_calls": 51,
"captured_revenue": 38250,
"not_booked_calls": 33,
"potential_revenue": 24750,
"booked_calls_percentage": 60.71,
"not_booked_calls_percentage": 39.29,
"practice_id": "prc_example",
"practice_name": "Peerlogic Veterinary Center"
}
]
}