Getprompttemplateentities

以 Markdown 格式查看
Entity-level statistics for one prompt template over a calendar period. `entity_ids` is a comma-separated list. If omitted or empty, the server returns an empty `entities` array. **Success `data`:** `{ "entities": [{ "entity_id", "entity_type", "total_calls", "cost_sum" }] }`.

路径参数

prompt_idstring必需
Prompt template id.

请求头

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.

entity_idsstring可选

Comma-separated entity ids.

响应

codeinteger
messagestring
dataany