Skip to main content
GET
获取草稿
只按 id 获取一条未发送草稿,不指定收件箱:draft_id、inbox_id、client_id、labels、reply_to、to、cc、bcc、subject、preview、text、html、attachments、in_reply_to 和 references。这是账号级视图,跨越账号下的每一个收件箱。所有 AIsa 调用方共用同一个 AgentMail 账号,因此这里会触及其他调用方创建的收件箱;只针对单个收件箱时请用收件箱级的孪生工具 get_agentmail_inbox_draft。

示例

第一次用? 把任意 MCP 客户端指向 https://mcp.aisa.one/mcp —— Claude Code、 Codex、Cursor、VS Code 都可以。鉴权走 OAuth:客户端打开浏览器,你点一次 Allow,不需要粘贴任何 key。之后智能体通过几个元工具调用所有端点: search、list_categories、get_details 和 batch_quote 免费,batch_use 按次计费。各客户端的接入步骤见通过 MCP 连接;实时工具列表和 每次调用的价格见 aisa.one/zh-cn/mcp。
在你的 agent 里把这个端点跑起来 → 当前未启用。

请求规范

  • 方法与路径: GET /apis/v1/agentmail/drafts/{draft_id}
  • 可用状态: disabled
此接口已停用,无法调用。历史请求和 schema 仅保留供参考,当前未发布价格。
  • 请求 URL 模板: https://api.aisa.one/apis/v1/agentmail/drafts/{draft_id}
  • draft_id: path; 必填
完整 OpenAPI 定义 有效请求声明(包括认证和引用的 schema):

费用与请求规则

历史归档接口:已停用,不可调用,价格未发布。

Authorizations

Authorization
string
header
required

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

Path Parameters

draft_id
string
required

草稿 ID。

Response

状态码为 200 的响应

created_at
string<date-time>
required

草稿创建时间。

draft_id
string
required

草稿 ID。

inbox_id
string
required

收件箱的 ID。

labels
string[]
required

草稿标签。

updated_at
string<date-time>
required

草稿的最后更新时间。

attachments
Attachment · object[]

草稿中的附件。

bcc
string[]

BCC 收件人的地址。格式为 username@domain.com 或 Display Name <username@domain.com>。

cc
string[]

抄送收件人的地址。格式为 username@domain.com 或 Display Name <username@domain.com>。

client_id
string

草稿的客户端 ID。

forward_of
string

ID of message being forwarded.

html
string

草稿的 HTML 正文。

in_reply_to
string

被回复消息的 ID。

preview
string

草稿文本预览。

references
string[]

会话串中先前消息的 ID。

reply_to
string[]

回复地址。格式为 username@domain.com 或 Display Name <username@domain.com>。

send_at
string<date-time>

计划发送草稿的时间。

send_status
enum<string>

草稿的定时发送状态。

Available options:
scheduled,
sending,
failed
subject
string

草稿主题。

text
string

草稿的纯文本正文。

to
string[]

收件人地址。格式为 username@domain.com 或 Display Name <username@domain.com>。