Postprompttemplatestats
Batch prompt-template statistics for a calendar period.
**Body:** `dateFrom`, `dateTo`, and non-empty `prompt_ids` array. Empty or missing `prompt_ids` -> `40050`.
**Success `data`:** `{ "stats": { "<prompt_id>": { "total_calls", "cost_sum", "call_sparkline": [{ "date", "value" }] } } } }`.
身份验证
AuthorizationBearer
Bearer credential containing a JWT, Virtual Key, or PAT.
请求头
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.
请求
This endpoint expects an object.
dateFrom
Inclusive start YYYY-MM-DD.
dateTo
Inclusive end YYYY-MM-DD.
prompt_ids
Non-empty prompt template id list.
响应
code
message
data