Skip to main content
POST
Inboxes - Send Message
从某个收件箱发出一封新邮件,返回 message_id 和 thread_id。接受 to、cc、bcc、subject、text、html、labels 和 attachments。🔴 **这会发出真实邮件,且发出去收不回。**所有 AIsa 调用方共用同一个 AgentMail 账号,因此这里会触及其他调用方创建的收件箱,所以发件地址未必是你创建的——先用 get_agentmail_inbox 确认。回复既有邮件用 post_agentmail_inbox_message_reply;只写不发用 post_agentmail_inbox_draft。

示例

第一次用? 把任意 MCP 客户端指向 https://mcp.aisa.one/mcp —— Claude Code、 Codex、Cursor、VS Code 都可以。鉴权走 OAuth:客户端打开浏览器,你点一次 Allow,不需要粘贴任何 key。各客户端的具体命令和每次调用的价格见 aisa.one/zh-cn/mcp。
在你的 agent 里把这个端点跑起来 →

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

路径参数

inbox_id
string
必填

收件箱的 ID。

请求体

application/json
labels
string[]

消息标签。

reply_to

回复地址(一个或多个)。

to

收件人地址。

cc

抄送收件人地址。

bcc

密送收件人地址。

subject
string

消息主题。

text
string

消息的纯文本正文。

html
string

消息的 HTML 正文。

attachments
SendAttachment · object[]

消息中要包含的附件。

headers
SendMessageHeaders · object

消息中要包含的标头。

track_opens
boolean

Track when this message is first opened. Requires a custom domain with tracking enabled and an HTML body. Opens surface as the opened label on the message and as a message.opened event. One pixel is injected per message, not per recipient, so a message with several recipients fires once when any of them opens it, and the event does not identify which one.

响应

状态码为 200 的响应

message_id
string
必填

消息 ID。

thread_id
string
必填

会话 ID。