Create agent
curl --request POST \
--url https://beta.getsales.io/unibox/v1/api/agents \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Team-SID: <api-key>' \
--data '
{
"name": "<string>",
"website": "<string>"
}
'import requests
url = "https://beta.getsales.io/unibox/v1/api/agents"
payload = {
"name": "<string>",
"website": "<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({name: '<string>', website: '<string>'})
};
fetch('https://beta.getsales.io/unibox/v1/api/agents', 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/agents",
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([
'name' => '<string>',
'website' => '<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/agents"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"website\": \"<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/agents")
.header("Authorization", "Bearer <token>")
.header("Team-SID", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"website\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://beta.getsales.io/unibox/v1/api/agents")
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 \"name\": \"<string>\",\n \"website\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"operation": "create",
"item": {
"sid": "<string>",
"team_sid": "<string>",
"state": "setup_required",
"mode": "copilot",
"name": "<string>",
"is_default": true,
"knowledge": {
"booking_mode": "link",
"source_urls": [
"<string>"
],
"interview_transcript_ref": "<string>"
},
"brief": {
"text": "<string>",
"compact": "<string>",
"digest": "<string>"
},
"settings": {
"max_auto_messages_per_conversation": 10,
"followups_for_synced_threads": true,
"escalation_triggers": [
"pricing_question"
],
"classification_merge_seconds": 305,
"messages_recency_days": 183,
"custom_escalation_triggers": [
"<string>"
],
"after_person_message": "plan_followups",
"person_followups_count": 2,
"person_followups_every_days": 15,
"person_followups_then": "task",
"reply_split": "one_message",
"credits_cap_per_conversation": 500,
"handoff_notify_email": true,
"reply_language": "lead",
"learning": {
"from_history": true,
"from_own_sends": true,
"from_approved_edits": true,
"edits_join": "after_ok"
}
},
"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>"
},
"rules": {
"reply_words": {
"linkedin": {
"min": 102,
"max": 102
},
"email": {
"min": 102,
"max": 102
}
},
"meeting_ask": "suggest_call_link_on_request",
"confirm_named_time": true,
"answer_then_call": true,
"acknowledge_low_signal": true,
"reply_delay_minutes": {
"min": 30,
"max": 30
},
"quiet_hours": {
"from": "<string>",
"to": "<string>"
},
"weekends": true,
"followups": 3,
"followup_days": 7,
"something_new": true,
"checks": {
"unfilled_fields": true,
"same_text_twice": true,
"link_before_reply": true,
"stop_words": true,
"long_dashes": true,
"template_after_reply": true,
"signature_block": true
}
},
"hosts": [
{
"id": "<string>",
"kind": "sender",
"member_sid": "<string>",
"name": "<string>",
"link": "<string>",
"introduced_as": "<string>",
"scenario_keys": [
"<string>"
]
}
],
"goal": {
"kind": "call",
"words": "<string>"
},
"golden_set": {
"words": [
{
"never": "<string>",
"instead": "<string>"
}
],
"voice": {
"summary": "<string>",
"length": "<string>",
"questions": "<string>",
"register": "<string>",
"sign_off": "<string>",
"formed_from": 123,
"formed_at": "<string>",
"model": "<string>",
"pinned": [
"<string>"
]
}
},
"setup": {
"skipped": [
"brief"
]
},
"llm_config": {
"classification_model": "<string>",
"agent_model": "<string>"
},
"setup_completed_at": "<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>"
}
}agents
Create agent
Another AI SDR for the team (at most 20): a draft like the first (setup_required, co-pilot, an empty Knowledge and Golden set, the platform scenarios at their defaults) with a name; with website its Brief is drafted from the site (422 website_invalid or website_unreadable, 503 composer_unavailable), else the template. Then update_agent (brief.text, state on), create_agent_answer and create_agent_source with its sid. Not the default until update_agent {is_default: true}.
Contract:
- MCP tool `create_agent`, registry package `mcp.unibox/agents`, mount `unibox.agent`.
- Operation `create`, response envelope `create`.
- Flags: none.
POST
/
api
/
agents
Create agent
curl --request POST \
--url https://beta.getsales.io/unibox/v1/api/agents \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Team-SID: <api-key>' \
--data '
{
"name": "<string>",
"website": "<string>"
}
'import requests
url = "https://beta.getsales.io/unibox/v1/api/agents"
payload = {
"name": "<string>",
"website": "<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({name: '<string>', website: '<string>'})
};
fetch('https://beta.getsales.io/unibox/v1/api/agents', 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/agents",
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([
'name' => '<string>',
'website' => '<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/agents"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"website\": \"<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/agents")
.header("Authorization", "Bearer <token>")
.header("Team-SID", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"website\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://beta.getsales.io/unibox/v1/api/agents")
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 \"name\": \"<string>\",\n \"website\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"operation": "create",
"item": {
"sid": "<string>",
"team_sid": "<string>",
"state": "setup_required",
"mode": "copilot",
"name": "<string>",
"is_default": true,
"knowledge": {
"booking_mode": "link",
"source_urls": [
"<string>"
],
"interview_transcript_ref": "<string>"
},
"brief": {
"text": "<string>",
"compact": "<string>",
"digest": "<string>"
},
"settings": {
"max_auto_messages_per_conversation": 10,
"followups_for_synced_threads": true,
"escalation_triggers": [
"pricing_question"
],
"classification_merge_seconds": 305,
"messages_recency_days": 183,
"custom_escalation_triggers": [
"<string>"
],
"after_person_message": "plan_followups",
"person_followups_count": 2,
"person_followups_every_days": 15,
"person_followups_then": "task",
"reply_split": "one_message",
"credits_cap_per_conversation": 500,
"handoff_notify_email": true,
"reply_language": "lead",
"learning": {
"from_history": true,
"from_own_sends": true,
"from_approved_edits": true,
"edits_join": "after_ok"
}
},
"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>"
},
"rules": {
"reply_words": {
"linkedin": {
"min": 102,
"max": 102
},
"email": {
"min": 102,
"max": 102
}
},
"meeting_ask": "suggest_call_link_on_request",
"confirm_named_time": true,
"answer_then_call": true,
"acknowledge_low_signal": true,
"reply_delay_minutes": {
"min": 30,
"max": 30
},
"quiet_hours": {
"from": "<string>",
"to": "<string>"
},
"weekends": true,
"followups": 3,
"followup_days": 7,
"something_new": true,
"checks": {
"unfilled_fields": true,
"same_text_twice": true,
"link_before_reply": true,
"stop_words": true,
"long_dashes": true,
"template_after_reply": true,
"signature_block": true
}
},
"hosts": [
{
"id": "<string>",
"kind": "sender",
"member_sid": "<string>",
"name": "<string>",
"link": "<string>",
"introduced_as": "<string>",
"scenario_keys": [
"<string>"
]
}
],
"goal": {
"kind": "call",
"words": "<string>"
},
"golden_set": {
"words": [
{
"never": "<string>",
"instead": "<string>"
}
],
"voice": {
"summary": "<string>",
"length": "<string>",
"questions": "<string>",
"register": "<string>",
"sign_off": "<string>",
"formed_from": 123,
"formed_at": "<string>",
"model": "<string>",
"pinned": [
"<string>"
]
}
},
"setup": {
"skipped": [
"brief"
]
},
"llm_config": {
"classification_model": "<string>",
"agent_model": "<string>"
},
"setup_completed_at": "<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
application/json
Request body of create_agent.
What the team calls it ("AI SDR · LinkedIn API", "Agency closer"), 1..255 chars.
Required string length:
1 - 255The team's website: its Brief is drafted from the site the way the setup drafts it (read_agent_website), with the address in knowledge.source_urls; left out, the Brief is the template with its slots.
Required string length:
1 - 2048