curl --request POST \
--url https://beta.getsales.io/unibox/v1/api/agent-examples \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Team-SID: <api-key>' \
--data '
{
"agent_sid": "<string>",
"message_sid": "<string>",
"situation": "<string>",
"answer": "<string>",
"context_before": "<string>",
"scenario_key": "<string>",
"note": "<string>"
}
'import requests
url = "https://beta.getsales.io/unibox/v1/api/agent-examples"
payload = {
"agent_sid": "<string>",
"message_sid": "<string>",
"situation": "<string>",
"answer": "<string>",
"context_before": "<string>",
"scenario_key": "<string>",
"note": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Team-SID": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'Team-SID': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
agent_sid: '<string>',
message_sid: '<string>',
situation: '<string>',
answer: '<string>',
context_before: '<string>',
scenario_key: '<string>',
note: '<string>'
})
};
fetch('https://beta.getsales.io/unibox/v1/api/agent-examples', 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://beta.getsales.io/unibox/v1/api/agent-examples",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'agent_sid' => '<string>',
'message_sid' => '<string>',
'situation' => '<string>',
'answer' => '<string>',
'context_before' => '<string>',
'scenario_key' => '<string>',
'note' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Team-SID: <api-key>"
],
]);
$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://beta.getsales.io/unibox/v1/api/agent-examples"
payload := strings.NewReader("{\n \"agent_sid\": \"<string>\",\n \"message_sid\": \"<string>\",\n \"situation\": \"<string>\",\n \"answer\": \"<string>\",\n \"context_before\": \"<string>\",\n \"scenario_key\": \"<string>\",\n \"note\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Team-SID", "<api-key>")
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.post("https://beta.getsales.io/unibox/v1/api/agent-examples")
.header("Authorization", "Bearer <token>")
.header("Team-SID", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"agent_sid\": \"<string>\",\n \"message_sid\": \"<string>\",\n \"situation\": \"<string>\",\n \"answer\": \"<string>\",\n \"context_before\": \"<string>\",\n \"scenario_key\": \"<string>\",\n \"note\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://beta.getsales.io/unibox/v1/api/agent-examples")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Team-SID"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"agent_sid\": \"<string>\",\n \"message_sid\": \"<string>\",\n \"situation\": \"<string>\",\n \"answer\": \"<string>\",\n \"context_before\": \"<string>\",\n \"scenario_key\": \"<string>\",\n \"note\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"operation": "create",
"item": {
"sid": "<string>",
"team_sid": "<string>",
"agent_sid": "<string>",
"tier": "golden",
"source": "history",
"kind": "reply",
"situation": "<string>",
"answer": "<string>",
"sender_profile_sid": "<string>",
"conversation_sid": "<string>",
"message_sid": "<string>",
"document_sid": "<string>",
"channel": "linkedin",
"scenario_key": "<string>",
"context_before": "<string>",
"draft_text": "<string>",
"note": "<string>",
"seen_count": 2,
"used_count": 1,
"last_used_at": "<string>",
"answered_at": "<string>",
"embedding_state": "pending",
"embedding_model": "<string>",
"golden_by": {
"actor_type": "user",
"actor_sid": "<string>",
"team_sid": "<string>",
"permissions": {},
"actor_name": "<string>",
"oauth_client_sid": "<string>",
"reason": "<string>",
"cluster_id": 123,
"trace_id": "<string>"
},
"golden_at": "<string>",
"proposed_at": "<string>",
"created_by": {
"actor_type": "user",
"actor_sid": "<string>",
"team_sid": "<string>",
"permissions": {},
"actor_name": "<string>",
"oauth_client_sid": "<string>",
"reason": "<string>",
"cluster_id": 123,
"trace_id": "<string>"
},
"deleted_by": {
"actor_type": "user",
"actor_sid": "<string>",
"team_sid": "<string>",
"permissions": {},
"actor_name": "<string>",
"oauth_client_sid": "<string>",
"reason": "<string>",
"cluster_id": 123,
"trace_id": "<string>"
},
"created_at": "<string>",
"updated_at": "<string>",
"deleted_at": "<string>"
},
"already_exists": true,
"meta": {
"trace_id": "<string>",
"span_id": "<string>",
"timestamp": "<string>",
"duration_ms": 1,
"team_sid": "<string>",
"actor_type": "<string>"
}
}{
"success": false,
"error": {
"code": "validation_failed",
"message": "<string>",
"recoverable": true,
"suggestion": "<string>",
"field_errors": {},
"blockers": [
{
"type": "<string>",
"severity": "hard",
"description": "<string>",
"entity_sid": "<string>",
"resolution": "<string>",
"resolution_hint": "<string>",
"count": 123
}
],
"context": {}
},
"meta": {
"trace_id": "<string>",
"span_id": "<string>",
"timestamp": "<string>",
"duration_ms": 1,
"team_sid": "<string>",
"actor_type": "<string>"
}
}{
"success": false,
"error": {
"code": "validation_failed",
"message": "<string>",
"recoverable": true,
"suggestion": "<string>",
"field_errors": {},
"blockers": [
{
"type": "<string>",
"severity": "hard",
"description": "<string>",
"entity_sid": "<string>",
"resolution": "<string>",
"resolution_hint": "<string>",
"count": 123
}
],
"context": {}
},
"meta": {
"trace_id": "<string>",
"span_id": "<string>",
"timestamp": "<string>",
"duration_ms": 1,
"team_sid": "<string>",
"actor_type": "<string>"
}
}Add to the golden set
Add to the golden set: Remember this reply (message_sid, a message of ours that went out, the lead’s message before it as the situation: 201, or 200 already_exists when the set held it and it was promoted to golden) or a pair typed by hand (situation, answer, kind), born golden. 409 message_not_sent, message_has_no_situation.
Contract:
- MCP tool
create_agent_example, registry packagemcp.unibox/agent_examples, mountunibox.agent-memory. - Operation
create, response envelopecreate. - Flags: none.
curl --request POST \
--url https://beta.getsales.io/unibox/v1/api/agent-examples \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Team-SID: <api-key>' \
--data '
{
"agent_sid": "<string>",
"message_sid": "<string>",
"situation": "<string>",
"answer": "<string>",
"context_before": "<string>",
"scenario_key": "<string>",
"note": "<string>"
}
'import requests
url = "https://beta.getsales.io/unibox/v1/api/agent-examples"
payload = {
"agent_sid": "<string>",
"message_sid": "<string>",
"situation": "<string>",
"answer": "<string>",
"context_before": "<string>",
"scenario_key": "<string>",
"note": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Team-SID": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'Team-SID': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
agent_sid: '<string>',
message_sid: '<string>',
situation: '<string>',
answer: '<string>',
context_before: '<string>',
scenario_key: '<string>',
note: '<string>'
})
};
fetch('https://beta.getsales.io/unibox/v1/api/agent-examples', 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://beta.getsales.io/unibox/v1/api/agent-examples",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'agent_sid' => '<string>',
'message_sid' => '<string>',
'situation' => '<string>',
'answer' => '<string>',
'context_before' => '<string>',
'scenario_key' => '<string>',
'note' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Team-SID: <api-key>"
],
]);
$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://beta.getsales.io/unibox/v1/api/agent-examples"
payload := strings.NewReader("{\n \"agent_sid\": \"<string>\",\n \"message_sid\": \"<string>\",\n \"situation\": \"<string>\",\n \"answer\": \"<string>\",\n \"context_before\": \"<string>\",\n \"scenario_key\": \"<string>\",\n \"note\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Team-SID", "<api-key>")
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.post("https://beta.getsales.io/unibox/v1/api/agent-examples")
.header("Authorization", "Bearer <token>")
.header("Team-SID", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"agent_sid\": \"<string>\",\n \"message_sid\": \"<string>\",\n \"situation\": \"<string>\",\n \"answer\": \"<string>\",\n \"context_before\": \"<string>\",\n \"scenario_key\": \"<string>\",\n \"note\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://beta.getsales.io/unibox/v1/api/agent-examples")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Team-SID"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"agent_sid\": \"<string>\",\n \"message_sid\": \"<string>\",\n \"situation\": \"<string>\",\n \"answer\": \"<string>\",\n \"context_before\": \"<string>\",\n \"scenario_key\": \"<string>\",\n \"note\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"operation": "create",
"item": {
"sid": "<string>",
"team_sid": "<string>",
"agent_sid": "<string>",
"tier": "golden",
"source": "history",
"kind": "reply",
"situation": "<string>",
"answer": "<string>",
"sender_profile_sid": "<string>",
"conversation_sid": "<string>",
"message_sid": "<string>",
"document_sid": "<string>",
"channel": "linkedin",
"scenario_key": "<string>",
"context_before": "<string>",
"draft_text": "<string>",
"note": "<string>",
"seen_count": 2,
"used_count": 1,
"last_used_at": "<string>",
"answered_at": "<string>",
"embedding_state": "pending",
"embedding_model": "<string>",
"golden_by": {
"actor_type": "user",
"actor_sid": "<string>",
"team_sid": "<string>",
"permissions": {},
"actor_name": "<string>",
"oauth_client_sid": "<string>",
"reason": "<string>",
"cluster_id": 123,
"trace_id": "<string>"
},
"golden_at": "<string>",
"proposed_at": "<string>",
"created_by": {
"actor_type": "user",
"actor_sid": "<string>",
"team_sid": "<string>",
"permissions": {},
"actor_name": "<string>",
"oauth_client_sid": "<string>",
"reason": "<string>",
"cluster_id": 123,
"trace_id": "<string>"
},
"deleted_by": {
"actor_type": "user",
"actor_sid": "<string>",
"team_sid": "<string>",
"permissions": {},
"actor_name": "<string>",
"oauth_client_sid": "<string>",
"reason": "<string>",
"cluster_id": 123,
"trace_id": "<string>"
},
"created_at": "<string>",
"updated_at": "<string>",
"deleted_at": "<string>"
},
"already_exists": true,
"meta": {
"trace_id": "<string>",
"span_id": "<string>",
"timestamp": "<string>",
"duration_ms": 1,
"team_sid": "<string>",
"actor_type": "<string>"
}
}{
"success": false,
"error": {
"code": "validation_failed",
"message": "<string>",
"recoverable": true,
"suggestion": "<string>",
"field_errors": {},
"blockers": [
{
"type": "<string>",
"severity": "hard",
"description": "<string>",
"entity_sid": "<string>",
"resolution": "<string>",
"resolution_hint": "<string>",
"count": 123
}
],
"context": {}
},
"meta": {
"trace_id": "<string>",
"span_id": "<string>",
"timestamp": "<string>",
"duration_ms": 1,
"team_sid": "<string>",
"actor_type": "<string>"
}
}{
"success": false,
"error": {
"code": "validation_failed",
"message": "<string>",
"recoverable": true,
"suggestion": "<string>",
"field_errors": {},
"blockers": [
{
"type": "<string>",
"severity": "hard",
"description": "<string>",
"entity_sid": "<string>",
"resolution": "<string>",
"resolution_hint": "<string>",
"count": 123
}
],
"context": {}
},
"meta": {
"trace_id": "<string>",
"span_id": "<string>",
"timestamp": "<string>",
"duration_ms": 1,
"team_sid": "<string>",
"actor_type": "<string>"
}
}Authorizations
Access token issued by gs.service.id. Its access_identity claim carries team_sid, actor_sid and actor_type, and that team scope is authoritative.
Team scope for tokens that do not carry one. Ignored when the token already names a team.
Body
Request body of create_agent_example.
The AI SDR it is made for (ub_ag_…, block 10, 2026-10-30); left out, the team's default agent.
18^ub_ag_Remember this reply: a message of ours that went out (ub_ms_…) becomes a golden row, the lead's message before it the situation; promoted when held already. 409 message_not_sent, message_has_no_situation. Takes note, not the fields below.
18^ub_ms_A pair typed by hand: what the lead wrote, 1..4000 chars, names as placeholders ({lead}, {lead_company}, {sender}). Required with answer.
1 - 4000The team's answer to it, 1..8000 chars. Required with situation.
1 - 8000reply (default) or followup.
reply, followup Our message before the lead's, max 1500 chars.
1500The channel it answers on; omit for every channel.
linkedin, email The scenario the situation belongs to (interested, objection, ...).
64When the row applies, in a person's words, max 512 chars.
512