Hanzo
API Reference

Hanzo Framework API

Metadata-driven DocType engine — the `/v1/framework/*` surface served by the

Metadata-driven DocType engine — the /v1/framework/* surface served by the

Hanzo Framework API · All API references →

Base URLhttps://api.hanzo.ai
Version1.0.0
Operations19

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://api.hanzo.ai

Endpoints

DocTypes

MethodEndpointDescription
GET/v1/framework/summaryOrg summary (doctype + document counts)
GET/v1/framework/doctypesList DocType definitions
POST/v1/framework/doctypesDefine a DocType
GET/v1/framework/doctypes/{name}Get a DocType definition
PUT/v1/framework/doctypes/{name}Replace a DocType definition
DELETE/v1/framework/doctypes/{name}Delete a DocType (and its documents)

Documents

MethodEndpointDescription
GET/v1/framework/{doctype}List documents of a DocType
POST/v1/framework/{doctype}Create a document
GET/v1/framework/{doctype}/{name}Get a document
PUT/v1/framework/{doctype}/{name}Update a draft document
DELETE/v1/framework/{doctype}/{name}Delete a document
POST/v1/framework/{doctype}/{name}/submitSubmit a document (docstatus 0→1)
POST/v1/framework/{doctype}/{name}/cancelCancel a submitted document (docstatus 1→2)

Modules

MethodEndpointDescription
GET/v1/framework/modulesList registered app-lane modules
GET/v1/framework/modules/{module}Inspect a module and its install state in this org
POST/v1/framework/modules/{module}/installInstall a module's DocType fixtures into this org (idempotent)

Roles

MethodEndpointDescription
GET/v1/framework/rolesList per-org role assignments
POST/v1/framework/rolesAssign a role to a user
DELETE/v1/framework/roles/{user}/{role}Revoke a role from a user

All Hanzo APIs · OpenAPI spec

How is this guide?

On this page