跳转到主要内容
GET
列出账户的所有会话

权限

需要在 Enterprise 级别具有 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,
production_investigation,
refactoring_and_optimization,
research_and_exploration,
security,
unit_test_generation
is_archived
boolean | null
org_ids
string[] | null
include_deleted_orgs
boolean
默认值:false

响应

成功响应

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

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

has_next_page
boolean
默认值:false

当前页之后是否还有更多可用条目。

total
integer | null

可选的总计数(可为提升性能而省略)。