Getprompttemplatekpis
Prompt-template KPI summary and sparklines for a calendar period, with previous-month trend comparison.
Success data: total_templates, mtd_cost_sum, avg_tokens_per_call, trend percentages, cost_sparkline, and avg_tokens_sparkline.
Authentication
AuthorizationBearer
Bearer credential containing a JWT, Virtual Key, or PAT.
Headers
X-Workspace-Id
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-Id
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
dateFrom
Inclusive start YYYY-MM-DD.
dateTo
Inclusive end YYYY-MM-DD.
Response
code
message
data