curl --request POST \
--url https://beta.getsales.io/unibox/v1/api/tasks \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Team-SID: <api-key>' \
--data '
{
"title": "<string>",
"body": "<string>",
"conversation_sid": "<string>",
"due_at": "<string>",
"expires_at": "<string>",
"assignee_user_sid": "<string>"
}
'import requests
url = "https://beta.getsales.io/unibox/v1/api/tasks"
payload = {
"title": "<string>",
"body": "<string>",
"conversation_sid": "<string>",
"due_at": "<string>",
"expires_at": "<string>",
"assignee_user_sid": "<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({
title: '<string>',
body: JSON.stringify('<string>'),
conversation_sid: '<string>',
due_at: '<string>',
expires_at: '<string>',
assignee_user_sid: '<string>'
})
};
fetch('https://beta.getsales.io/unibox/v1/api/tasks', 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/tasks",
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([
'title' => '<string>',
'body' => '<string>',
'conversation_sid' => '<string>',
'due_at' => '<string>',
'expires_at' => '<string>',
'assignee_user_sid' => '<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/tasks"
payload := strings.NewReader("{\n \"title\": \"<string>\",\n \"body\": \"<string>\",\n \"conversation_sid\": \"<string>\",\n \"due_at\": \"<string>\",\n \"expires_at\": \"<string>\",\n \"assignee_user_sid\": \"<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/tasks")
.header("Authorization", "Bearer <token>")
.header("Team-SID", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"title\": \"<string>\",\n \"body\": \"<string>\",\n \"conversation_sid\": \"<string>\",\n \"due_at\": \"<string>\",\n \"expires_at\": \"<string>\",\n \"assignee_user_sid\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://beta.getsales.io/unibox/v1/api/tasks")
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 \"title\": \"<string>\",\n \"body\": \"<string>\",\n \"conversation_sid\": \"<string>\",\n \"due_at\": \"<string>\",\n \"expires_at\": \"<string>\",\n \"assignee_user_sid\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"operation": "create",
"item": {
"sid": "<string>",
"team_sid": "<string>",
"title": "<string>",
"state": "open",
"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>"
},
"conversation_sid": "<string>",
"person_sid": "<string>",
"body": "<string>",
"due_at": "<string>",
"assignee_user_sid": "<string>",
"completed_at": "<string>",
"workflow_task_sid": "<string>",
"options": [
{
"id": 2,
"label": "<string>",
"key": "<string>"
}
],
"chosen_option_id": 123,
"expires_at": "<string>",
"source_ref": "<string>",
"kind": "manual",
"draft": "<string>",
"play_ref": {
"play_sid": "<string>",
"play_name": "<string>",
"playtable_sid": "<string>",
"workflow_sid": "<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>"
}
}Create task
Open one manual work item for a human. With conversation_sid the thread records a task_created pill, person_sid is denormed from its primary link, and the thread turns to needs_you when the task is due today, earlier, or undated; without it the task is standalone and shows on no inbox surface yet. An agent caller puts the context bundle in body. No dedup: every call inserts a row. NOT for the agent’s own next move, which is a plan step, and not for automated sequence steps.
Contract:
- MCP tool
create_task, registry packagemcp.unibox/tasks, mountunibox.inbox. - Operation
create, response envelopecreate. - Flags: none.
curl --request POST \
--url https://beta.getsales.io/unibox/v1/api/tasks \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Team-SID: <api-key>' \
--data '
{
"title": "<string>",
"body": "<string>",
"conversation_sid": "<string>",
"due_at": "<string>",
"expires_at": "<string>",
"assignee_user_sid": "<string>"
}
'import requests
url = "https://beta.getsales.io/unibox/v1/api/tasks"
payload = {
"title": "<string>",
"body": "<string>",
"conversation_sid": "<string>",
"due_at": "<string>",
"expires_at": "<string>",
"assignee_user_sid": "<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({
title: '<string>',
body: JSON.stringify('<string>'),
conversation_sid: '<string>',
due_at: '<string>',
expires_at: '<string>',
assignee_user_sid: '<string>'
})
};
fetch('https://beta.getsales.io/unibox/v1/api/tasks', 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/tasks",
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([
'title' => '<string>',
'body' => '<string>',
'conversation_sid' => '<string>',
'due_at' => '<string>',
'expires_at' => '<string>',
'assignee_user_sid' => '<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/tasks"
payload := strings.NewReader("{\n \"title\": \"<string>\",\n \"body\": \"<string>\",\n \"conversation_sid\": \"<string>\",\n \"due_at\": \"<string>\",\n \"expires_at\": \"<string>\",\n \"assignee_user_sid\": \"<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/tasks")
.header("Authorization", "Bearer <token>")
.header("Team-SID", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"title\": \"<string>\",\n \"body\": \"<string>\",\n \"conversation_sid\": \"<string>\",\n \"due_at\": \"<string>\",\n \"expires_at\": \"<string>\",\n \"assignee_user_sid\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://beta.getsales.io/unibox/v1/api/tasks")
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 \"title\": \"<string>\",\n \"body\": \"<string>\",\n \"conversation_sid\": \"<string>\",\n \"due_at\": \"<string>\",\n \"expires_at\": \"<string>\",\n \"assignee_user_sid\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"operation": "create",
"item": {
"sid": "<string>",
"team_sid": "<string>",
"title": "<string>",
"state": "open",
"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>"
},
"conversation_sid": "<string>",
"person_sid": "<string>",
"body": "<string>",
"due_at": "<string>",
"assignee_user_sid": "<string>",
"completed_at": "<string>",
"workflow_task_sid": "<string>",
"options": [
{
"id": 2,
"label": "<string>",
"key": "<string>"
}
],
"chosen_option_id": 123,
"expires_at": "<string>",
"source_ref": "<string>",
"kind": "manual",
"draft": "<string>",
"play_ref": {
"play_sid": "<string>",
"play_name": "<string>",
"playtable_sid": "<string>",
"workflow_sid": "<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_task.
One line stating the work, 1..255 chars. This is what the human reads in the Tasks view.
1 - 255Free text detail. An agent caller puts the context bundle here: reason, the qualification facts, the trigger - enough to act without re-reading the thread.
Thread to anchor the task to (ub_cv_…). Omit for a standalone task, which renders on no inbox surface yet.
18^ub_cv_ISO 8601 UTC deadline; omit for undated. Due today or earlier (and undated too) surfaces the thread as needs_you right away.
ISO 8601 UTC, after now (422 otherwise): still open then, the sweep cancels the task and it reads as expired. Omit for a month ahead (the default, as for every task the product opens); null for a task that never expires.
User to own the work (us_mb_…, 18 chars). No server-side default: omit it and the task is unassigned.
18