Skip to main content
GET
获取草稿附件
获取未发送草稿上某个附件的元数据。返回 attachment_idfilenamesizecontent_typecontent_dispositioncontent_id,以及一个短时效的 download_urlexpires_at。字节内容不内联,需在过期前去取 download_url。id 来自 get_agentmail_inbox_draft 返回的 attachments 数组。已发送邮件的孪生工具是 get_agentmail_inbox_message_attachment

示例

授权

Authorization
string
header
必填

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

请求头

Authorization
string
必填

Bearer 身份验证

路径参数

inbox_id
string
必填

收件箱的 ID。

draft_id
string
必填

草稿 ID。

attachment_id
string
必填

附件 ID。

响应

状态码为 200 的响应

attachment_id
string
必填

附件 ID。

size
integer
必填

附件大小(字节)。

download_url
string
必填

用于下载附件的 URL。

expires_at
string<date-time>
必填

下载 URL 的过期时间。

filename
string

附件文件名。

content_type
string

附件的内容类型。

content_disposition
enum<string>

附件的内容处置方式。

可用选项:
inline,
attachment
content_id
string

附件的内容 ID。