Getsaasmodels

以 Markdown 格式查看

Model rollup for the date range (requests, cost USD, token totals).

At most one of agentId, memberId, and departmentId may be set.

Success data: { "period", "models": [...] }

身份验证

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.

查询参数

dateFromstring必需

Inclusive start YYYY-MM-DD.

dateTostring必需

Inclusive end YYYY-MM-DD.

agentIdstring可选格式: "uuid"

Optional agent UUID filter; mutually exclusive with the other entity filters.

memberIdstring可选格式: "uuid"

Optional member UUID filter; mutually exclusive with the other entity filters.

departmentIdstring可选格式: "uuid"

Optional department UUID filter; mutually exclusive with the other entity filters.

响应

codeinteger
messagestring
dataany