Connect private services over /v1/network zero-trust mesh
Register cryptographic workload identities, private services, and edge routers on /v1/network without exposing public ingress ports.
Expose zero public ports on your private GPU workers and internal databases. /v1/network builds an identity-authenticated zero-trust overlay across cloud clusters, edge nodes, and developer workstations.
Architecture & contract
Each node receives a cryptographic identity enrolled via Hanzo IAM; traffic flows strictly between explicitly authorized identities and services with end-to-end encryption.
Primary endpoint: GET /v1/network/identities · Status: shipped · Level: architect
Run it across all four surfaces
CLI
SDK
HTTP
MCP
hanzo network identities list
hanzo network services list
hanzo network routers listTypeScript
Python
import { Configuration, NetworkApi } from 'hanzoai';
const net = new NetworkApi(new Configuration({ accessToken: process.env.HANZO_API_KEY }));
const [identities, services, routers] = await Promise.all([
net.getNetworkIdentities(),
net.getNetworkServices(),
net.getNetworkRouters(),
]);
console.log({ identities: identities.data, services: services.data, routers: routers.data });import os
from hanzoai.cloud import ApiClient, Configuration
from hanzoai.cloud.api import NetworkApi
api = NetworkApi(ApiClient(Configuration(access_token=os.environ["HANZO_API_KEY"])))
print(api.get_network_identities())
print(api.get_network_services())
print(api.get_network_routers())curl -s https://api.hanzo.ai/v1/network/identities \
-H "Authorization: Bearer $HANZO_API_KEY" | jq '.'
curl -s https://api.hanzo.ai/v1/network/services \
-H "Authorization: Bearer $HANZO_API_KEY" | jq '.'curl -s -X POST https://api.hanzo.ai/v1/mcp \
-H "Authorization: Bearer $HANZO_API_KEY" -H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "network",
"arguments": {"op": "get_network_identities", "input": {}}
}
}'Verify the outcome
- Verify private GPU endpoints answer over their overlay service address while refusing direct public IP connections.
Production guardrails
- Revoke decommissioned node identities immediately via
DELETE /v1/network/identities/{id}.
Next steps & Hanzo University
Was this page useful?
Broken link or missing step? Drop it in #docs on Discord or open a PR.PreviousRun untrusted code in ephemeral microVM sandboxesNextQuery AI latency, traces, logs, and unit economics
Last updated Nov 25, 2026