List catalog

Returns the read-only starter prompt library shipped with the binary — reference content every tenant sees the same, NOT the caller's own prompts and never mixed into them.

GET /v1/prompt/catalog

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

Returns the read-only starter prompt library shipped with the binary — reference content every tenant sees the same, NOT the caller's own prompts and never mixed into them. An org's library stays honestly empty until someone explicitly imports a starter, which is an ordinary POST /v1/prompt. Entries that would fail the create guards are dropped, so everything offered here can actually be imported.

Request

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

Response

StatusBodyMeaning
200prompt.catalogListok
defaultproblem-detailsrefused

200 body — 6 fields.

FieldInTypeAlwaysDescription
databodyprompt.CatalogEntry[]—Data is every starter prompt, each importable as-is with POST /v1/prompt.
data[].labelsbodystring[]—Labels is the starter's second suggested taxonomy, same treatment as Tags.
data[].namebodystring—Name is the starter's suggested handle.
data[].promptbodystring—Prompt is the starter's full template body, ready to POST as-is.
data[].tagsbodystring[]—Tags is the starter's suggested taxonomy, carried through unchanged if you import it.
data[].typebodystring—Type labels the template's kind, defaulted to "text" for entries that declare none.

Failure carries the platform error shape — see Errors.

Examples

hanzo prompt catalog
import { Configuration, PromptApi } from 'hanzoai';

const api = new PromptApi(new Configuration({ accessToken: process.env.HANZO_API_KEY }));
const { data } = await api.getPromptCatalog();
from hanzoai.cloud import ApiClient, Configuration
from hanzoai.cloud.api import PromptApi

client = ApiClient(Configuration(access_token=os.environ["HANZO_API_KEY"]))
result = PromptApi(client).get_prompt_catalog()
cfg := hanzoai.NewConfiguration()
cfg.AddDefaultHeader("Authorization", "Bearer "+os.Getenv("HANZO_API_KEY"))
client := hanzoai.NewAPIClient(cfg)

resp, _, err := client.PromptAPI.GetPromptCatalog(context.Background()).Execute()
if err != nil {
	return err
}
use hanzo_client::apis::{configuration::Configuration, prompt_api};

let mut cfg = Configuration::new();
cfg.bearer_access_token = std::env::var("HANZO_API_KEY").ok();

let result = prompt_api::get_prompt_catalog(&cfg, Default::default()).await?;
import ai.hanzo.cloud.ApiClient;
import ai.hanzo.cloud.api.PromptApi;

ApiClient client = new ApiClient();
client.setBearerToken(System.getenv("HANZO_API_KEY"));

var result = new PromptApi(client).getPromptCatalog();
curl https://api.hanzo.ai/v1/prompt/catalog \
  -H "Authorization: Bearer $HANZO_API_KEY"

Tool prompt, op get_prompt_catalog — POST the JSON-RPC envelope to https://api.hanzo.ai/v1/mcp.

curl -X POST https://api.hanzo.ai/v1/mcp \
  -H "Authorization: Bearer $HANZO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
       "jsonrpc": "2.0",
       "id": 1,
       "method": "tools/call",
       "params": {
         "name": "prompt",
         "arguments": {
           "op": "get_prompt_catalog",
           "input": {}
         }
       }
     }'

Prompt API · All Hanzo APIs · Interactive reference

Was this page useful?