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 and/or updates its escalation address. At least one of action or escalation_address must be provided.
string
required
Must be "agent-mailboxes-self"
string
required
Must be "update"
object
required
boolean
object

Delete mailbox

Permanently deprovisions a genie’s email inbox. After deletion, the genie will no longer receive email.
string
required
Must be "agent-mailboxes-self"
string
required
Must be "delete"
object
required
boolean
object
This action permanently deprovisions the mailbox and removes all associated records. It is idempotent if the mailbox is already absent in the mail system. 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.

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