# Unibox

> Reply threads from every mailbox, labels and answers. 15 REST endpoints with parameters, permissions and curl examples. Each is also an MCP tool.

Canonical: https://ballast.to/docs/api/unibox

[API reference](https://ballast.to/docs/api)

Reply threads from every mailbox, labels and answers. 15 endpoints, each also a tool for your AI through [MCP](https://ballast.to/docs/mcp). Authentication and errors are on the [overview](https://ballast.to/docs/api#authentication).

## Inbox reply counts by label, mailbox and campaign

GET

/api/v1/unibox/filters

MCP tool

get\_inbox\_filters

Read-only

Returns

- **`all` required number**
- **`unread` required number**
- **`urgent` required number**
- **`needsReply` required number**: Threads where the lead is waiting on an answer
- **`snoozed` required number**
- **`unlabeled` required number**
- **`labels` required object\[\]**
- **`mailboxes` required object\[\]**
- **`campaigns` required object\[\]**
- **`aiLabels` required boolean**: Whether replies are labeled by AI in this workspace

cURL

```
curl https://ballast.to/api/v1/unibox/filters \
  -H "Authorization: Bearer $BALLAST_API_KEY"
```

## Reply threads, newest first

GET

/api/v1/unibox/threads

Filter by unread, label, mailbox or campaign. Page with \`cursor\` from the previous answer.

MCP tool

list\_threads

Read-only

Parameters

- **`view` query · "all" | "unread" | "urgent" | "needs\_reply" | "snoozed"**: urgent = the latest reply asks for an answer today (AI labels on); needs\_reply = the lead wrote last with a real reply, nobody answered from the Unibox yet, and the label isn't negative; snoozed = put away until a time. Every other view leaves snoozed threads out
- **`labelId` query · string**: A label id, or "none" for threads without a label
- **`mailboxId` query · string**
- **`campaignId` query · string**
- **`search` query · string**: Matches the lead's email, name or company, and the subject
- **`cursor` query · string**

Returns

- **`threads` required object\[\]**
- **`nextCursor` required string | null**

cURL

```
curl https://ballast.to/api/v1/unibox/threads \
  -H "Authorization: Bearer $BALLAST_API_KEY"
```

## A thread with every message, the campaign emails and the lead

GET

/api/v1/unibox/threads/{id}

MCP tool

get\_thread

Read-only

Parameters

- **`id` required path · string**

Returns

- **`id` required string**
- **`subject` required string**
- **`snippet` required string**
- **`unread` required boolean**
- **`urgent` required boolean**: The latest reply asks for an answer today (set by AI labels, cleared by answering)
- **`snoozedUntil` required string | null**: Put away until then; it comes back unread
- **`needsReplySince` required string | null**: When the lead's unanswered reply came; null once someone answers from the Unibox
- **`lastMessageAt` required string**
- **`messages` required number**: Replies and answers, campaign emails not counted
- **`label` required object | null**
- **`labelSource` required "ai" | "rules" | "user" | "api" | null**
- **`lead` required object**
- **`mailbox` required object**
- **`campaign` required object | null**
- **`labelReason` required string | null**
- **`urgentReason` required string | null**
- **`items` required object\[\]**
- **`sequence` required object | null**: Where the lead is in the campaign
- **`replyTo` required string**
- **`replySubject` required string**

cURL

```
curl https://ballast.to/api/v1/unibox/threads/<id> \
  -H "Authorization: Bearer $BALLAST_API_KEY"
```

## Mark a thread read or unread

POST

/api/v1/unibox/threads/{id}/read

MCP tool

mark\_thread\_read

Parameters

- **`id` required path · string**
- **`unread` boolean**

Returns

- **`ok` required true**

cURL

```
curl -X POST https://ballast.to/api/v1/unibox/threads/<id>/read \
  -H "Authorization: Bearer $BALLAST_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"unread":true}'
```

## Mark a thread urgent or not

POST

/api/v1/unibox/threads/{id}/urgent

AI labels mark a reply urgent when it asks for an answer today; answering from the Unibox clears it.

MCP tool

set\_thread\_urgent

Parameters

- **`id` required path · string**
- **`urgent` required boolean**

Returns

- **`ok` required true**

cURL

```
curl -X POST https://ballast.to/api/v1/unibox/threads/<id>/urgent \
  -H "Authorization: Bearer $BALLAST_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"urgent":true}'
```

## Set or clear a thread's label

POST

/api/v1/unibox/threads/{id}/label

The lead gets the label for the thread's campaign and the label's triggers run (suppress, stop in campaign, pause campaign, move to list). null clears it.

MCP tool

label\_thread

Parameters

- **`id` required path · string**
- **`labelId` required string | null**

Returns the same fields as A thread with every message, the campaign emails and the lead.

cURL

```
curl -X POST https://ballast.to/api/v1/unibox/threads/<id>/label \
  -H "Authorization: Bearer $BALLAST_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"labelId":{}}'
```

## Answer a thread

POST

/api/v1/unibox/threads/{id}/reply

Sends from the mailbox the conversation is on, in the same thread (In-Reply-To and References), to whoever wrote last. The previous message is quoted below. With delaySeconds it waits that long first (status scheduled) and cancel\_reply can take it back until then; the dashboard waits 30 seconds.

MCP tool

send\_reply

Needs an active plan

MCP asks to confirm

Parameters

- **`id` required path · string**
- **`text` required string**
- **`delaySeconds` integer**: Hold the answer back this long so it can be taken back; 0 sends it now

Returns the same fields as A thread with every message, the campaign emails and the lead.

cURL

```
curl -X POST https://ballast.to/api/v1/unibox/threads/<id>/reply \
  -H "Authorization: Bearer $BALLAST_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"text":"<text>"}'
```

## Take back an answer that hasn't gone yet

POST

/api/v1/unibox/threads/{id}/messages/{messageId}/cancel

Works while an answer sent with delaySeconds is still waiting, for the person who wrote it. Returns its text (without the signature) so it can be edited and sent again.

MCP tool

cancel\_reply

Parameters

- **`id` required path · string**
- **`messageId` required path · string**

Returns

- **`text` required string**

cURL

```
curl -X POST https://ballast.to/api/v1/unibox/threads/<id>/messages/<messageId>/cancel \
  -H "Authorization: Bearer $BALLAST_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

## Draft an answer to the lead's last reply with AI

POST

/api/v1/unibox/threads/{id}/draft

Writes an answer from the offer profile and the conversation, in the lead's language and the sender's tone, without inventing numbers or links. It sends nothing: read it, change it and send it with send\_reply. Counts as one AI draft (none on the workspace's own AI key).

MCP tool

draft\_reply

Needs an active plan

Parameters

- **`id` required path · string**

Returns

- **`text` required string**
- **`problems` required string\[\]**: Checks the draft still fails after one retry; empty when it passes

cURL

```
curl -X POST https://ballast.to/api/v1/unibox/threads/<id>/draft \
  -H "Authorization: Bearer $BALLAST_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

## Snooze a thread until a time, or wake it

POST

/api/v1/unibox/threads/{id}/snooze

A snoozed thread leaves every view but Snoozed and comes back unread at \`until\` (the person who snoozed it gets a notification). A new reply from the lead brings it back sooner. null wakes it now.

MCP tool

snooze\_thread

Parameters

- **`id` required path · string**
- **`until` required string | null**: ISO 8601, a minute to a year from now; null wakes it

Returns

- **`snoozedUntil` required string | null**

cURL

```
curl -X POST https://ballast.to/api/v1/unibox/threads/<id>/snooze \
  -H "Authorization: Bearer $BALLAST_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"until":{}}'
```

## Saved answers for the Unibox

GET

/api/v1/unibox/templates

Shared by the whole workspace. {{variables}} are filled for a thread's lead with fill\_reply\_template.

MCP tool

list\_reply\_templates

Read-only

Returns

- **`templates` required object\[\]**

cURL

```
curl https://ballast.to/api/v1/unibox/templates \
  -H "Authorization: Bearer $BALLAST_API_KEY"
```

## Save an answer as a template

POST

/api/v1/unibox/templates

MCP tool

save\_reply\_template

Parameters

- **`name` required string**
- **`body` required string**

Returns

- **`id` required string**
- **`name` required string**
- **`body` required string**: Plain text with {{variables}}, filled for the thread's lead
- **`updatedAt` required string**

cURL

```
curl -X POST https://ballast.to/api/v1/unibox/templates \
  -H "Authorization: Bearer $BALLAST_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"<name>","body":"<body>"}'
```

## Rename or rewrite a reply template

PATCH

/api/v1/unibox/templates/{templateId}

MCP tool

update\_reply\_template

Parameters

- **`templateId` required path · string**
- **`name` string**
- **`body` string**

Returns the same fields as Save an answer as a template.

cURL

```
curl -X PATCH https://ballast.to/api/v1/unibox/templates/<templateId> \
  -H "Authorization: Bearer $BALLAST_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"<name>","body":"<body>"}'
```

## Delete a reply template

DELETE

/api/v1/unibox/templates/{templateId}

MCP tool

delete\_reply\_template

MCP asks to confirm

Parameters

- **`templateId` required path · string**

Returns

- **`ok` required true**

cURL

```
curl -X DELETE https://ballast.to/api/v1/unibox/templates/<templateId> \
  -H "Authorization: Bearer $BALLAST_API_KEY"
```

## A reply template filled in for a thread's lead

POST

/api/v1/unibox/threads/{id}/template

Variables take the lead's values ({{first\_name|there}} falls back), spintax picks one option, {{signature}} and {{unsubscribe}} stay empty (answers get the mailbox's signature when sent). Sends nothing.

MCP tool

fill\_reply\_template

Parameters

- **`id` required path · string**
- **`templateId` required string**

Returns

- **`text` required string**
- **`missing` required string\[\]**: Variables the lead has no value for and no fallback

cURL

```
curl -X POST https://ballast.to/api/v1/unibox/threads/<id>/template \
  -H "Authorization: Bearer $BALLAST_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"templateId":"<templateId>"}'
```
