跳转到主要内容
GET
curl
Didit 的 List Conversations API 返回您应用中的对话,每个对话包含其所属的成员以及未读回复数。 一个对话会把与同一个人在所有渠道上交换的全部消息归为一组。 使用 status(open、needs_reply 或 closed)和 assignee 进行筛选,并使用 limit 和 offset 进行分页。 assignee 接受一个成员 ID,格式与对话中 assignee 显示的完全一致,并且只列出分配给该成员的对话。 unread_count 统计自对话上次通过 read_up_to 标记为已读以来收到的回复数;它属于对话本身,而不属于某个成员。 权限受限的 API 密钥需要对消息和会话具有读取权限,并且其工作流和仅适用于已通过会话的限制同样适用:不在这些范围内的对话会被排除在列表之外。
相关内容:分配对话或标记为已读和将 URL 订阅到某个对话的事件。

授权

x-api-key
string
header
必填

Your application's API key, from Developers -> API keys in the Business Console. The primary key has full access. A named key can be scoped: none, read or write per resource, limited to some workflows or to approved sessions, to a list of IP addresses, and to an expiry date. 401 means the key is wrong, revoked or expired; 403 means no key was sent, the key has no access to this resource or action, or the request came from an address outside its IP list; 404 on a session route means the session is outside the key's workflows or statuses. A key without media access receives image, video and PDF URLs as null, and a key without sessions write receives session links and tokens as null. See https://docs.didit.me/console/api-keys.

查询参数

status
enum<string>

needs_reply: the person wrote last and nobody answered yet. closed: a team member closed the thread.

可用选项:
open,
needs_reply,
closed
assignee
string

A member's id, exactly as assignee shows it on a conversation: only the conversations assigned to that member are listed. The value is compared as it is; this operation takes your application's credential, which has no member behind it.

Maximum string length: 64
limit
integer
默认值:20
必填范围: 1 <= x <= 100
offset
integer
默认值:0
必填范围: x >= 0

响应

A page of conversations.

count
integer
必填
next
string<uri> | null
必填
previous
string<uri> | null
必填
results
object[]
必填
最后修改于 2026年11月24日