Skip to main content
POST
Generate a Kubernetes access token

Authorizations

Authorization
string
header
required

Bearer token for the authenticated caller.

Headers

akua-context
string

Optional workspace/scope context for the request. Carries a single workspace wire id (ws_…) today. Only needed for broad tokens - a workspace-owned token implies its workspace.

Required string length: 1 - 53
Example:

"ws_j572abc123def4"

Path Parameters

id
string
required

Cluster ID

Required string length: 3 - 54

Response

A Kubernetes access token

token
string
required

Sensitive bearer token for this Cluster’s Kubernetes API only. Valid until expires_at; Kubernetes rechecks your access on every request.

Required string length: 1 - 4096
expires_at
integer
required

Unix timestamp (seconds)

Required range: x >= 0