Get capacity-adjusted booking rates
curl --request GET \
--url https://api.prod.avoca.ai/api/v1/teams/{teamId}/call-analytics/capacity-adjusted-booking \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.prod.avoca.ai/api/v1/teams/{teamId}/call-analytics/capacity-adjusted-booking"
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.avoca.ai/api/v1/teams/{teamId}/call-analytics/capacity-adjusted-booking', 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.avoca.ai/api/v1/teams/{teamId}/call-analytics/capacity-adjusted-booking",
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.avoca.ai/api/v1/teams/{teamId}/call-analytics/capacity-adjusted-booking"
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.avoca.ai/api/v1/teams/{teamId}/call-analytics/capacity-adjusted-booking")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.prod.avoca.ai/api/v1/teams/{teamId}/call-analytics/capacity-adjusted-booking")
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{
"data": {
"totalCalls": 1,
"bookableCalls": 1,
"bookedCalls": 1,
"recoveredCalls": 1,
"unbookedTimeConcernCalls": 1,
"fullyRecoveredBookingRate": 123,
"rawRecoveredBookingRate": 123
}
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}Calls
Get capacity-adjusted booking rates
Requires read:calls and capacity-adjusted booking enabled for the requested team. Uses the default call-type scope and excludes standard non-actionable reasons. Time Concern uses the recorded unbooked classification, including subsequently recovered calls; rates can exceed 100%. Maximum 31 days and 10 requests per minute. See the capacity-adjusted booking guide for formulas and exports.
GET
/
api
/
v1
/
teams
/
{teamId}
/
call-analytics
/
capacity-adjusted-booking
Get capacity-adjusted booking rates
curl --request GET \
--url https://api.prod.avoca.ai/api/v1/teams/{teamId}/call-analytics/capacity-adjusted-booking \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.prod.avoca.ai/api/v1/teams/{teamId}/call-analytics/capacity-adjusted-booking"
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.avoca.ai/api/v1/teams/{teamId}/call-analytics/capacity-adjusted-booking', 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.avoca.ai/api/v1/teams/{teamId}/call-analytics/capacity-adjusted-booking",
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.avoca.ai/api/v1/teams/{teamId}/call-analytics/capacity-adjusted-booking"
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.avoca.ai/api/v1/teams/{teamId}/call-analytics/capacity-adjusted-booking")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.prod.avoca.ai/api/v1/teams/{teamId}/call-analytics/capacity-adjusted-booking")
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{
"data": {
"totalCalls": 1,
"bookableCalls": 1,
"bookedCalls": 1,
"recoveredCalls": 1,
"unbookedTimeConcernCalls": 1,
"fullyRecoveredBookingRate": 123,
"rawRecoveredBookingRate": 123
}
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}Authorizations
API key in the format avoca_<64 hex characters>
Path Parameters
Required range:
x >= 1Query Parameters
Available options:
json, csv Response
Counts and percentage rates for the selected period. CSV has matching column names and blank cells for null rates.
Show child attributes
Show child attributes
Was this page helpful?