会话
获取会话列表
Changed on获取当前空间的会话列表,支持分页、关键字搜索、按来源/Agent 筛选
get/sessions
Request
- Base URL/api/v1 (relative, and the document was published on a file host, not at the API’s origin)
- URL/api/v1/sessions
- Auth
- API key in header Authorization
- or API key in header X-API-Key
Query parameters
pageinteger
页码
page_sizeinteger
每页数量
kind'assistant'
会话类型:空值仅普通会话;assistant 仅当前用户的助手会话
keywordstring
标题模糊搜索
sourcestring
来源过滤:web / embed / api / feishu / wechat / slack / ...(api、embed、IM 渠道需 Admin+)
agent_idstring
按 Agent 过滤(仅对 IM 会话生效)
Response
会话列表
Changes
- info
added the new optional
queryrequest parameterkind
- info
- info
added the new optional
queryrequest parameteragent_id - info
added the new optional
queryrequest parameterkeyword - info
added the new optional
queryrequest parametersource
- info