Skip to content

Mailbox

A Mailbox is an email Channel at a Domain, held by a Startup, a Role, or a Worker, so every Agent has its own.

Properties

PropertyTypeRequiredDescription
addressemailrequiredThe email address.
streamstringrequiredWhat it sends: receipts and resets, broadcasts, or cold outbound; one stream per Mailbox.
dailyCapintegerSends allowed today, raised by the warmup ramp and cut by the brakes.
statusstringWhere the Mailbox stands in its warmup and rest cycle.
tenantTenantThe Tenant it sends for, at a Domain that Tenant’s Customer holds; replies land in the Tenant’s Threads.
Inherited from Channel: 5 properties
PropertyTypeRequiredDescription
mediumstringrequiredThe platform type, such as email, sms, or chat.
organizationOrganizationThe outside Organization the Channel is shared with; its new Messages open Conversations for that Customer.
externalbooleanTrue when people from another Organization post in it, as in a channel two companies share.
areaCodestringFor an sms Channel, the phone area code its number is drawn from, such as 512.
numberstringFor an sms Channel, its phone number in international form, assigned when it is created.

Object

JSON
{
  "$id": "https://api.sb/tutorloop.com/mailboxes/mailbox_1",
  "$type": "Mailbox",
  "medium": "email",
  "organization": "organization_1",
  "external": true,
  "areaCode": "Example area code",
  "number": "Example number",
  "address": "malik@tutorloop.com",
  "stream": "transactional",
  "dailyCap": 1,
  "status": "warming",
  "tenant": "tenant_1"
}

Relationships

Lifecycle

Mailbox lifecycle: warming, active, resting, retired (ends)warming → active: Mailbox.warmwarming → retired: Mailbox.retireactive → resting: Mailbox.restactive → retired: Mailbox.retireresting → active: Mailbox.warmresting → retired: Mailbox.retirewarmingactiverestingretired
StateMeaningMoves to
warming (first)Its daily sends ramp toward its cap over two to four weeks.active by Mailbox.warm; retired by Mailbox.retire
activeIt sends up to its cap while its readings stay inside their brakes.resting by Mailbox.rest; retired by Mailbox.retire
restingA brake fired, so it sends nothing until the reading clears.active by Mailbox.warm; retired by Mailbox.retire
retiredIt sends nothing again; its address, Messages and sending history stay.None: it ends here.

Verbs

  1. createCreates a Mailbox.
    POST /{namespace}/mailboxesdoMailbox.created
  2. getReturns one Mailbox by id.
    GET /{namespace}/mailboxes/{id}readNo Event
  3. listReturns Mailboxes, newest first, one page at a time.
    GET /{namespace}/mailboxesreadNo Event
  4. updateChanges the given properties of a Mailbox.
    PATCH /{namespace}/mailboxes/{id}doMailbox.updated
  5. restRest pauses a Mailbox’s sending when a brake fires and resumes it when the reading clears.
    POST /{namespace}/mailboxes/{mailbox}/restdoMailbox.rested
  6. retireRetire stops a Mailbox for good and keeps its address, Messages and sending history.
    POST /{namespace}/mailboxes/{mailbox}/retiredoMailbox.retired
  7. warmWarm ramps a new Mailbox from a few sends a day to its cap over two to four weeks.
    POST /{namespace}/mailboxes/{mailbox}/warmdoMailbox.warmed

A Mailbox is never deleted: it ends by Mailbox.retire, and its records stay.

Permissions

Which Access level may call each Verb. One-way Verbs wait their delay window.

Operationowneradminmemberviewer
Mailbox.createYesYesYesNo
Mailbox.getYesYesYesYes
Mailbox.listYesYesYesYes
Mailbox.updateYesYesYesNo
Mailbox.restYesYesYesNo
Mailbox.retireYesNoNoNo
Mailbox.warmYesYesYesNo

Call it

Text
Warm my mailbox.

Example

susan@lessonloft.app is the Mailbox of Susan, the Customer Lead of a lesson-booking App. Teachers' replies to her land there, not in a shared inbox.