Getsessions

以 Markdown 格式查看

Session analytics list for the last 7 days. The server currently derives the start window internally and supports app-layer status filtering.

Success data: { "data": [...], "meta": { "total", "page", "pageSize", "hasMore" } }.

身份验证

AuthorizationBearer
Bearer credential containing a JWT, Virtual Key, or PAT.

请求头

X-Workspace-Idstring可选格式: "uuid"

Required for a normal JWT, Virtual Key, or PAT. A JWT may instead send X-Openmodel-User-Id. Not used by the public health endpoint.

X-Openmodel-User-Idstring可选格式: "uuid"

JWT-only alternative to X-Workspace-Id. Must be a UUID equal to the JWT subject; the server uses it as the workspace id. Not valid as the sole workspace header for Virtual Key or PAT authentication.

查询参数

startdatetime可选

ISO 8601 start; defaults to seven days before the request.

enddatetime可选
Optional ISO 8601 end bound.
pageinteger可选>=1默认为 1

1-based page index (default 1).

pageSizeinteger可选1-100默认为 20

Page size (default 20, max 100).

statusenum可选

Optional filter. One of active, completed, intercepted.

允许的值:
agentIdstring可选

Preferred agent id filter; takes precedence over agent.

agentstring可选
Optional agent id filter.
departmentIdstring可选
Optional department id filter.
searchstring可选
Optional search string.
sortenum可选
Optional sort key.
允许的值:
orderenum可选

Optional sort order (asc or desc).

允许的值:

响应

codeinteger
messagestring
dataany