Skip to navigation

Getsaassparklines

View as Markdown

Last-7-day sparkline arrays keyed by metric name (server picks window ending today UTC).

Query metrics: comma-separated names or all (default). Known keys include spend, requests, tokens, success, latency, avgCost; budget, agents, members, departments may be zero-filled placeholders.

Success data: { "period": { "start", "end" }, ...arrays }

Authentication

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

Headers

X-Workspace-IdstringOptionalformat: "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-IdstringOptionalformat: "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.

Query parameters

metricsstringOptionalDefaults to all

all (default) or comma-separated metric keys, case-insensitive after trim (e.g. spend,requests).

Response

This endpoint returns an object.
codeinteger
messagestring
dataany