Get widget chart data
Returns chart data for one or more widget types in the requested time range.
Workflow
GET /widgets— list valid widget slugs (data[].id).POST /applications/{applicationId}/widget-data— pass those slugs as bodytypes(array of strings), plusstartandend(ISO 8601 UTC, inclusive;endmust be on or afterstart).
Request body
| Field | Required | When to use |
|---|---|---|
types | yes | Widget slugs from GET /widgets data[].id (e.g. sessions-evaluated, guardrail-latency) |
start, end | yes | Time range for the charts |
Response
data— array of widget results in the same order astypes. Each item includes:id— requested widget slugdata— chart payload when successful; shape depends on the widget (see response examples)meta.source— category label for the widget data (see response examples)meta.type— resolved widget type (e.g.token-usagemay map totokens-analysis)message/code— present when that widget could not be loaded (unknown_type,unsupported,upstream)
Time-bucketed series are zero-filled between start and end. Bucket granularity (hour / day / week / month) is chosen from the range length.
POST
Authorizations
Path Parameters
Body
application/json
Widget types and time range (types, start, end).