Skip to main content
A mailbox is a project-level email address. You can send email from it using the Mailbox REST API, route incoming mail to a room and queue, or do both. Use mailboxes when an agent listens on a mail: channel, or when you want inbound email to land in a queue that something in the room already consumes.

Create a mailbox

This creates a project mailbox and routes messages sent to support@mail.meshagent.com into the support-inbox queue in the customer-support room. To create a send-only mailbox, leave out the room and queue. In Studio, leave Route incoming email to a room unchecked.
Deleting an inbound room clears the route. You can still send from the mailbox or attach it to another room.

Inspect and manage mailboxes

Send email

Use --request-file message.json for attachments, BCC, or per-message subjects. The CLI prints the submission ID, message IDs, and recipient counts.

Inspect outbound delivery status

When Mailgun delivery tracking is enabled for the deployment, inspect each recipient’s current status and provider event timeline:
The delivery list is newest submission first. A submission with multiple recipients has one delivery row per recipient because their outcomes and retry timelines can differ. Use --status, --recipient, or --message-id to narrow the list, and use --output json when calling the commands from a script:

Delivery statuses and events

A delivery is the current rollup for one recipient. Its status is one of: The delivery also contains the latest provider details, including attempt_count, SMTP response codes, failure reason and description, MX host, and TLS and certificate-verification results when the provider supplies them. Delivery events are the chronological history behind that current status. The API normalizes provider notifications into these event types: Each event includes occurred_at and received_at, its resulting status, and the provider and provider event ID. When available, it also includes the attempt number, SMTP and enhanced SMTP codes, reason, description, MX host, TLS use, and certificate-verification result. Events are returned oldest first, ordered by occurred_at and then event ID. In Studio, open the mailbox options menu and select Deliveries…. Select a delivery row to open its event timeline.

Permissions

  • To create, update, or delete a mailbox for a room, you need permission to administer that room.
  • To list mailboxes across the whole project, you need the project’s mailbox inventory permission.
  • A mailbox creator receives the Owner role. Owners can send and manage mailbox access. Sender grants permission to send from that one address. Project administrators can manage mailbox access, including for mailboxes created before these roles were introduced.
  • OAuth callers also need the mailboxes:send scope for the project. Sign in again if you use an older CLI authorization that lacks this scope.
In Studio, choose Permissions… from the mailbox options menu. In Accounts, assign a mailbox grant from the principal’s permissions. In the CLI, use the mailbox ID from meshagent mailbox get ADDRESS:
  • To read delivery status as a user, you need the OAuth scope mailboxes:read and the project mailbox_inventory relation. Room membership and room read access do not grant delivery visibility. Project API keys retain project-wide access.

Where to manage mailboxes

  • Use MeshAgent Studio for the main UI flow.
  • Use the CLI when you want quick setup or scripting.
  • Use the REST API when you need programmatic mailbox management.