Skip to main content
GET
获取任意会话
只按 id 获取一条会话,不指定收件箱:thread_idinbox_idlabelstimestampreceived_timestampsent_timestampsendersrecipientssubjectpreview、附件与邮件。因为没有指定收件箱,它是在整个账号范围内解析的。所有 AIsa 调用方共用同一个 AgentMail 账号,因此这里会触及其他调用方创建的收件箱,所以不属于你的 thread id 一样能解析出来——请检查返回的 inbox_id。带范围的孪生工具是 get_agentmail_inbox_thread

示例

授权

Authorization
string
header
必填

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

请求头

Authorization
string
必填

Bearer 身份验证

路径参数

thread_id
string
必填

会话 ID。

响应

状态码为 200 的响应

inbox_id
string
必填

收件箱的 ID。

thread_id
string
必填

会话 ID。

labels
string[]
必填

会话标签。

timestamp
string<date-time>
必填

最后发送或接收消息的时间戳。

senders
string[]
必填

会话中的发件人。格式为 username@domain.comDisplay Name <username@domain.com>

recipients
string[]
必填

会话中的收件人。格式为 username@domain.comDisplay Name <username@domain.com>

last_message_id
string
必填

会话串中最后一条消息的 ID。

message_count
integer
必填

会话中的消息数量。

size
integer
必填

线程大小(以字节为单位)。

updated_at
string<date-time>
必填

线程上次更新的时间。

created_at
string<date-time>
必填

会话串的创建时间。

messages
Message · object[]
必填

线程中的消息。按 timestamp 升序排列。

received_timestamp
string<date-time>

最后收到消息的时间戳。

sent_timestamp
string<date-time>

最后发送消息的时间戳。

subject
string

会话主题。

preview
string

会话中最后一条消息的文本预览。

attachments
Attachment · object[]

线程中的附件。