Skip to main content
agent-mailboxes-self is the owner-facing surface for managing the email inbox attached to your own genie. Every action is scoped to the caller’s genie — you can only manage mailboxes you own.
To read the current mailbox state you can use either this resource’s get action (documented below) or the genies resource (get or all action), which includes a mailbox field in every full genie response.

Get mailbox

Returns the current mailbox record for a genie you own. Use this to check provisioning status, retrieve the mailbox email address, or detect errors after provisioning.
string
required
Must be "agent-mailboxes-self"
string
required
Must be "get"
object
required
boolean
Whether the request succeeded.
object
The mailbox record.

Provision mailbox

Creates an email inbox for a genie that doesn’t have one yet. If a desiredLocalpart is provided and the genie already has a mailbox, the existing inbox is deprovisioned and a new one is created at the requested address.
string
required
Must be "agent-mailboxes-self"
string
required
Must be "provision"
object
required
boolean
Whether the request succeeded.
object
The provisioned mailbox record.
When desiredLocalpart is provided for a genie that already has a mailbox, the existing inbox is permanently deprovisioned before the new one is created. Any emails in the old inbox will be lost.

Update mailbox

Suspends or resumes a genie’s mailbox, updates its escalation address, and/or toggles test mode. At least one of action, escalation_address, or test_mode must be provided.
string
required
Must be "agent-mailboxes-self"
string
required
Must be "update"
object
required
boolean
object

Delete mailbox

Permanently removes a genie’s email inbox — deletes the local record and fully removes the account from the mail system. After deletion, the genie will no longer receive email until a new mailbox is provisioned.
string
required
Must be "agent-mailboxes-self"
string
required
Must be "delete"
object
required
boolean
object
This action fully removes the mailbox from the mail system and deletes all associated records. The action is idempotent — a 404 from the mail system is treated as success. The genie itself is not affected.

Send test email

Sends a test email into a genie’s mailbox to verify it is provisioned and receiving correctly.
string
required
Must be "agent-mailboxes-self"
string
required
Must be "test"
object
required
boolean
object
Result from the mail system’s test endpoint. Shape may vary; a successful response indicates the test email was accepted for delivery.

List email conversations

Lists email conversation threads for a genie’s mailbox, fetched from the mail system. Returns the genie owner’s threads — callers must own the specified genie.
string
required
Must be "agent-mailboxes-self"
string
required
Must be "conversations"
object
required
boolean
object
Conversation threads and pagination cursor. Shape is determined by the mail system response.

Get email conversation detail

Returns the full message and decision history for a single email conversation thread from the mail system.
string
required
Must be "agent-mailboxes-self"
string
required
Must be "conversation-detail"
object
required
boolean
object
Full conversation thread with messages and decision history.

Reply to a conversation

Sends a human-written reply on an email conversation thread via the genie’s mailbox. The genie’s automated handling is paused for that thread after a reply is sent, so the human can take over without the genie also responding.
string
required
Must be "agent-mailboxes-self"
string
required
Must be "reply"
object
required
boolean
object
Result from the mail system’s reply endpoint. Shape may vary; a successful response indicates the reply was accepted for delivery.
Sending a reply automatically pauses the genie’s handling of that thread. The genie will not respond further unless the thread is manually resumed.

Sync mailbox status

Inbound callback from the mail system to mirror a status, address, or error change into the local mailbox record. Writes locally only — it never calls back out to the mail system. At least one of status, email_address, or last_error must be provided.
string
required
Must be "agent-mailboxes-self"
string
required
Must be "sync"
object
required
boolean

Check mail credentials (admin only)

Verifies that your team’s stored mail service credentials are still valid and active. Use this to diagnose email delivery failures — for example, when the mail service returns authentication errors and you need to confirm whether the credentials have been rotated or revoked.
This action requires admin privileges. Non-admin callers receive a FORBIDDEN error.
string
required
Must be "agent-mailboxes-self"
string
required
Must be "check-tenant-key"
boolean
Whether the request succeeded.
object

Re-provision mail credentials (admin only)

Reissues your team’s mail service credentials, replacing the current key with a fresh one. Use this when check-tenant-key reports that credentials are invalid or revoked.
This action requires admin privileges. Non-admin callers receive a FORBIDDEN error.
Re-provisioning invalidates the current credentials immediately. Any in-flight requests using the old key will fail until they re-authenticate. Only call this when check-tenant-key confirms the existing credentials are no longer valid.
string
required
Must be "agent-mailboxes-self"
string
required
Must be "reprovision-tenant-key"
boolean
Whether the request succeeded.
object

Error codes