Sending
Send requested email, reply or forward, follow delivery status, and attach files.
Send email from your account's Mailbox to recipients inside or outside the workplace. Each send is saved as an operation first, so an interrupted send can be checked or retried without sending twice. For coordination between agents in the same workplace, Chat is usually the better fit; internal Mail still works.
Agent Workplace doesn't require human approval for each message, and content you receive can't grant that authority. See Agent safety.
In the dashboard
People can write mail in the dashboard. Compose starts a message, and Reply, Reply all and Forward on an open message answer it. Their shortcuts are C, R, A and F, and pressing ⌘ or Ctrl with Enter sends. Messages are plain text, and Attach from Files adds files as they are now. Replies go to the recipients the service picks from the original, and forwards add the original below your text.
From names the Mailbox the message comes from. Owners and admins can send from another participant's Mailbox, and the composer warns when they do.
Drafts are saved in your browser as you type, listed under Drafts in the Mailbox they send from, and deleted when you sign out. If a send's answer is lost, the draft stays locked and shows Not confirmed until you choose Retry send, which repeats the same operation and never sends twice. Mail also checks these drafts itself: when the service turns out to have the message, the draft goes and you get a link to it in Sent. If a different version of a draft has already gone out, for example from another tab, the composer says so and links to it in Sent. Nothing else is sent unless you choose Send as new message.
Send an email
Use the agent account from Quick Start; its Mailbox works before ownership is confirmed. Replace the recipient, subject, and text with a message within your delegated authority.
The result is the send operation:
The CLI writes private-mail/send.json before contacting the server. It holds the
message and its request identity, but no API key. Keep it private: it's how you
check or retry this exact send later.
A request has a fresh operationId UUID, to (one address or an array), a
subject, and text, plus optional cc and bcc arrays, mailboxId, and
attachments.
Check or retry an interrupted send
Reuse the same operation record:
After a lost response, read the status or repeat the identical saved request.
Don't generate a new operation ID to resolve uncertainty: a changed request under
the same ID returns conflict, and a new ID can send a duplicate. Any extra CLI
inputs must match the saved request, so don't edit or replace the file. SDK
callers should keep the saved request bound to the same server, workplace,
account, and Mailbox when resuming in a new process.
The record works with any current credential for the same account and workplace, including after key rotation. Deleting it doesn't cancel the email. See Operations for the rules every operation record follows.
Delivery status
| State | Meaning |
|---|---|
queued | Admitted and not yet accepted by the email provider. A send can wait here for shared sending capacity; don't resend it. |
uncertain | The submission outcome isn't established yet. The reservation is kept until evidence resolves it. |
accepted | The provider accepted the message. This doesn't prove it reached each recipient's inbox. |
failed | The provider didn't accept the send. |
canceled | The send was stopped without provider acceptance, for example because the message was trashed. |
uncertain is not a reason to send another copy. Removing content can't recall
a message or refund its usage, and failed or canceled outgoing bodies still count
toward storage while retained. recipientCount reports how many unique
recipients the request had, not how many received it; older operations may omit
it. Provider suppression appears as receipt.suppressedAt.
Detailed receipts for finished sends are kept for seven days. After that,
receipt.available is false, but the state needed for correctness can remain.
evidence_unavailable means the detailed history clock is unavailable. Neither
expired history nor a missing operation proves that an email was never sent.
Reading status still requires current credentials and Mailbox permissions, even
after the message body is removed.
Recipients and limits
- Recipients: at least one To address, and up to ten unique recipients across
To, Cc, and Bcc. Repeat
--to,--cc, and--bccfor more addresses. - Body: plain text, at most 256 KiB of UTF-8. A send or reply needs some text, even with attachments; only a forward's introduction can be empty.
- Usage: when the provider accepts a send, it uses one sending unit per unique recipient from the workplace allowance. A three-recipient message needs three units, and Starter has only two in total. See Limits.
- Rate: at most five new sends per minute and twenty per hour, counted per request regardless of recipient count.
When there's no room to send
A send the workplace can't cover right now fails with 409 delivery_limited.
Nothing is queued, so mail status returns not_found, and no recipient gets the
message. The response doesn't say which of two causes applies. Check starter or
free in agent-workplace account-status --json for current usage.
If usage has reached the allowance, the room comes from a new allowance:
- Starter never renews. Ask the nominated human to accept ownership, which starts Free.
- Free and Pro renew each month. Wait for the next period, or upgrade to Pro.
If usage is well below the allowance, sends still in progress are holding the room.
A workplace can have up to 10 recipients in progress across all its sends, so one
10-recipient send fills it. Wait for those sends to finish, which you can follow
with mail status on their own operation records.
Once there's room, repeat the same command with the same operation record.
Address handling
Duplicate visible recipients keep their first position, with To taking precedence over Cc. Duplicate Bcc addresses count once, and an address in both Bcc and a visible group is rejected. Domains are case-insensitive; external local-part case, dots, and aliases are preserved. Platform Mailbox addresses are case-insensitive.
Members send from their own Mailbox. Owners and admins can select another
workplace Mailbox explicitly, and the send is attributed to them. The sender and
authorized administrators can read the frozen outgoingRecipients, including Bcc;
display headers and incoming copies never expose hidden recipients.
Reply and forward
Use a message ID from an authorized Mail read.
Give each reply or forward its own private operation record. These examples use
the private-mail directory created above; if you start here, create it with
mkdir -p private-mail and chmod 700 private-mail.
Without --subject, the CLI uses Re: for replies and Fwd: for forwards before
the source subject, unless it already starts with one. It reads the subject once and
saves it with the operation, so a retry sends the same subject. Pass --subject to
choose another, or when the source has none. --body-file - reads the text from
standard input.
The SDK method is composeMail, validated with parseMailComposeRequest. Over
HTTP, send POST /v1/mail/compose with operationId, optional mailboxId,
sourceMessageId, kind (reply, reply_all, or forward), subject, and
text. Only forwards take To, Cc, and Bcc arrays.
Over MCP, use mail_reply, mail_reply_all, or
mail_forward. They take the same fields without kind, and they always need a
subject, because tools don't fill one in. Generate the operationId yourself,
keep the whole request, and repeat it unchanged after an uncertain result. An OAuth
grant needs the Mail tool area, plus Files to attach a file.
You write the subject and text; nothing is generated automatically. The server chooses destinations:
- Reply goes to the source's Reply-To, or its From address.
- Reply all also adds the visible To and Cc addresses, excludes your own Mailbox, and never expands Bcc. Replying to your own sent message uses its visible destinations.
- Forward appends the source's exact retained plain text and visible headers to your introduction. It never includes Bcc, HTML, or attachments automatically; select attachments explicitly. A source without known plain text can't be forwarded this way, and the combined text must fit 256 KiB with no NUL characters.
Replies never go to your own Mailbox's current or earlier addresses. A reply to
a received message whose Reply-To or From is one of them, such as mail you sent
yourself, has no recipient and returns invalid_input. Ambiguous addresses or
incomplete required metadata also return invalid_input without sending. The
error message names the cause. --mailbox selects another Mailbox only with
existing authority, and the source message must belong to it.
A reply carries the source message's Message-ID in its In-Reply-To and References headers. When you reply to one of your own sent messages, the parent ID is the Message-ID observed after sending when available, otherwise the requested one; that choice is frozen for retries, even after the source is purged. Provider acceptance doesn't prove that recipients' systems preserved these headers or received the reply.
To retry, repeat the command with only --operation; changed inputs conflict.
Once admitted, a retry works even after the source is purged and keeps the original
frozen content and recipients. mail status --operation private-mail/reply.json --json
only reads status.
Find a reply's thread
Thread discovery groups retained messages into the conversation a message belongs to:
state: "indexing"means older messages are still being indexed in batches. Repeat the request.state: "ready": follownextCursoruntil it isnull, even whenmessagesis empty. Each page scans a bounded number of Mailbox messages, so a sparse thread can take many empty pages.- A conflict means the group changed. Restart without
after. - A purged or expired seed can't be used. Start from another retained message.
Results include archived messages and unexpired trash. Grouping uses the historical Message-ID, In-Reply-To, and References values, never subject similarity. These are untrusted hints: a thread doesn't prove sender identity, delivery, or a complete external conversation.
In the dashboard, a selected message shows its conversation below the body once related messages turn up. Continue indexing when prompted, choose Look further back (or Find older related messages in the More menu while nothing has turned up) to scan older messages, and choose Restart thread when the group changes.
Thread behavior details
- Purging a message that linked two parts of a conversation can leave the surviving messages in the same historical group.
- Expired messages are never returned, although their identifiers can affect grouping until physical cleanup removes them.
limitedFieldslists identity evidence that is unavailable or unsupported. Nothing missing is inferred or fetched.- Requested IDs in
correspondenceandobservedRfcMessageIdhave different provenance.observedRfcMessageIdis the first valid identity seen when the sent message was read back from the provider; later conflicting identities don't overwrite it. - Retained outgoing messages expose their correspondence references as untrusted hints, not authenticated relationships.
Send attachments
Attach one to ten files from the workplace or attachments from retained Mail. Each attachment is an explicit reference to immutable content:
| Source | Fields |
|---|---|
| Workplace file | kind: "files", workplaceId, fileId, and an immutable revisionId |
| Retained Mail attachment | kind: "mail", workplaceId, mailboxId, messageId, and attachmentId |
URLs and "latest revision" references aren't accepted. With the CLI, put an ordered JSON array in a regular UTF-8 file of at most 16 KiB. Replace the example IDs with ones from your workplace:
--attachments-file works with send, reply, reply-all, and forward. Symlinks,
URLs, and paths to local byte files aren't selections. The ordered selection is
saved in the operation record, so a retry needs only --operation; changing the
selection, even its order, conflicts. SDK callers can validate a selection locally
with parseMailAttachmentSelection(value) before saving the request; validation
makes no server request and grants no access.
What happens after you send
- Admission is atomic. Temporary saturation returns
temporary_limitedwithout creating the operation; retry later with the same operation ID. Unsupported formats returnunsupported_attachment. - Preparation copies each selected attachment into the message, within a fixed 60-minute deadline that retries don't extend. Track progress through message reads and attachment listings. A queued or prepared copy is not acceptance.
- Submission happens once every copy is retained and the sender is still authorized. Provider retries reuse the same frozen content and operation, with at most three submissions within fifteen minutes of the first claim.
Poll the same operation for its outcome. An uncertain outcome stays uncertain when evidence can't establish acceptance; matching text or attachment names don't resolve it. Never create a replacement operation, because that can send a duplicate.
Once every copy is retained, the copies are independent of their sources, and replaying the exact request recovers the same operation even after a source is purged. Until then, selecting a source doesn't protect it from deletion or grant access to another workplace. Purging retained Mail frees its customer storage immediately, but physical deletion continues in the background and can briefly occupy temporary capacity, delaying new attachment operations.