curl --request GET \
--url https://beta.getsales.io/unibox/v1/api/agent-runs/{sid} \
--header 'Authorization: Bearer <token>' \
--header 'Team-SID: <api-key>'import requests
url = "https://beta.getsales.io/unibox/v1/api/agent-runs/{sid}"
headers = {
"Authorization": "Bearer <token>",
"Team-SID": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {Authorization: 'Bearer <token>', 'Team-SID': '<api-key>'}
};
fetch('https://beta.getsales.io/unibox/v1/api/agent-runs/{sid}', 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-runs/{sid}",
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>",
"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"
"net/http"
"io"
)
func main() {
url := "https://beta.getsales.io/unibox/v1/api/agent-runs/{sid}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Team-SID", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://beta.getsales.io/unibox/v1/api/agent-runs/{sid}")
.header("Authorization", "Bearer <token>")
.header("Team-SID", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://beta.getsales.io/unibox/v1/api/agent-runs/{sid}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
request["Team-SID"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"operation": "get",
"item": {
"sid": "<string>",
"team_sid": "<string>",
"agent_sid": "<string>",
"conversation_sid": "<string>",
"kind": "classify",
"state": "pending",
"execute_at": "<string>",
"trigger_message_sid": "<string>",
"trigger_signal": "awaiting_reply",
"scenario_key": "<string>",
"confidence": 0.5,
"extracted": {
"return_date": "<string>",
"resume_date": "<string>",
"proposed_time": "<string>",
"referred_contact": {
"name": "<string>",
"role": "<string>",
"email": "<string>",
"ln_nickname": "<string>",
"ln_id": "<string>",
"sn_id": "<string>",
"recruiter_id": "<string>",
"ln_member_id": "<string>"
},
"objection_topic": "<string>",
"objection_kind": "price"
},
"reason": "<string>",
"custom_scenario_sid": "<string>",
"behavior": "answer_interested",
"behavior_version": 2,
"playbook_source": "platform",
"playbook_version": 2,
"plan_sid": "<string>",
"step_id": 2,
"dialog_turn": "reply",
"guidance": "<string>",
"regenerates_message_sid": "<string>",
"llm_log_ref": "<string>",
"error_code": "<string>",
"cost_usd": 123,
"example_sids": [
"<string>"
],
"words_caught": [
{
"never": "<string>",
"times": 123
}
],
"knowledge_miss": "<string>",
"outcome": "written",
"approved_by_user_sid": "<string>",
"test_of_run_sid": "<string>",
"test_sid": "<string>",
"record": {
"read": {},
"gather": {},
"decision": {},
"write": {},
"checks": [
{}
],
"tries": 123,
"spans": [
{}
],
"mix": {},
"made_by": "<string>",
"text": "<string>",
"edit_says": {},
"files": [
{
"answer_sid": "<string>",
"question": "<string>",
"name": "<string>"
}
]
},
"hint_sids": [
"<string>"
],
"created_at": "<string>",
"updated_at": "<string>"
},
"included": {
"hints": [
{
"sid": "<string>",
"kind": "<string>",
"subject": "<string>",
"goes_to": "<string>",
"scenario_key": "<string>",
"status": "<string>",
"count": 2
}
],
"reply": {
"sid": "<string>",
"channel": "<string>",
"body_text": "<string>",
"draft_body_text": "<string>",
"state": "<string>",
"parts": 2,
"sent_at": "<string>",
"created_at": "<string>",
"person_edited_at": "<string>",
"approved_by_user_sid": "<string>"
},
"trigger": {
"sid": "<string>",
"body_text": "<string>",
"sent_at": "<string>"
},
"lead": {
"name": "<string>",
"company": "<string>",
"person_sid": "<string>"
},
"scenario": {
"run_sid": "<string>",
"scenario_key": "<string>",
"confidence": 123
},
"then": {
"kind": "<string>",
"at": "<string>"
},
"made": {
"read": {},
"plan": {},
"gather": {},
"write": {},
"check": {},
"sent": {}
}
},
"includes": [
"<string>"
],
"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>"
}
}Get agent run
One AI SDR run, as the Analyzer’s drawer opens it: include made answers how its reply was made in six steps (read, plan, gather, write, check, sent: what the turn read, decided, wrote and was checked by), beside reply, trigger, lead and scenario. A rewrite’s test run reads running until it is done (its words in record.text) or failed.
Contract:
- MCP tool
get_agent_run, registry packagemcp.unibox/agent_runs, mountunibox.agent. - Operation
get, response envelopeget. - Flags: read only.
curl --request GET \
--url https://beta.getsales.io/unibox/v1/api/agent-runs/{sid} \
--header 'Authorization: Bearer <token>' \
--header 'Team-SID: <api-key>'import requests
url = "https://beta.getsales.io/unibox/v1/api/agent-runs/{sid}"
headers = {
"Authorization": "Bearer <token>",
"Team-SID": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {Authorization: 'Bearer <token>', 'Team-SID': '<api-key>'}
};
fetch('https://beta.getsales.io/unibox/v1/api/agent-runs/{sid}', 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-runs/{sid}",
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>",
"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"
"net/http"
"io"
)
func main() {
url := "https://beta.getsales.io/unibox/v1/api/agent-runs/{sid}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Team-SID", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://beta.getsales.io/unibox/v1/api/agent-runs/{sid}")
.header("Authorization", "Bearer <token>")
.header("Team-SID", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://beta.getsales.io/unibox/v1/api/agent-runs/{sid}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
request["Team-SID"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"operation": "get",
"item": {
"sid": "<string>",
"team_sid": "<string>",
"agent_sid": "<string>",
"conversation_sid": "<string>",
"kind": "classify",
"state": "pending",
"execute_at": "<string>",
"trigger_message_sid": "<string>",
"trigger_signal": "awaiting_reply",
"scenario_key": "<string>",
"confidence": 0.5,
"extracted": {
"return_date": "<string>",
"resume_date": "<string>",
"proposed_time": "<string>",
"referred_contact": {
"name": "<string>",
"role": "<string>",
"email": "<string>",
"ln_nickname": "<string>",
"ln_id": "<string>",
"sn_id": "<string>",
"recruiter_id": "<string>",
"ln_member_id": "<string>"
},
"objection_topic": "<string>",
"objection_kind": "price"
},
"reason": "<string>",
"custom_scenario_sid": "<string>",
"behavior": "answer_interested",
"behavior_version": 2,
"playbook_source": "platform",
"playbook_version": 2,
"plan_sid": "<string>",
"step_id": 2,
"dialog_turn": "reply",
"guidance": "<string>",
"regenerates_message_sid": "<string>",
"llm_log_ref": "<string>",
"error_code": "<string>",
"cost_usd": 123,
"example_sids": [
"<string>"
],
"words_caught": [
{
"never": "<string>",
"times": 123
}
],
"knowledge_miss": "<string>",
"outcome": "written",
"approved_by_user_sid": "<string>",
"test_of_run_sid": "<string>",
"test_sid": "<string>",
"record": {
"read": {},
"gather": {},
"decision": {},
"write": {},
"checks": [
{}
],
"tries": 123,
"spans": [
{}
],
"mix": {},
"made_by": "<string>",
"text": "<string>",
"edit_says": {},
"files": [
{
"answer_sid": "<string>",
"question": "<string>",
"name": "<string>"
}
]
},
"hint_sids": [
"<string>"
],
"created_at": "<string>",
"updated_at": "<string>"
},
"included": {
"hints": [
{
"sid": "<string>",
"kind": "<string>",
"subject": "<string>",
"goes_to": "<string>",
"scenario_key": "<string>",
"status": "<string>",
"count": 2
}
],
"reply": {
"sid": "<string>",
"channel": "<string>",
"body_text": "<string>",
"draft_body_text": "<string>",
"state": "<string>",
"parts": 2,
"sent_at": "<string>",
"created_at": "<string>",
"person_edited_at": "<string>",
"approved_by_user_sid": "<string>"
},
"trigger": {
"sid": "<string>",
"body_text": "<string>",
"sent_at": "<string>"
},
"lead": {
"name": "<string>",
"company": "<string>",
"person_sid": "<string>"
},
"scenario": {
"run_sid": "<string>",
"scenario_key": "<string>",
"confidence": 123
},
"then": {
"kind": "<string>",
"at": "<string>"
},
"made": {
"read": {},
"plan": {},
"gather": {},
"write": {},
"check": {},
"sent": {}
}
},
"includes": [
"<string>"
],
"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.
Path Parameters
The ub_rn_* sid of the row to read.
18^ub_rn_Query Parameters
The search's reply, trigger, lead, scenario and hints, and made: how the reply was made in six steps (read, plan, gather, write, check, sent), from this run, the run that wrote its words and the classify that read the message.
reply, trigger, lead, scenario, hints, then, made