Get a coach call evaluation
curl --request GET \
--url https://enterprise-api.avoca.ai/api/coach/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://enterprise-api.avoca.ai/api/coach/{id}"
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/{id}', 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/{id}",
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/{id}"
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/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://enterprise-api.avoca.ai/api/coach/{id}")
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,
"avoca_call_id": "<string>",
"is_transferred": true,
"team_id": 123,
"rubric_id": 123,
"call_date": "2023-11-07T05:31:56Z",
"call_time_local": "14:32:05",
"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": "Inbound",
"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": "EVALUATED",
"reviewed": true,
"review_url": "<string>",
"service_titan_job_url": "<string>",
"rubric_name": "<string>",
"service_titan_call_id": 123,
"evaluation_answers": {}
}
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}Coach
Get a coach call evaluation
Get a single evaluated coach call by its numeric ID. Requires the read:coach permission.
GET
/
api
/
coach
/
{id}
Get a coach call evaluation
curl --request GET \
--url https://enterprise-api.avoca.ai/api/coach/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://enterprise-api.avoca.ai/api/coach/{id}"
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/{id}', 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/{id}",
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/{id}"
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/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://enterprise-api.avoca.ai/api/coach/{id}")
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,
"avoca_call_id": "<string>",
"is_transferred": true,
"team_id": 123,
"rubric_id": 123,
"call_date": "2023-11-07T05:31:56Z",
"call_time_local": "14:32:05",
"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": "Inbound",
"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": "EVALUATED",
"reviewed": true,
"review_url": "<string>",
"service_titan_job_url": "<string>",
"rubric_name": "<string>",
"service_titan_call_id": 123,
"evaluation_answers": {}
}
}{
"error": "<string>",
"message": "<string>"
}{
"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.
Path Parameters
Coach call ID (number)
Query Parameters
IANA timezone for date calculations (default America/New_York)
Response
The coach call
An evaluated coach (QA) call. evaluation_answers maps rubric item keys to "Yes" / "No" / "N/A" — join to GET /api/coach/rubrics via rubric_id for item names.
Show child attributes
Show child attributes
Was this page helpful?
⌘I