Skip to main content
PATCH
Manage Email Thread
对只按 id 定位的会话增删标签,返回 thread_id 和结果 labels。未指定收件箱,作用范围是整个账号。写入的是共享 AgentMail 工作区:所有 AIsa 调用方共用同一个 AgentMail 账号,因此这里会触及其他调用方创建的收件箱,你写进去的东西下一个调用方也看得到、改得动。 带范围的孪生工具是 patch_agentmail_inbox_thread。

示例

第一次用? 把任意 MCP 客户端指向 https://mcp.aisa.one/mcp —— Claude Code、 Codex、Cursor、VS Code 都可以。鉴权走 OAuth:客户端打开浏览器,你点一次 Allow,不需要粘贴任何 key。各客户端的具体命令和每次调用的价格见 aisa.one/zh-cn/mcp。
在你的 agent 里把这个端点跑起来 →

授权

Authorization
string
header
必填

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

路径参数

thread_id
string
必填

会话 ID。

请求体

application/json
add_labels
string[]

要添加到会话串的标签。不能是系统标签。

remove_labels
string[]

要从会话线程中移除的标签。不能是系统标签。优先级高于 add_labels(当传入重复标签时)。

响应

状态码为 200 的响应

thread_id
string
必填

会话 ID。

labels
string[]
必填

会话标签。