API Reference
Type: Reference · Audience: API consumer
Base URL
http://<rezuscloud-host>:8080/api/v1
Authentication
All endpoints except /auth/login require a Bearer token:
Authorization: Bearer <jwt-or-api-token>
Obtain a token via POST /api/v1/auth/login or create an API token via
POST /api/v1/users/{name}/tokens.
Resource Model
Every resource follows the Kubernetes shape:
{
"metadata": {
"name": "my-cluster",
"resourceVersion": 1,
"labels": {},
"annotations": {},
"createdAt": "2026-01-01T00:00:00Z",
"updatedAt": "2026-01-01T00:00:00Z"
},
"spec": { ... },
"status": { ... }
}
Optimistic Concurrency
Updates (PUT) require the current resourceVersion in the request body.
If the version is stale, the server returns 409 Conflict.
Error Format
{
"error": "tenant already exists",
"code": "Conflict",
"status": 409
}
Pagination
List endpoints accept ?limit=N&offset=M query parameters. The response includes
total and items.
Endpoints by Resource
- Tenants — cluster lifecycle
- Node Groups — machine groups within a tenant
- Machines — individual nodes
- Config Patches — Talos config overlays
- Projected State — TF-state projection
- Health — on-demand health probes