Hanzo
OpenapiPrompt

Metrics returns real per-prompt statistics for the caller's org: how many…

Metrics returns real per-prompt statistics for the caller's org: how many versions each prompt has, which one is current, and when it was created and last…

GET /v1/prompt/metrics

Addresshttps://api.hanzo.ai/v1/prompt/metrics
MethodGET
Operationget_prompt_metrics
AuthAuthorization: Bearer $HANZO_API_KEY

Metrics returns real per-prompt statistics for the caller's org: how many versions each prompt has, which one is current, and when it was created and last changed. Every number is counted from the store — nothing here is estimated or fabricated.

Request

GET /v1/prompt/metrics takes no parameters and no body — the credential is the whole request.

Response

StatusBodyMeaning
200metricListok

200 body — 7 fields.

FieldInTypeAlwaysDescription
databodymetricRow[]Data is one row per prompt the org owns.
data[].createdAtbodystringCreatedAt is when version 1 was written, RFC 3339 UTC.
data[].currentVersionbodyintegerCurrentVer is the version number served as current.
data[].lastUpdatedAtbodystringLastUpdatedAt is when the newest version was appended, RFC 3339 UTC — the age of the template you would get today.
data[].namebodystringName is the prompt this row is about — its org-unique handle.
data[].typebodystringType is the current version's kind.
data[].versionsbodyintegerVersions is how many revisions the prompt has, COUNTED in the store and uncapped — so it can exceed the 100 entries a list row or a detail response carries.

Failure carries the platform error shape — see Errors.

Examples

hanzo prompts metrics

Prompt API · All Hanzo APIs · Interactive reference

How is this guide?

On this page