API Reference
Hanzo ML API
Hanzo ML provides end-to-end MLOps pipeline management including
Hanzo ML provides end-to-end MLOps pipeline management including
Hanzo ML API · Guide & examples → · All API references →
| Base URL | https://ml.hanzo.ai |
| Version | 1.0.0 |
| Operations | 21 |
| Guide | Hanzo ML API guide |
Authentication
bearerAuth— HTTP bearerBearerAuth— 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://ml.hanzo.aiEndpoints
Deployments
| Method | Endpoint | Description |
|---|---|---|
POST | /v1/ml/deploy | Deploy a model |
GET | /v1/ml/deployments | List deployments |
GET | /v1/ml/deployments/{deployment_id} | Get deployment details |
DELETE | /v1/ml/deployments/{deployment_id} | Stop a deployment |
Experiments
| Method | Endpoint | Description |
|---|---|---|
GET | /v1/ml/experiments | List experiments |
POST | /v1/ml/experiments | Create an experiment |
GET | /v1/ml/experiments/{experiment_id}/runs | List experiment runs |
POST | /v1/ml/experiments/{experiment_id}/runs | Start an experiment run |
GET | /v1/ml/experiments/{experiment_id}/runs/{run_id}/metrics | Get run metrics |
POST | /v1/ml/experiments/{experiment_id}/runs/{run_id}/metrics | Log metrics |
Health
| Method | Endpoint | Description |
|---|---|---|
GET | /health | Health check |
Models
| Method | Endpoint | Description |
|---|---|---|
GET | /v1/ml/models | List models |
POST | /v1/ml/models | Register a model |
GET | /v1/ml/models/{model_id} | Get model details |
POST | /v1/ml/models/{model_id}/promote | Promote a model |
POST | /v1/ml/models/{model_id}/rollback | Rollback a model |
Pipelines
| Method | Endpoint | Description |
|---|---|---|
GET | /v1/ml/pipelines | List pipelines |
POST | /v1/ml/pipelines | Create a pipeline |
GET | /v1/ml/pipelines/{pipeline_id} | Get pipeline details |
GET | /v1/ml/pipelines/{pipeline_id}/runs | List pipeline runs |
POST | /v1/ml/pipelines/{pipeline_id}/runs | Start a pipeline run |
How is this guide?