Create a cluster token
Use this to create additional SATs for an existing cluster (e.g., for zero-downtime token rotation). The initial SAT is created automatically by CreateCluster.
Scope: cluster:write
Authorization
bearerAuth Personal Access Token (PAT) or Service Access Token (SAT). Pass the token in the Authorization header: Bearer adm_pat_...
In: header
Path Parameters
The cluster to bind this token to (UUID).
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://admiral.example.com/api/v1/clusters/497f6eca-6276-4993-bfeb-53cbbbba6f08/tokens" \ -H "Content-Type: application/json" \ -d '{}'{ "access_token": { "id": "9f8e7d6c-5b4a-3210-fedc-ba0987654321", "name": "ci-deploy-key", "token_type": "TOKEN_TYPE_PAT", "scopes": [ "deploy:write", "app:read", "env:read" ], "status": "ACCESS_TOKEN_STATUS_ACTIVE", "binding_type": "BINDING_TYPE_USER", "binding_id": "d290f1ee-6c54-4b01-90e6-d701748f0851", "created_by": "d290f1ee-6c54-4b01-90e6-d701748f0851", "expires_at": "2026-06-01T00:00:00Z", "last_used_at": "2025-11-20T14:30:00Z", "created_at": "2025-09-01T10:00:00Z" }, "plain_text_token": "string"}Create a cluster POST
The response includes a `plain_text_token` -- the raw SAT secret shown exactly once. Deploy this token to the K8s agent (e.g., via Helm values or a Kubernetes Secret). The agent uses it to authenticate with AgentAPI.RegisterAgent on first boot. Scope: `cluster:write`
Delete a cluster DELETE
Scope: `cluster:write`