List sessions
Lists CP-stored session metadata synced by daemon event/session snapshots; transcript bodies remain daemon-local. Returns one row per CONVERSATION by default (merged-conversation-view.md §5.2) — sessions sharing a thread group into conversations, each carrying its current member sessions. view=flat returns the raw sessions rows (the pre-grouped shape); conversationKey resolves one conversation’s members directly. tasks=exclude leaves tasks (delegated tasks, follow-ups (including getting-to-know tasks) and approved proposals) out of the page and its total; dreams=exclude does the same for memory dream sessions.
授权
bearerAuth 位置: header
路径参数
查询参数
值于
- "slack"
- "telegram"
- "webchat"
- "discord"
- "feishu"
- "hook"
- "dream"
- "qq"
- "googlechat"
- "dingtalk"
- "msteams"
- "wechat"
- "wecom"
- "email"
- "mattermost"
值于
- "slack"
- "telegram"
- "webchat"
- "discord"
- "feishu"
- "hook"
- "dream"
- "qq"
- "googlechat"
- "dingtalk"
- "msteams"
- "wechat"
- "wecom"
- "email"
- "mattermost"
- "github"
- "gitlab"
- "gitea"
- "azure-devops"
^[1-9]\d*$Whether tasks are listed: the delegated tasks, follow-ups (including getting-to-know tasks) and approved proposals that run on a subsession: thread of the session they belong to, and the threaded tasks a session currently owns. include (the default) lists them like any other session; exclude leaves them out of the rows, the totals and every facet.
值于
- "include"
- "exclude"
Whether memory dream sessions are listed: the isolated sessions that execute a memory dream. include (the default) lists them like any other session; exclude leaves them out of the rows, the totals and every facet.
值于
- "include"
- "exclude"
0 < value <= 20050"grouped"值于
- "grouped"
- "flat"
1 <= length <= 512值于
- "thinking"
- "tool_call"
- "awaiting_permission"
- "idle"
响应主体
application/json
application/json
curl -X GET "https://example.com/v1/orgs/string/sessions"{ "sessions": [ { "sessionId": "string", "sessionKey": { "platform": "string", "channel": "string", "thread": "string" }, "agentId": "string", "agentName": "string", "title": "string", "status": "string", "lastActivityAt": "string", "usage": { "reportedAt": "string", "totalTokens": 0, "inputTokens": 0, "outputTokens": 0, "thoughtTokens": 0, "cachedReadTokens": 0, "cachedWriteTokens": 0, "contextUsed": 0, "contextSize": 0, "costAmount": 0, "costCurrency": "string" }, "triggeredBy": "string", "hookKind": "webhook", "channelName": "string", "triggeredByName": "string", "triggeredByUserId": "string", "threadUrl": "string", "runtime": "string", "model": "string", "effort": "string", "fastMode": true, "permissionMode": "string", "outputMode": "string", "daemonId": "string", "contentSetId": "string", "workspaceIsolation": "shared", "visibility": "private", "externalProvider": "string", "externalResolution": "pending", "contentPurgedAt": "string", "activityState": "thinking" } ], "conversations": [ { "key": "string", "platform": "string", "channel": "string", "thread": "string", "sessions": [ { "sessionId": "string", "sessionKey": { "platform": "string", "channel": "string", "thread": "string" }, "agentId": "string", "agentName": "string", "title": "string", "status": "string", "lastActivityAt": "string", "usage": { "reportedAt": "string", "totalTokens": 0, "inputTokens": 0, "outputTokens": 0, "thoughtTokens": 0, "cachedReadTokens": 0, "cachedWriteTokens": 0, "contextUsed": 0, "contextSize": 0, "costAmount": 0, "costCurrency": "string" }, "triggeredBy": "string", "hookKind": "webhook", "channelName": "string", "triggeredByName": "string", "triggeredByUserId": "string", "threadUrl": "string", "runtime": "string", "model": "string", "effort": "string", "fastMode": true, "permissionMode": "string", "outputMode": "string", "daemonId": "string", "contentSetId": "string", "workspaceIsolation": "shared", "visibility": "private", "externalProvider": "string", "externalResolution": "pending", "contentPurgedAt": "string", "activityState": "thinking" } ], "memberSessionIds": [ "string" ], "representativeSessionId": "string" } ], "total": 0, "nextCursor": "string", "orgHasSessions": true, "accessSyncDegraded": true, "accessIssues": [ { "provider": "string", "region": "string", "reason": "authorization" } ]}