Getprompttemplatekpis

以 Markdown 格式查看

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.

请求头

Authorizationstring可选

Optional. Bearer JWT, Virtual Key, or PAT. Server also accepts Cookie alephant_token; not modeled as a header here.

X-Workspace-Idstring可选

Optional in the spec; required for authenticated analytics. Omit for unauthenticated GET /v1/analytics/health.

查询参数

dateFromstring必需

Inclusive start YYYY-MM-DD.

dateTostring必需

Inclusive end YYYY-MM-DD.

响应

codeinteger
messagestring
dataany