Skip to main content
POST /api/v1/auth/tokens
Create a long-lived token shaped ms_<prefix>_<secret>. The plaintext secret is returned once — store it now. Each token carries a role, an expiry, and a last-used timestamp.
{
  "id": "t_2ghi...",
  "token": "ms_a1b2c3_d4e5f6g7h8i9...",
  "role": "data_plane_admin",
  "expires_at": 1735689600000000
}