Skip to main content

API Reference

The Zen Mesh API provides a REST API for the dashboard and programmatic access.

Base URL

https://api.zen-mesh.io

Authentication

All API calls require a session cookie (from dashboard login) or an API key header:

curl -H "X-API-Key: zen_key_..." https://api.zen-mesh.io/tenants/{tid}/clusters

Endpoints

Session

MethodPathDescription
POST/auth/loginAuthenticate with email/password
GET/meGet current user and tenant info

Clusters

MethodPathDescription
GET/tenants/{tid}/clustersList clusters
POST/tenants/{tid}/clustersCreate a cluster
GET/tenants/{tid}/clusters/{cid}Get cluster details
DELETE/tenants/{tid}/clusters/{cid}Delete a cluster
POST/tenants/{tid}/clusters/{cid}/install-bundleGenerate enrollment bundle

Destinations

MethodPathDescription
GET/tenants/{tid}/destinationsList destinations
POST/tenants/{tid}/destinationsCreate a destination
GET/tenants/{tid}/destinations/{did}Get destination details
PATCH/tenants/{tid}/destinations/{did}Update a destination
DELETE/tenants/{tid}/destinations/{did}Delete a destination

Deliveries

MethodPathDescription
GET/tenants/{tid}/deliveriesList delivery history
GET/tenants/{tid}/deliveries/{did}Get delivery details
POST/tenants/{tid}/deliveries/{did}/replayReplay a delivery from DLQ

API Keys

MethodPathDescription
GET/tenants/{tid}/api-keysList API keys
POST/tenants/{tid}/api-keysCreate an API key
DELETE/tenants/{tid}/api-keys/{kid}Revoke an API key