Hanzo
API Reference

Hanzo Bot API

Hanzo Bot Hub is the skill registry and marketplace for Hanzo Bot.

Hanzo Bot Hub is the skill registry and marketplace for Hanzo Bot.

Base URLhttps://app.hanzo.bot
Version1.0.0
Operations33
GuideHanzo Bot API guide

Authentication

  • BearerAuth — HTTP bearer

All Hanzo APIs share one bearer credential and common error and pagination conventions. See API conventions.

curl -H "Authorization: Bearer $HANZO_API_KEY" https://app.hanzo.bot

Endpoints

auth

MethodEndpointDescription
GET/v1/bot/auth/loginInitiate OAuth login via Hanzo IAM
GET/v1/bot/auth/callbackOAuth callback - exchange code for session
GET/v1/bot/auth/meGet current authenticated user
POST/v1/bot/auth/logoutInvalidate current session
GET/v1/bot/whoamiCLI alias for /v1/bot/auth/me

health

MethodEndpointDescription
GET/healthHealth check

integrations

MethodEndpointDescription
GET/v1/bot/integrationsList integrations (paginated)
GET/v1/bot/integrations/{slug}Get integration detail with latest version

personas

MethodEndpointDescription
GET/v1/bot/personasList personas (paginated)
GET/v1/bot/personas/{slug}/detailGet persona detail including latest version and owner
GET/v1/bot/personas/{slug}/versionsList versions of a persona
MethodEndpointDescription
GET/v1/bot/search/skillsHybrid vector + lexical search for skills
GET/v1/bot/search/personasLexical search for personas

skills

MethodEndpointDescription
GET/v1/bot/skillsList published skills (paginated)
GET/v1/bot/skills/{slug}Get skill details by slug
DELETE/v1/bot/skills/{slug}Soft-delete a skill (owner or admin only)
POST/v1/bot/skills/{slug}/publishPublish a new version of a skill (creates skill if new)
POST/v1/bot/skills/{slug}/undeleteRestore a soft-deleted skill
GET/v1/bot/skills/{slug}/versionsList versions of a skill
GET/v1/bot/skills/{slug}/versions/{version}/filesGet file listing for a specific version
POST/v1/bot/skills/{slug}/starsStar or unstar a skill (toggle)
GET/v1/bot/skills/{slug}/stars/meCheck if current user has starred this skill
GET/v1/bot/skills/{slug}/commentsList comments on a skill
POST/v1/bot/skills/{slug}/commentsAdd a comment to a skill
DELETE/v1/bot/skills/{slug}/comments/{commentId}Delete a comment (author or admin only)

tokens

MethodEndpointDescription
GET/v1/bot/tokensList current user's API tokens
POST/v1/bot/tokensCreate a new API token
DELETE/v1/bot/tokens/{id}Revoke an API token

upload

MethodEndpointDescription
POST/v1/bot/upload/urlGenerate a presigned upload URL

users

MethodEndpointDescription
GET/v1/bot/users/{handle}Get user profile by handle
GET/v1/bot/users/{handle}/skillsList skills published by a user
GET/v1/bot/users/{handle}/starsList skills starred by a user
PATCH/v1/bot/users/meUpdate current user's profile

Hanzo Bot API guide · All Hanzo APIs · OpenAPI spec

How is this guide?

On this page