Pular para o conteúdo principal
GET
Listar sessões com análises

Permissões

Requer um usuário de serviço com a permissão ViewAccountSessions no nível Enterprise.

Autorizações

Authorization
string
header
obrigatório

Credencial de usuário de serviço (prefixo: cog_)

Parâmetros de consulta

after
string | null
first
integer
padrão:100
Intervalo obrigatório: 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
Opções disponíveis:
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

Filtrar por nomes de repositório (por exemplo, 'owner/repo')

category
enum<string> | null
Opções disponíveis:
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
padrão:false

Resposta

Resposta bem-sucedida

items
SessionInsightsResponse · object[]
obrigatório
end_cursor
string | null

Cursor para recuperar a próxima página, ou None se esta for a última página.

has_next_page
boolean
padrão:false

Indica se há mais itens disponíveis após esta página.

total
integer | null

Contagem total, opcional (pode ser omitida por questões de desempenho).