跳转到主要内容
GET
列出包含洞察的会话

权限

需要具有企业级 ViewAccountSessions 权限的服务用户。

授权

Authorization
string
header
必填

服务用户凭据(前缀:cog_)

查询参数

after
string | null
first
integer
默认值:100
必填范围: 1 <= x <= 200
session_ids
string[] | null
created_after
integer | null
created_before
integer | null
updated_after
integer | null
updated_before
integer | null
tags
string[] | null
playbook_id
string | null
origins
enum<string>[] | null
可用选项:
webapp,
slack,
teams,
api,
linear,
jira,
automation,
cli,
desktop,
code_scan,
other
schedule_id
string | null
user_ids
string[] | null
service_user_ids
string[] | null
repo_names
string[] | null

按代码仓库名称筛选(例如“owner/repo”)

category
enum<string> | null
可用选项:
bug_fixing,
ci_cd_and_devops,
code_quality_and_security,
code_review,
code_review_and_analysis,
data_and_automation,
documentation_and_content,
feature_development,
migrations_and_upgrades,
other,
refactoring_and_optimization,
research_and_exploration,
security,
unit_test_generation
is_archived
boolean | null
org_ids
string[] | null
include_deleted_orgs
boolean
默认值:false

响应

成功响应

items
SessionInsightsResponse · object[]
必填
end_cursor
string | null

用于获取下一页的游标;如果是最后一页,则为 None。

has_next_page
boolean
默认值:false

指示在当前页之后是否还有更多可用项。

total
integer | null

可选的总数(可省略以提升性能)。