Skip to main content
GET
获取附件
获取只按 id 定位的草稿上某个附件的元数据。返回 attachment_id、filename、size、content_type、content_disposition、content_id,以及一个短时效的 download_url 和 expires_at。字节内容不内联,需在过期前去取 download_url。这是账号级视图,跨越账号下的每一个收件箱。所有 AIsa 调用方共用同一个 AgentMail 账号,因此这里会触及其他调用方创建的收件箱;只针对单个收件箱时请用收件箱级的孪生工具 get_agentmail_inbox_draft_attachment。

示例

第一次用? 把任意 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}/attachments/{attachment_id}
  • 可用状态: disabled
此接口已停用,无法调用。历史请求和 schema 仅保留供参考,当前未发布价格。
  • 请求 URL 模板: https://api.aisa.one/apis/v1/agentmail/drafts/{draft_id}/attachments/{attachment_id}
  • attachment_id: path; 必填
  • 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

attachment_id
string
required

附件 ID。

draft_id
string
required

草稿 ID。

Response

状态码为 200 的响应

attachment_id
string
required

附件 ID。

download_url
string
required

Signed HTTPS CDN URL to download the attachment bytes. Retrieve a fresh URL when needed rather than storing it permanently.

expires_at
string<date-time>
required

Time at which download_url and text_url (when present) expire. Retrieve the attachment again to obtain fresh URLs.

size
integer
required

附件大小(字节)。

content_disposition
enum<string>

附件的内容处置方式。

Available options:
inline,
attachment
content_id
string

附件的内容 ID。

content_type
string

附件的内容类型。

filename
string

附件文件名。

text_url
string

Signed HTTPS CDN URL to download extracted plain text, when available. Omitted when no extracted text is available. Expires at the same time as download_url.