URL: /code/apps/mailboxes/warm · Id: `page:/code/apps/mailboxes/warm`

# Mailbox.warm

> Ramps a new Mailbox from 5 sends a day to 25 over 14 days, before any cold email leaves it.

POST https://api.sb/&#123;your-domain&#125;/mailboxes/&#123;mailbox&#125;/warm

Ramps a new [Mailbox](https://startupbuilder.dev/business/nouns/mailbox) from 5 sends a day to 25 over 14 days, before any cold email leaves it.

- **Action class:** None
- **Approval:** Runs on its own
- **Emits:** `Mailbox.warmed`
- **Price:** Free

```text title="Run it · Ask"
Warm up dana@tryleaseline.app to 25 sends a day before any cold email leaves it.
```

```ts title="Run it · SDK"
import { $ } from 'startup-builder'

const result = await $.try.Mailbox.warm({ mailbox: 'https://api.sb/leaseline.app/mailboxes/mailbox_Tq3wE7rY1u', cap: 25 })
```

```json title="Run it · Response"
{
  "api": "https://api.sb/leaseline.app",
  "mailbox": {
    "$id": "https://api.sb/leaseline.app/mailboxes/mailbox_Tq3wE7rY1u",
    "$type": "Mailbox",
    "address": "dana@tryleaseline.app",
    "state": "warming",
    "capToday": 5
  },
  "action": {
    "operation": "Mailbox.warm",
    "mode": "try",
    "status": "done"
  }
}
```

Its Inputs, Outputs, Effects and guards quote [the hub’s `Mailbox.warm`](https://startupbuilder.dev/business/nouns/mailbox/warm); this page adds what each Venue honors, its limits and a worked call. It is one of the [Verbs](https://startupbuilder.dev/business/nouns/verb) of [Mailboxes](/code/apps/mailboxes#verbs).

## Inputs
| Name | Type | Default | Meaning |
| --- | --- | --- | --- |
| `mailbox` | `Mailbox` | Required | The new Mailbox. |
| `cap` | `integer` | Required | The daily sends it ramps to. |

## Outputs
| Field | Type | What `null` means |
| --- | --- | --- |
| `mailbox` | `Mailbox` | Never null: the Mailbox, warming. |

## Effects
**Action class**

None: no approval rule names it, so it runs within its seat’s Permissions and Limits

**Modes**

- `try`: Runs every check and returns the record as it would be; nothing is stored.
- `send`: Returns a pending Action at once; `Mailbox.warmed` fires when it is done.
- `do`: Waits for the Action to finish and returns the record.

**Idempotency**

Only with a key: the same `Idempotency-Key` and input return the first Action, and the same key with other input returns `409`.

**Saved or shared**

Raises the daily cap on a schedule while the spam rate stays under 0.1 percent.

**Emits**

`Mailbox.warmed` with `{ mailbox }`

**Performed by**

[Customer lead](https://startupbuilder.dev/agents/customer/customer-lead)

**Price**

Free on your own account: the platform charges nothing for the call.

**Limits**

Fourteen days from 5 sends a day to 25; no cold email leaves a Mailbox still warming.

## On each Venue
It acts on your own records and reaches no Venue, so every account answers the same way.

## What try does
Runs every check the call meets and returns the record as it would be; nothing is stored, sent or posted.

## Refuses when
The hub sets no guard of its own on this call: it refuses only on the shared checks every write meets (a missing record, a Permission the seat lacks).

## When it waits
Returns in one response; nothing waits.

## Example
In `send` mode the call returns its pending Action at once, and `Mailbox.warmed` delivers the result.

**Ask**

```text
Warm up dana@tryleaseline.app to 25 sends a day before any cold email
leaves it.
```

**API**

```bash
curl -X POST "https://api.sb/leaseline.app/mailboxes/mailbox_Tq3wE7rY1u/warm?mode=send" \
  -H "Authorization: Bearer $SB_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "cap": 25
}'
```

**CLI**

```bash
npx startup-builder do Mailbox.warm --send --data '{
  "cap": 25
}'
```

`--send` returns the pending Action at once.

**MCP**

```json
{
  "name": "do",
  "arguments": {
    "mode": "send",
    "code": "return await $.Mailbox.warm({ cap: 25 })"
  }
}
```

**SDK**

```ts
import { $ } from 'startup-builder'

const result = await $.send.Mailbox.warm({
  mailbox: 'https://api.sb/leaseline.app/mailboxes/mailbox_Tq3wE7rY1u',
  cap: 25,
})
```


```json title="Response, in send mode"
{
  "mode": "send",
  "action": {
    "$id": "https://api.sb/leaseline.app/actions/action_Sd3kQ9vT2w",
    "operation": "Mailbox.warm",
    "status": "pending",
    "reason": "running"
  }
}
```

To retry, send the same `Idempotency-Key`: the retry returns the first answer for $0. A new key reads again.

## Used by
- **Jobs:** [Reach out](/capabilities/reach-out)

## Related
[`Message.broadcast`](/code/apps/mailboxes/broadcast) · [`Message.schedule`](/code/apps/mailboxes/schedule) · [`Mailbox.rest`](/code/apps/mailboxes/rest) · [`Domain.authenticate`](/code/apps/mailboxes/authenticate) · [`Mailbox.retire`](/code/apps/mailboxes/retire) · [`Contact.suppress`](/code/apps/mailboxes/suppress) · [`Contact.unsubscribe`](/code/apps/mailboxes/unsubscribe) · [`Consent.withdraw`](/code/apps/mailboxes/withdraw)