检索所有浏览器会话的列表,并可选地按状态进行过滤。
| 请求头 | 值 |
|---|---|
Authorization | Bearer <API_KEY> |
| 参数 | 类型 | 是否必填 | 描述 |
|---|---|---|---|
status | string | 否 | 根据会话状态进行筛选:"active" 或 "destroyed" |
| 字段 | 类型 | 描述 |
|---|---|---|
success | boolean | 请求是否成功 |
sessions | array | 会话对象列表 |
| 字段 | 类型 | 描述 |
|---|---|---|
id | string | 唯一会话标识符 |
status | string | 当前会话状态("active" 或 "destroyed") |
cdpUrl | string | 用于 CDP 连接的 WebSocket URL |
liveViewUrl | string | 实时查看会话的 URL |
createdAt | string | 会话创建时的 ISO 8601 时间戳 |
lastActivity | string | 上次活动的 ISO 8601 时间戳 |