Hanzo
API Reference

Hanzo Platform API

PaaS API for Hanzo Platform (platform.hanzo.ai) — deployments,

PaaS API for Hanzo Platform (platform.hanzo.ai) — deployments,

Hanzo Platform API · Guide & examples → · All API references →

Base URLhttps://platform.hanzo.ai
Version1.0.0
Operations132
GuideHanzo Platform API guide

Authentication

  • BearerAuth — HTTP bearer
  • ApiKeyAuth — API key in header (X-API-Key)

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

curl -H "Authorization: Bearer $HANZO_API_KEY" https://platform.hanzo.ai

Endpoints

ai

MethodEndpointDescription
POST/v1/platform/ai/suggestGet AI deployment suggestions

application

MethodEndpointDescription
POST/v1/platform/application/createCreate a new application
GET/v1/platform/application/oneGet application details
POST/v1/platform/application/deleteDelete an application and all associated resources
POST/v1/platform/application/updateUpdate application configuration
POST/v1/platform/application/startStart a stopped application
POST/v1/platform/application/stopStop a running application
POST/v1/platform/application/reloadReload application container (re-mechanize)
POST/v1/platform/application/deployTrigger a new deployment
POST/v1/platform/application/redeployRedeploy (rebuild) an application
POST/v1/platform/application/cancelDeploymentCancel an in-progress deployment
POST/v1/platform/application/saveEnvironmentSave environment variables and build args
POST/v1/platform/application/saveBuildTypeConfigure the build type
POST/v1/platform/application/saveGithubProviderConfigure GitHub as source provider
POST/v1/platform/application/saveGitlabProviderConfigure GitLab as source provider
POST/v1/platform/application/saveBitbucketProviderConfigure Bitbucket as source provider
POST/v1/platform/application/saveGiteaProviderConfigure Gitea as source provider
POST/v1/platform/application/saveDockerProviderConfigure Docker image as source
POST/v1/platform/application/saveGitProdiverConfigure custom Git URL as source
POST/v1/platform/application/disconnectGitProviderDisconnect all git providers from application
POST/v1/platform/application/refreshTokenRegenerate webhook refresh token
GET/v1/platform/application/readTraefikConfigRead Traefik routing config for an application
POST/v1/platform/application/updateTraefikConfigWrite Traefik routing config
GET/v1/platform/application/readAppMonitoringRead container monitoring stats
POST/v1/platform/application/moveMove application to a different environment
POST/v1/platform/application/markRunningMark application status as running
POST/v1/platform/application/cleanQueuesClear pending deployment jobs

backup

MethodEndpointDescription
POST/v1/platform/backup/createCreate a backup schedule

billing

MethodEndpointDescription
GET/v1/platform/billing/getPlansList subscription plans
GET/v1/platform/billing/getBalanceGet account balance

certificate

MethodEndpointDescription
GET/v1/platform/certificates/allList SSL certificates (admin)

cluster

MethodEndpointDescription
GET/v1/platform/cluster/getNodesList Docker Swarm nodes

compose

MethodEndpointDescription
POST/v1/platform/compose/createCreate a Docker Compose service
GET/v1/platform/compose/oneGet compose service details
POST/v1/platform/compose/updateUpdate compose configuration
POST/v1/platform/compose/deleteDelete a compose service
POST/v1/platform/compose/deployDeploy a compose service
POST/v1/platform/compose/redeployRedeploy (rebuild) a compose service
POST/v1/platform/compose/stopStop a compose service
POST/v1/platform/compose/startStart a compose service
POST/v1/platform/compose/cancelDeploymentCancel in-progress compose deployment
GET/v1/platform/compose/loadServicesList running services within a compose stack
GET/v1/platform/compose/templatesList available one-click templates
POST/v1/platform/compose/deployTemplateDeploy a one-click template
POST/v1/platform/compose/moveMove compose to a different environment
POST/v1/platform/compose/refreshTokenRegenerate webhook token
GET/v1/platform/compose/getConvertedComposeGet final compose YAML with domains injected
GET/v1/platform/compose/getDefaultCommandGet the docker compose command
POST/v1/platform/compose/disconnectGitProviderDisconnect git providers from compose
GET/v1/platform/compose/getTagsGet unique tags from all templates

deploy-worker

MethodEndpointDescription
POST/v1/platform/deploySubmit deployment job to worker queue
POST/v1/platform/cancel-deploymentCancel an in-progress worker deployment
GET/healthDeploy worker health check

deployment

MethodEndpointDescription
GET/v1/platform/deployment/allList deployments for an application
GET/v1/platform/deployment/allByComposeList deployments for a compose service
GET/v1/platform/deployment/allByServerList deployments on a server
GET/v1/platform/deployment/allByTypeList deployments by resource type and ID
POST/v1/platform/deployment/killProcessKill a running deployment process
POST/v1/platform/deploy/{refreshToken}Webhook to trigger application deployment
POST/v1/platform/deploy/compose/{refreshToken}Webhook to trigger compose deployment
POST/v1/platform/deploy/githubGitHub webhook receiver for auto-deploy

destination

MethodEndpointDescription
GET/v1/platform/destination/allList backup destinations

docker

MethodEndpointDescription
GET/v1/platform/docker/getContainersList all Docker containers
POST/v1/platform/docker/restartContainerRestart a container by ID
GET/v1/platform/docker/getConfigGet Docker inspect for a container

domain

MethodEndpointDescription
POST/v1/platform/domain/createCreate a domain mapping
GET/v1/platform/domain/oneGet a domain by ID
GET/v1/platform/domain/byApplicationIdList domains for an application
GET/v1/platform/domain/byComposeIdList domains for a compose service
POST/v1/platform/domain/updateUpdate a domain mapping
POST/v1/platform/domain/deleteDelete a domain
POST/v1/platform/domain/generateDomainGenerate a traefik.me auto-domain
POST/v1/platform/domain/validateDomainValidate DNS for a domain

environment

MethodEndpointDescription
POST/v1/platform/environment/createCreate a new environment within a project
GET/v1/platform/environment/oneGet a single environment by ID
GET/v1/platform/environment/byProjectIdList all environments for a project
POST/v1/platform/environment/removeDelete an environment
POST/v1/platform/environment/updateUpdate an environment
POST/v1/platform/environment/duplicateDuplicate an environment with all services

git-provider

MethodEndpointDescription
GET/v1/platform/gitProvider/getAllList all git providers

github

MethodEndpointDescription
GET/v1/platform/github/githubProvidersList GitHub installations
GET/v1/platform/github/getGithubRepositoriesList repos from a GitHub installation
GET/v1/platform/github/getGithubBranchesList branches for a repository

mariadb

MethodEndpointDescription
POST/v1/platform/mariadb/createCreate a MariaDB service
GET/v1/platform/mariadb/oneGet MariaDB details

mongo

MethodEndpointDescription
POST/v1/platform/mongo/createCreate a MongoDB service
GET/v1/platform/mongo/oneGet MongoDB details

mysql

MethodEndpointDescription
POST/v1/platform/mysql/createCreate a MySQL service
GET/v1/platform/mysql/oneGet MySQL details

notification

MethodEndpointDescription
GET/v1/platform/notification/allList notification channels (admin)

organization

MethodEndpointDescription
POST/v1/platform/organization/createCreate an organization
GET/v1/platform/organization/allList organizations

postgres

MethodEndpointDescription
POST/v1/platform/postgres/createCreate a PostgreSQL service
GET/v1/platform/postgres/oneGet PostgreSQL details

project

MethodEndpointDescription
POST/v1/platform/project/createCreate a new project
GET/v1/platform/project/oneGet a single project by ID
GET/v1/platform/project/allList all projects in the active organization
POST/v1/platform/project/removeDelete a project
POST/v1/platform/project/updateUpdate a project
POST/v1/platform/project/duplicateDuplicate a project or environment with selected services

redis

MethodEndpointDescription
POST/v1/platform/redis/createCreate a Redis service
GET/v1/platform/redis/oneGet Redis details

registry

MethodEndpointDescription
GET/v1/platform/registry/allList container registries

rollback

MethodEndpointDescription
POST/v1/platform/rollback/rollbackRollback to a previous deployment

schedule

MethodEndpointDescription
GET/v1/platform/schedule/listList scheduled tasks
POST/v1/platform/schedule/createCreate a scheduled task

server

MethodEndpointDescription
POST/v1/platform/server/createRegister a new remote server
GET/v1/platform/server/oneGet server details
GET/v1/platform/server/allList all servers with service counts
POST/v1/platform/server/removeRemove a server (must have no active services)
POST/v1/platform/server/updateUpdate server configuration
POST/v1/platform/server/setupRun initial setup (install Docker, Traefik, etc.)
GET/v1/platform/server/validateValidate server capabilities
GET/v1/platform/server/securityRun security audit (ufw, ssh, fail2ban)
POST/v1/platform/server/setupMonitoringConfigure and deploy monitoring agent
GET/v1/platform/server/getServerMetricsFetch server metrics (CPU, memory, disk, network)
GET/v1/platform/server/publicIpGet platform host public IP

settings

MethodEndpointDescription
GET/v1/platform/settings/healthPlatform health check (tRPC)
GET/v1/platform/settings/isCloudCheck if running in cloud mode
GET/v1/platform/settings/getHanzoVersionGet platform version
POST/v1/platform/settings/reloadTraefikReload Traefik configuration (admin)
POST/v1/platform/settings/cleanAllFull Docker cleanup (admin)
GET/v1/platform/healthPlatform health (REST)
GET/v1/platform/healthcheckPlatform healthcheck (REST)

ssh-key

MethodEndpointDescription
POST/v1/platform/sshKey/createAdd an SSH key
GET/v1/platform/sshKey/allList all SSH keys
POST/v1/platform/sshKey/generateGenerate a new SSH key pair
POST/v1/platform/sshKey/removeRemove an SSH key

user

MethodEndpointDescription
GET/v1/platform/user/getGet current authenticated user
GET/v1/platform/user/allList all users (admin only)
POST/v1/platform/user/createApiKeyCreate an API key
POST/v1/platform/user/deleteApiKeyDelete an API key

Hanzo Platform API guide · All Hanzo APIs · OpenAPI spec

How is this guide?

On this page