List coach call evaluations
curl --request GET \
--url https://enterprise-api.avoca.ai/api/coach \
--header 'Authorization: Bearer <token>'import requests
url = "https://enterprise-api.avoca.ai/api/coach"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://enterprise-api.avoca.ai/api/coach', 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://enterprise-api.avoca.ai/api/coach",
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://enterprise-api.avoca.ai/api/coach"
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://enterprise-api.avoca.ai/api/coach")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://enterprise-api.avoca.ai/api/coach")
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": [
{
"call_id": 123,
"team_id": 123,
"rubric_id": 123,
"call_date": "2023-11-07T05:31:56Z",
"call_time_local": "<string>",
"duration_seconds": 123,
"score": 123,
"awarded_points": 123,
"max_available_points": 123,
"five9_call_id": "<string>",
"agent_name": "<string>",
"agent_id": "<string>",
"customer_name": "<string>",
"customer_phone": "<string>",
"call_type": "<string>",
"call_reason": "<string>",
"direction": "<string>",
"campaign": "<string>",
"is_bookable": true,
"is_booked": true,
"suggested_call_reason": "<string>",
"suggested_call_reason_reasoning": "<string>",
"suggested_call_reason_confidence": 123,
"unbooked_reason": "<string>",
"tags": [
"<string>"
],
"summary": "<string>",
"status": "<string>",
"reviewed": true,
"review_url": "<string>",
"service_titan_job_url": "<string>",
"rubric_name": "<string>",
"service_titan_call_id": 123,
"evaluation_answers": {}
}
],
"pagination": {
"limit": 123,
"offset": 123,
"has_more": true
}
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}Coach
List coach call evaluations
List evaluated coach (QA) calls for the team, newest first. Each row includes the score, awarded/max points, per-item evaluation answers, and the rubric_id for joining to GET /api/coach/rubrics. Requires the read:coach permission.
GET
/
api
/
coach
List coach call evaluations
curl --request GET \
--url https://enterprise-api.avoca.ai/api/coach \
--header 'Authorization: Bearer <token>'import requests
url = "https://enterprise-api.avoca.ai/api/coach"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://enterprise-api.avoca.ai/api/coach', 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://enterprise-api.avoca.ai/api/coach",
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://enterprise-api.avoca.ai/api/coach"
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://enterprise-api.avoca.ai/api/coach")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://enterprise-api.avoca.ai/api/coach")
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": [
{
"call_id": 123,
"team_id": 123,
"rubric_id": 123,
"call_date": "2023-11-07T05:31:56Z",
"call_time_local": "<string>",
"duration_seconds": 123,
"score": 123,
"awarded_points": 123,
"max_available_points": 123,
"five9_call_id": "<string>",
"agent_name": "<string>",
"agent_id": "<string>",
"customer_name": "<string>",
"customer_phone": "<string>",
"call_type": "<string>",
"call_reason": "<string>",
"direction": "<string>",
"campaign": "<string>",
"is_bookable": true,
"is_booked": true,
"suggested_call_reason": "<string>",
"suggested_call_reason_reasoning": "<string>",
"suggested_call_reason_confidence": 123,
"unbooked_reason": "<string>",
"tags": [
"<string>"
],
"summary": "<string>",
"status": "<string>",
"reviewed": true,
"review_url": "<string>",
"service_titan_job_url": "<string>",
"rubric_name": "<string>",
"service_titan_call_id": 123,
"evaluation_answers": {}
}
],
"pagination": {
"limit": 123,
"offset": 123,
"has_more": true
}
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}Authorizations
API key in the format avoca_<64 hex characters>
Headers
Target team ID. Required for multi-team (enterprise_all_teams / portfolio_all_teams) keys on v0 endpoints; single-team keys are locked to their team and omit it.
Query Parameters
Results per page (default 100, max 1000)
Required range:
x <= 1000Pagination offset (default 0)
Start of date range (ISO 8601; default 7 days ago)
End of date range (ISO 8601; default now)
IANA timezone for date calculations (default America/New_York)
Was this page helpful?
⌘I