Files
mintlify[bot] 51f9be82f8 Update from code changes: assistant link deflection and thread endpoint (#6982)
* docs: document assistant link deflection and thread transcript endpoint

* fix: correct link deflection anchor in assistant thread page

---------

Co-authored-by: mintlify[bot] <109931778+mintlify[bot]@users.noreply.github.com>
2026-08-14 21:24:49 +00:00

30 lines
1.1 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: "获取 AI 助手会话线程"
openapi: /zh/analytics.openapi.json GET /v1/analytics/{projectId}/assistant/threads/{threadId}
keywords: ["analytics", "assistant", "thread", "transcript", "export", "AI"]
---
<div id="usage">
## 用法
</div>
使用此端点以 JSON 格式获取某个 AI 助手会话的完整消息转录。响应包含用户与 AI 助手之间按顺序排列的消息列表,每条消息都带有 ID、角色、内容和时间戳。
常见用途:
- 当用户从 AI 助手联系支持时,将会话转录附加到工单。
- 为审查、质量保证或离线分析重建特定会话。
<div id="getting-a-thread-id">
## 获取 thread ID
</div>
你可以通过以下任一来源获取 `threadId`
- [获取 AI 助手会话](/zh/api/analytics/assistant-conversations) 返回的任一行的 `id` 字段。
- 当 AI 助手通过[链接转接](/zh/assistant/configure#deflect-to-a-support-link)将用户引导到你的支持平台时Mintlify 追加到支持 URL 上的 `threadId` 查询参数。
## 速率限制
此端点每个组织每小时允许 100 次请求。所有 analytics 端点共享此限制。