Hanzo
OpenapiPrompt

List returns the caller org's prompt library as one row per prompt: its name,…

List returns the caller org's prompt library as one row per prompt: its name, type, every version number it has, its taxonomy and when it last changed.

GET /v1/prompt

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

List returns the caller org's prompt library as one row per prompt: its name, type, every version number it has, its taxonomy and when it last changed. The template bodies are deliberately absent — fetch one prompt to read its text.

Request

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

Response

StatusBodyMeaning
200promptListok

200 body — 7 fields.

FieldInTypeAlwaysDescription
databodypromptMeta[]Data is one row per prompt the org owns, each with its version numbers and taxonomy — never the template bodies.
data[].labelsbodystring[]Labels is the creator's free-form taxonomy, stored as given after trimming and de-duplication.
data[].lastUpdatedAtbodystringLastUpdatedAt is when the newest version was appended, RFC 3339 UTC.
data[].namebodystringName is the prompt's org-unique handle and the URL segment it is fetched by: GET /v1/prompt/<name>.
data[].tagsbodystring[]Tags is the second free-form taxonomy under the same rules as Labels.
data[].typebodystringType labels the template's kind, "text" unless the creator said otherwise.
data[].versionsbodyinteger[]Versions lists every version NUMBER this prompt has, newest first, capped at the last 100. The highest is the current one.

Failure carries the platform error shape — see Errors.

Examples

hanzo prompts list

Prompt API · All Hanzo APIs · Interactive reference

How is this guide?

On this page