curl --request PUT \
--url https://{subdomain}.mihu.ai/api/v1/coaching-agents/{uuid} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"name": "Support Team Coach",
"description": "Coaches the support team after every evaluation",
"is_active": true,
"is_default": false,
"coaching_tone": "supportive",
"coaching_frequency": "immediate",
"auto_trigger_threshold": 70,
"language": "English",
"include_positive_feedback": true,
"include_actionable_steps": true,
"include_resources": true,
"general_guidelines": "Always start with positive feedback. Be specific with examples.",
"coaching_templates": [
{
"name": "Low Score Performance",
"template": "Let's review this call together. I noticed a few areas where small changes can make a big difference...",
"scenario": "When agent scores below 60%",
"tone": "supportive",
"is_custom": true
}
],
"training_examples": [
{
"issue": "Agent scored 55% due to poor greeting and rushed resolution",
"coaching": "I noticed you interrupted the customer a few times during the call. Try counting to 2 after they pause before responding."
}
],
"resource_library": [
{
"title": "Active Listening Basics",
"type": "video",
"url": "https://example.com/active-listening",
"description": "A 10-minute video on letting customers finish their thoughts.",
"topics": "empathy, listening, interruptions"
}
]
}
EOFimport requests
url = "https://{subdomain}.mihu.ai/api/v1/coaching-agents/{uuid}"
payload = {
"name": "Support Team Coach",
"description": "Coaches the support team after every evaluation",
"is_active": True,
"is_default": False,
"coaching_tone": "supportive",
"coaching_frequency": "immediate",
"auto_trigger_threshold": 70,
"language": "English",
"include_positive_feedback": True,
"include_actionable_steps": True,
"include_resources": True,
"general_guidelines": "Always start with positive feedback. Be specific with examples.",
"coaching_templates": [
{
"name": "Low Score Performance",
"template": "Let's review this call together. I noticed a few areas where small changes can make a big difference...",
"scenario": "When agent scores below 60%",
"tone": "supportive",
"is_custom": True
}
],
"training_examples": [
{
"issue": "Agent scored 55% due to poor greeting and rushed resolution",
"coaching": "I noticed you interrupted the customer a few times during the call. Try counting to 2 after they pause before responding."
}
],
"resource_library": [
{
"title": "Active Listening Basics",
"type": "video",
"url": "https://example.com/active-listening",
"description": "A 10-minute video on letting customers finish their thoughts.",
"topics": "empathy, listening, interruptions"
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Support Team Coach',
description: 'Coaches the support team after every evaluation',
is_active: true,
is_default: false,
coaching_tone: 'supportive',
coaching_frequency: 'immediate',
auto_trigger_threshold: 70,
language: 'English',
include_positive_feedback: true,
include_actionable_steps: true,
include_resources: true,
general_guidelines: 'Always start with positive feedback. Be specific with examples.',
coaching_templates: [
{
name: 'Low Score Performance',
template: 'Let\'s review this call together. I noticed a few areas where small changes can make a big difference...',
scenario: 'When agent scores below 60%',
tone: 'supportive',
is_custom: true
}
],
training_examples: [
{
issue: 'Agent scored 55% due to poor greeting and rushed resolution',
coaching: 'I noticed you interrupted the customer a few times during the call. Try counting to 2 after they pause before responding.'
}
],
resource_library: [
{
title: 'Active Listening Basics',
type: 'video',
url: 'https://example.com/active-listening',
description: 'A 10-minute video on letting customers finish their thoughts.',
topics: 'empathy, listening, interruptions'
}
]
})
};
fetch('https://{subdomain}.mihu.ai/api/v1/coaching-agents/{uuid}', 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://{subdomain}.mihu.ai/api/v1/coaching-agents/{uuid}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Support Team Coach',
'description' => 'Coaches the support team after every evaluation',
'is_active' => true,
'is_default' => false,
'coaching_tone' => 'supportive',
'coaching_frequency' => 'immediate',
'auto_trigger_threshold' => 70,
'language' => 'English',
'include_positive_feedback' => true,
'include_actionable_steps' => true,
'include_resources' => true,
'general_guidelines' => 'Always start with positive feedback. Be specific with examples.',
'coaching_templates' => [
[
'name' => 'Low Score Performance',
'template' => 'Let\'s review this call together. I noticed a few areas where small changes can make a big difference...',
'scenario' => 'When agent scores below 60%',
'tone' => 'supportive',
'is_custom' => true
]
],
'training_examples' => [
[
'issue' => 'Agent scored 55% due to poor greeting and rushed resolution',
'coaching' => 'I noticed you interrupted the customer a few times during the call. Try counting to 2 after they pause before responding.'
]
],
'resource_library' => [
[
'title' => 'Active Listening Basics',
'type' => 'video',
'url' => 'https://example.com/active-listening',
'description' => 'A 10-minute video on letting customers finish their thoughts.',
'topics' => 'empathy, listening, interruptions'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{subdomain}.mihu.ai/api/v1/coaching-agents/{uuid}"
payload := strings.NewReader("{\n \"name\": \"Support Team Coach\",\n \"description\": \"Coaches the support team after every evaluation\",\n \"is_active\": true,\n \"is_default\": false,\n \"coaching_tone\": \"supportive\",\n \"coaching_frequency\": \"immediate\",\n \"auto_trigger_threshold\": 70,\n \"language\": \"English\",\n \"include_positive_feedback\": true,\n \"include_actionable_steps\": true,\n \"include_resources\": true,\n \"general_guidelines\": \"Always start with positive feedback. Be specific with examples.\",\n \"coaching_templates\": [\n {\n \"name\": \"Low Score Performance\",\n \"template\": \"Let's review this call together. I noticed a few areas where small changes can make a big difference...\",\n \"scenario\": \"When agent scores below 60%\",\n \"tone\": \"supportive\",\n \"is_custom\": true\n }\n ],\n \"training_examples\": [\n {\n \"issue\": \"Agent scored 55% due to poor greeting and rushed resolution\",\n \"coaching\": \"I noticed you interrupted the customer a few times during the call. Try counting to 2 after they pause before responding.\"\n }\n ],\n \"resource_library\": [\n {\n \"title\": \"Active Listening Basics\",\n \"type\": \"video\",\n \"url\": \"https://example.com/active-listening\",\n \"description\": \"A 10-minute video on letting customers finish their thoughts.\",\n \"topics\": \"empathy, listening, interruptions\"\n }\n ]\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://{subdomain}.mihu.ai/api/v1/coaching-agents/{uuid}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Support Team Coach\",\n \"description\": \"Coaches the support team after every evaluation\",\n \"is_active\": true,\n \"is_default\": false,\n \"coaching_tone\": \"supportive\",\n \"coaching_frequency\": \"immediate\",\n \"auto_trigger_threshold\": 70,\n \"language\": \"English\",\n \"include_positive_feedback\": true,\n \"include_actionable_steps\": true,\n \"include_resources\": true,\n \"general_guidelines\": \"Always start with positive feedback. Be specific with examples.\",\n \"coaching_templates\": [\n {\n \"name\": \"Low Score Performance\",\n \"template\": \"Let's review this call together. I noticed a few areas where small changes can make a big difference...\",\n \"scenario\": \"When agent scores below 60%\",\n \"tone\": \"supportive\",\n \"is_custom\": true\n }\n ],\n \"training_examples\": [\n {\n \"issue\": \"Agent scored 55% due to poor greeting and rushed resolution\",\n \"coaching\": \"I noticed you interrupted the customer a few times during the call. Try counting to 2 after they pause before responding.\"\n }\n ],\n \"resource_library\": [\n {\n \"title\": \"Active Listening Basics\",\n \"type\": \"video\",\n \"url\": \"https://example.com/active-listening\",\n \"description\": \"A 10-minute video on letting customers finish their thoughts.\",\n \"topics\": \"empathy, listening, interruptions\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{subdomain}.mihu.ai/api/v1/coaching-agents/{uuid}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Support Team Coach\",\n \"description\": \"Coaches the support team after every evaluation\",\n \"is_active\": true,\n \"is_default\": false,\n \"coaching_tone\": \"supportive\",\n \"coaching_frequency\": \"immediate\",\n \"auto_trigger_threshold\": 70,\n \"language\": \"English\",\n \"include_positive_feedback\": true,\n \"include_actionable_steps\": true,\n \"include_resources\": true,\n \"general_guidelines\": \"Always start with positive feedback. Be specific with examples.\",\n \"coaching_templates\": [\n {\n \"name\": \"Low Score Performance\",\n \"template\": \"Let's review this call together. I noticed a few areas where small changes can make a big difference...\",\n \"scenario\": \"When agent scores below 60%\",\n \"tone\": \"supportive\",\n \"is_custom\": true\n }\n ],\n \"training_examples\": [\n {\n \"issue\": \"Agent scored 55% due to poor greeting and rushed resolution\",\n \"coaching\": \"I noticed you interrupted the customer a few times during the call. Try counting to 2 after they pause before responding.\"\n }\n ],\n \"resource_library\": [\n {\n \"title\": \"Active Listening Basics\",\n \"type\": \"video\",\n \"url\": \"https://example.com/active-listening\",\n \"description\": \"A 10-minute video on letting customers finish their thoughts.\",\n \"topics\": \"empathy, listening, interruptions\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "Coaching agent updated successfully",
"data": {
"uuid": "3f6a8c2e-9d1b-4e7a-b5c3-2a1f0e9d8c7b",
"name": "Support Team Coach",
"description": "Coaches the support team after every evaluation",
"is_active": true,
"is_default": true,
"coaching_tone": "supportive",
"coaching_frequency": "immediate",
"auto_trigger_threshold": 70,
"language": "English",
"include_positive_feedback": true,
"include_actionable_steps": true,
"include_resources": true,
"general_guidelines": "Always start with positive feedback.",
"coaching_templates": [
{
"name": "Low Score Performance",
"scenario": "When agent scores below 60%",
"tone": "supportive",
"template": "Let's review this call together...",
"is_custom": false
}
],
"training_examples": [
{
"issue": "Agent scored 55% due to poor greeting",
"coaching": "I noticed you interrupted the customer a few times..."
}
],
"resource_library": [
{
"title": "Active Listening Basics",
"type": "video",
"url": "https://example.com/active-listening",
"description": "<string>",
"topics": "empathy, listening"
}
],
"created_at": "2026-06-04T10:15:30+00:00",
"updated_at": "2026-06-04T10:15:30+00:00"
}
}{
"success": false,
"message": "Agent not found",
"data": []
}{
"success": false,
"message": "Agent not found",
"data": []
}{
"success": false,
"message": "Agent not found",
"data": []
}Update a coaching agent (same as PATCH)
Works exactly like PATCH /api/v1/coaching-agents/.
curl --request PUT \
--url https://{subdomain}.mihu.ai/api/v1/coaching-agents/{uuid} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"name": "Support Team Coach",
"description": "Coaches the support team after every evaluation",
"is_active": true,
"is_default": false,
"coaching_tone": "supportive",
"coaching_frequency": "immediate",
"auto_trigger_threshold": 70,
"language": "English",
"include_positive_feedback": true,
"include_actionable_steps": true,
"include_resources": true,
"general_guidelines": "Always start with positive feedback. Be specific with examples.",
"coaching_templates": [
{
"name": "Low Score Performance",
"template": "Let's review this call together. I noticed a few areas where small changes can make a big difference...",
"scenario": "When agent scores below 60%",
"tone": "supportive",
"is_custom": true
}
],
"training_examples": [
{
"issue": "Agent scored 55% due to poor greeting and rushed resolution",
"coaching": "I noticed you interrupted the customer a few times during the call. Try counting to 2 after they pause before responding."
}
],
"resource_library": [
{
"title": "Active Listening Basics",
"type": "video",
"url": "https://example.com/active-listening",
"description": "A 10-minute video on letting customers finish their thoughts.",
"topics": "empathy, listening, interruptions"
}
]
}
EOFimport requests
url = "https://{subdomain}.mihu.ai/api/v1/coaching-agents/{uuid}"
payload = {
"name": "Support Team Coach",
"description": "Coaches the support team after every evaluation",
"is_active": True,
"is_default": False,
"coaching_tone": "supportive",
"coaching_frequency": "immediate",
"auto_trigger_threshold": 70,
"language": "English",
"include_positive_feedback": True,
"include_actionable_steps": True,
"include_resources": True,
"general_guidelines": "Always start with positive feedback. Be specific with examples.",
"coaching_templates": [
{
"name": "Low Score Performance",
"template": "Let's review this call together. I noticed a few areas where small changes can make a big difference...",
"scenario": "When agent scores below 60%",
"tone": "supportive",
"is_custom": True
}
],
"training_examples": [
{
"issue": "Agent scored 55% due to poor greeting and rushed resolution",
"coaching": "I noticed you interrupted the customer a few times during the call. Try counting to 2 after they pause before responding."
}
],
"resource_library": [
{
"title": "Active Listening Basics",
"type": "video",
"url": "https://example.com/active-listening",
"description": "A 10-minute video on letting customers finish their thoughts.",
"topics": "empathy, listening, interruptions"
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Support Team Coach',
description: 'Coaches the support team after every evaluation',
is_active: true,
is_default: false,
coaching_tone: 'supportive',
coaching_frequency: 'immediate',
auto_trigger_threshold: 70,
language: 'English',
include_positive_feedback: true,
include_actionable_steps: true,
include_resources: true,
general_guidelines: 'Always start with positive feedback. Be specific with examples.',
coaching_templates: [
{
name: 'Low Score Performance',
template: 'Let\'s review this call together. I noticed a few areas where small changes can make a big difference...',
scenario: 'When agent scores below 60%',
tone: 'supportive',
is_custom: true
}
],
training_examples: [
{
issue: 'Agent scored 55% due to poor greeting and rushed resolution',
coaching: 'I noticed you interrupted the customer a few times during the call. Try counting to 2 after they pause before responding.'
}
],
resource_library: [
{
title: 'Active Listening Basics',
type: 'video',
url: 'https://example.com/active-listening',
description: 'A 10-minute video on letting customers finish their thoughts.',
topics: 'empathy, listening, interruptions'
}
]
})
};
fetch('https://{subdomain}.mihu.ai/api/v1/coaching-agents/{uuid}', 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://{subdomain}.mihu.ai/api/v1/coaching-agents/{uuid}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Support Team Coach',
'description' => 'Coaches the support team after every evaluation',
'is_active' => true,
'is_default' => false,
'coaching_tone' => 'supportive',
'coaching_frequency' => 'immediate',
'auto_trigger_threshold' => 70,
'language' => 'English',
'include_positive_feedback' => true,
'include_actionable_steps' => true,
'include_resources' => true,
'general_guidelines' => 'Always start with positive feedback. Be specific with examples.',
'coaching_templates' => [
[
'name' => 'Low Score Performance',
'template' => 'Let\'s review this call together. I noticed a few areas where small changes can make a big difference...',
'scenario' => 'When agent scores below 60%',
'tone' => 'supportive',
'is_custom' => true
]
],
'training_examples' => [
[
'issue' => 'Agent scored 55% due to poor greeting and rushed resolution',
'coaching' => 'I noticed you interrupted the customer a few times during the call. Try counting to 2 after they pause before responding.'
]
],
'resource_library' => [
[
'title' => 'Active Listening Basics',
'type' => 'video',
'url' => 'https://example.com/active-listening',
'description' => 'A 10-minute video on letting customers finish their thoughts.',
'topics' => 'empathy, listening, interruptions'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{subdomain}.mihu.ai/api/v1/coaching-agents/{uuid}"
payload := strings.NewReader("{\n \"name\": \"Support Team Coach\",\n \"description\": \"Coaches the support team after every evaluation\",\n \"is_active\": true,\n \"is_default\": false,\n \"coaching_tone\": \"supportive\",\n \"coaching_frequency\": \"immediate\",\n \"auto_trigger_threshold\": 70,\n \"language\": \"English\",\n \"include_positive_feedback\": true,\n \"include_actionable_steps\": true,\n \"include_resources\": true,\n \"general_guidelines\": \"Always start with positive feedback. Be specific with examples.\",\n \"coaching_templates\": [\n {\n \"name\": \"Low Score Performance\",\n \"template\": \"Let's review this call together. I noticed a few areas where small changes can make a big difference...\",\n \"scenario\": \"When agent scores below 60%\",\n \"tone\": \"supportive\",\n \"is_custom\": true\n }\n ],\n \"training_examples\": [\n {\n \"issue\": \"Agent scored 55% due to poor greeting and rushed resolution\",\n \"coaching\": \"I noticed you interrupted the customer a few times during the call. Try counting to 2 after they pause before responding.\"\n }\n ],\n \"resource_library\": [\n {\n \"title\": \"Active Listening Basics\",\n \"type\": \"video\",\n \"url\": \"https://example.com/active-listening\",\n \"description\": \"A 10-minute video on letting customers finish their thoughts.\",\n \"topics\": \"empathy, listening, interruptions\"\n }\n ]\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://{subdomain}.mihu.ai/api/v1/coaching-agents/{uuid}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Support Team Coach\",\n \"description\": \"Coaches the support team after every evaluation\",\n \"is_active\": true,\n \"is_default\": false,\n \"coaching_tone\": \"supportive\",\n \"coaching_frequency\": \"immediate\",\n \"auto_trigger_threshold\": 70,\n \"language\": \"English\",\n \"include_positive_feedback\": true,\n \"include_actionable_steps\": true,\n \"include_resources\": true,\n \"general_guidelines\": \"Always start with positive feedback. Be specific with examples.\",\n \"coaching_templates\": [\n {\n \"name\": \"Low Score Performance\",\n \"template\": \"Let's review this call together. I noticed a few areas where small changes can make a big difference...\",\n \"scenario\": \"When agent scores below 60%\",\n \"tone\": \"supportive\",\n \"is_custom\": true\n }\n ],\n \"training_examples\": [\n {\n \"issue\": \"Agent scored 55% due to poor greeting and rushed resolution\",\n \"coaching\": \"I noticed you interrupted the customer a few times during the call. Try counting to 2 after they pause before responding.\"\n }\n ],\n \"resource_library\": [\n {\n \"title\": \"Active Listening Basics\",\n \"type\": \"video\",\n \"url\": \"https://example.com/active-listening\",\n \"description\": \"A 10-minute video on letting customers finish their thoughts.\",\n \"topics\": \"empathy, listening, interruptions\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{subdomain}.mihu.ai/api/v1/coaching-agents/{uuid}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Support Team Coach\",\n \"description\": \"Coaches the support team after every evaluation\",\n \"is_active\": true,\n \"is_default\": false,\n \"coaching_tone\": \"supportive\",\n \"coaching_frequency\": \"immediate\",\n \"auto_trigger_threshold\": 70,\n \"language\": \"English\",\n \"include_positive_feedback\": true,\n \"include_actionable_steps\": true,\n \"include_resources\": true,\n \"general_guidelines\": \"Always start with positive feedback. Be specific with examples.\",\n \"coaching_templates\": [\n {\n \"name\": \"Low Score Performance\",\n \"template\": \"Let's review this call together. I noticed a few areas where small changes can make a big difference...\",\n \"scenario\": \"When agent scores below 60%\",\n \"tone\": \"supportive\",\n \"is_custom\": true\n }\n ],\n \"training_examples\": [\n {\n \"issue\": \"Agent scored 55% due to poor greeting and rushed resolution\",\n \"coaching\": \"I noticed you interrupted the customer a few times during the call. Try counting to 2 after they pause before responding.\"\n }\n ],\n \"resource_library\": [\n {\n \"title\": \"Active Listening Basics\",\n \"type\": \"video\",\n \"url\": \"https://example.com/active-listening\",\n \"description\": \"A 10-minute video on letting customers finish their thoughts.\",\n \"topics\": \"empathy, listening, interruptions\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "Coaching agent updated successfully",
"data": {
"uuid": "3f6a8c2e-9d1b-4e7a-b5c3-2a1f0e9d8c7b",
"name": "Support Team Coach",
"description": "Coaches the support team after every evaluation",
"is_active": true,
"is_default": true,
"coaching_tone": "supportive",
"coaching_frequency": "immediate",
"auto_trigger_threshold": 70,
"language": "English",
"include_positive_feedback": true,
"include_actionable_steps": true,
"include_resources": true,
"general_guidelines": "Always start with positive feedback.",
"coaching_templates": [
{
"name": "Low Score Performance",
"scenario": "When agent scores below 60%",
"tone": "supportive",
"template": "Let's review this call together...",
"is_custom": false
}
],
"training_examples": [
{
"issue": "Agent scored 55% due to poor greeting",
"coaching": "I noticed you interrupted the customer a few times..."
}
],
"resource_library": [
{
"title": "Active Listening Basics",
"type": "video",
"url": "https://example.com/active-listening",
"description": "<string>",
"topics": "empathy, listening"
}
],
"created_at": "2026-06-04T10:15:30+00:00",
"updated_at": "2026-06-04T10:15:30+00:00"
}
}{
"success": false,
"message": "Agent not found",
"data": []
}{
"success": false,
"message": "Agent not found",
"data": []
}{
"success": false,
"message": "Agent not found",
"data": []
}Authorizations
Use a Bearer token to access these API endpoints. Example: "Bearer {your-token}"
Path Parameters
Body
Create/update payload. On update only the fields you send are changed; the template, example, and resource lists replace the existing ones when provided.
255"Support Team Coach"
"Coaches the support team after every evaluation"
true
Send true to make this the default coach. To move the default away from an agent, set another one as default.
false
supportive, direct, constructive, motivational — or your own wording, e.g. friendly but firm.
100"supportive"
When coaching is generated. Currently immediate — after each evaluation.
immediate "immediate"
Coaching is generated automatically when an agent scores below this percentage.
0 <= x <= 10070
Language for coaching messages and feedback.
50"English"
Highlight what the agent did well.
true
Provide specific steps for improvement.
true
Recommend relevant training resources.
true
Your coaching philosophy — applied to every coaching message.
"Always start with positive feedback. Be specific with examples."
Templates for different scenarios. Sending this replaces the existing list. Leave it out on create to start with sample templates.
Show child attributes
Show child attributes
Examples of your coaching style. Sending this replaces the existing list. Leave it out on create to start with a sample example.
Show child attributes
Show child attributes
Training resources the AI can recommend. Sending this replaces the existing list.
Show child attributes
Show child attributes