Hanzo
API Reference

Hanzo KMS API

Hanzo KMS is a key management service for managing secrets, API keys,

Hanzo KMS is a key management service for managing secrets, API keys,

Base URLhttps://kms.hanzo.ai
Version1.0.0
Operations95
GuideHanzo KMS API guide

Authentication

  • bearerAuth — HTTP bearer
  • 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://kms.hanzo.ai

Endpoints

Admin

MethodEndpointDescription
GET/v1/kms/admin/configGet server configuration
PATCH/v1/kms/admin/configUpdate server configuration

App Connections

MethodEndpointDescription
GET/v1/kms/app-connectionsList app connections
POST/v1/kms/app-connectionsCreate an app connection
GET/v1/kms/app-connections/{connectionId}Get an app connection by ID
PATCH/v1/kms/app-connections/{connectionId}Update an app connection
DELETE/v1/kms/app-connections/{connectionId}Delete an app connection

Approval Policies

MethodEndpointDescription
GET/v1/kms/approval-policies/changeList secret change approval policies
POST/v1/kms/approval-policies/changeCreate a secret change approval policy

Audit Logs

MethodEndpointDescription
GET/v1/kms/eventsList audit log events

Auth

MethodEndpointDescription
POST/v1/kms/auth/login1Login step 1 - SRP init
POST/v1/kms/auth/token/renewRenew access token

Certificate Authorities

MethodEndpointDescription
POST/v1/kms/cert-manager/caCreate a certificate authority
GET/v1/kms/cert-manager/ca/{caId}Get a certificate authority by ID
PATCH/v1/kms/cert-manager/ca/{caId}Update a certificate authority
DELETE/v1/kms/cert-manager/ca/{caId}Delete a certificate authority

Certificates

MethodEndpointDescription
GET/v1/kms/cert-manager/certificatesList certificates
POST/v1/kms/cert-manager/ca/{caId}/issue-certificateIssue a certificate from a CA
GET/v1/kms/cert-manager/certificates/{certificateId}Get a certificate by ID
DELETE/v1/kms/cert-manager/certificates/{certificateId}Revoke a certificate

Dashboard

MethodEndpointDescription
GET/v1/kms/dashboard/{projectId}/secrets-overviewGet secrets overview for the dashboard

Environments

MethodEndpointDescription
GET/v1/kms/projects/{projectId}/environmentsList project environments
POST/v1/kms/projects/{projectId}/environmentsCreate an environment
PATCH/v1/kms/projects/{projectId}/environments/{envId}Update an environment
DELETE/v1/kms/projects/{projectId}/environments/{envId}Delete an environment

Identities

MethodEndpointDescription
POST/v1/kms/identitiesCreate a machine identity
GET/v1/kms/identities/{identityId}Get an identity by ID
PATCH/v1/kms/identities/{identityId}Update an identity
DELETE/v1/kms/identities/{identityId}Delete an identity

Identity Auth

MethodEndpointDescription
POST/v1/kms/auth/universal-auth/loginLogin with Universal Auth
POST/v1/kms/auth/token-auth/identities/{identityId}/tokensCreate an identity token
GET/v1/kms/auth/universal-auth/identities/{identityId}Get Universal Auth configuration for an identity
POST/v1/kms/auth/universal-auth/identities/{identityId}Attach Universal Auth to an identity
POST/v1/kms/auth/universal-auth/identities/{identityId}/client-secretsCreate a client secret for Universal Auth

Integrations

MethodEndpointDescription
POST/v1/kms/integrationCreate an integration
PATCH/v1/kms/integration/{integrationId}Update an integration
DELETE/v1/kms/integration/{integrationId}Delete an integration

KMS

MethodEndpointDescription
GET/v1/kms/kms/keysList KMS encryption keys
POST/v1/kms/kms/keysCreate a KMS encryption key
PATCH/v1/kms/kms/keys/{keyId}Update a KMS key
DELETE/v1/kms/kms/keys/{keyId}Delete a KMS key
POST/v1/kms/kms/keys/{keyId}/encryptEncrypt data with a KMS key
POST/v1/kms/kms/keys/{keyId}/decryptDecrypt data with a KMS key

Organizations

MethodEndpointDescription
GET/v1/kms/organizationList organizations the user belongs to
GET/v1/kms/organization/{organizationId}Get an organization by ID
PATCH/v1/kms/organization/{organizationId}Update an organization

Projects

MethodEndpointDescription
POST/v1/kms/projectsCreate a project
GET/v1/kms/projects/{projectId}Get a project by ID
PATCH/v1/kms/projects/{projectId}Update a project
DELETE/v1/kms/projects/{projectId}Delete a project
GET/v1/kms/projects/{projectId}/usersList project members

SDK

MethodEndpointDescription
POST/v1/sdk/secretsEnveloped secret + threshold-key operation

SSO

MethodEndpointDescription
GET/v1/kms/sso/configGet SSO configuration for an organization
POST/v1/kms/sso/configCreate SSO configuration

Secret Folders

MethodEndpointDescription
GET/v1/kms/foldersList secret folders
POST/v1/kms/foldersCreate a secret folder
PATCH/v1/kms/folders/{folderId}Update a secret folder
DELETE/v1/kms/folders/{folderId}Delete a secret folder

Secret Imports

MethodEndpointDescription
GET/v1/kms/secret-importsList secret imports
POST/v1/kms/secret-importsCreate a secret import
PATCH/v1/kms/secret-imports/{importId}Update a secret import
DELETE/v1/kms/secret-imports/{importId}Delete a secret import

Secret Sharing

MethodEndpointDescription
GET/v1/kms/secret-sharing/sharedList shared secrets created by the user
POST/v1/kms/secret-sharing/sharedCreate a shared secret
GET/v1/kms/secret-sharing/shared/{sharedSecretId}Get a shared secret by ID (consumes a view)
DELETE/v1/kms/secret-sharing/shared/{sharedSecretId}Delete a shared secret

Secret Syncs

MethodEndpointDescription
GET/v1/kms/secret-syncsList secret syncs
POST/v1/kms/secret-syncsCreate a secret sync
GET/v1/kms/secret-syncs/{syncId}Get a secret sync by ID
PATCH/v1/kms/secret-syncs/{syncId}Update a secret sync
DELETE/v1/kms/secret-syncs/{syncId}Delete a secret sync
POST/v1/kms/secret-syncs/{syncId}/triggerManually trigger a secret sync

Secret Tags

MethodEndpointDescription
GET/v1/kms/projects/{projectId}/tagsList secret tags for a project
POST/v1/kms/projects/{projectId}/tagsCreate a secret tag
GET/v1/kms/projects/{projectId}/tags/{tagId}Get a secret tag by ID
PATCH/v1/kms/projects/{projectId}/tags/{tagId}Update a secret tag
DELETE/v1/kms/projects/{projectId}/tags/{tagId}Delete a secret tag

Secrets

MethodEndpointDescription
GET/v1/kms/orgs/{org}/secretsList an org's secret metadata (names only, never values)
POST/v1/kms/orgs/{org}/secretsCreate or upsert a secret (value write-only; version bumps)
GET/v1/kms/orgs/{org}/secrets/{rest}Reveal one secret value
PATCH/v1/kms/orgs/{org}/secrets/{rest}Rotate a secret (compare-and-set on version)
DELETE/v1/kms/orgs/{org}/secrets/{rest}Delete a secret
GET/v1/kms/v4/secretsList secrets
GET/v1/kms/v4/secrets/{secretKey}Get a secret by key
POST/v1/kms/v4/secrets/{secretKey}Create a secret
PATCH/v1/kms/v4/secrets/{secretKey}Update a secret
DELETE/v1/kms/v4/secrets/{secretKey}Delete a secret
POST/v1/kms/v4/secrets/batchBatch create, update, and delete secrets

Service Tokens

MethodEndpointDescription
GET/v1/kms/service-tokenGet the service token associated with the current request

Users

MethodEndpointDescription
GET/v1/kms/userGet the current authenticated user

Webhooks

MethodEndpointDescription
GET/v1/kms/webhooksList webhooks for a project
POST/v1/kms/webhooksCreate a webhook
PATCH/v1/kms/webhooks/{webhookId}Update a webhook
DELETE/v1/kms/webhooks/{webhookId}Delete a webhook
POST/v1/kms/webhooks/{webhookId}/testTest a webhook

Hanzo KMS API guide · All Hanzo APIs · OpenAPI spec

How is this guide?

On this page