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

示例

授权

Authorization
string
header
必填

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

请求头

Authorization
string
必填

Bearer 身份验证

路径参数

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

消息中要包含的标头。

响应

状态码为 200 的响应

message_id
string
必填

消息 ID。

thread_id
string
必填

会话 ID。