sbx_pat_… prefix; service-account tokens use sbx_sa_… and contain 256 bits of random secret material.
Credential rules
- The API returns the token value only in the creation response.
- PostgreSQL stores an HMAC-SHA-256 digest, never the token.
- Personal tokens expire within 90 days.
- Service-account policy allows 1–365 days; current API defaults use 30 days.
- Scopes, organisation, workspace IDs, and optional environment IDs are explicit.
- Effective access is the intersection of all restrictions and normal permissions.
- Revocation takes effect immediately and active service-account state is checked on every authentication.
Create a personal token
Signed client assertions
Credential administrators can register an Ed25519 public key. A client signs a short-lived EdDSA JWT and exchanges it for a 15-minute bearer credential. The private key stays in the client’s secret manager;iss and sub identify the service account, aud names the token endpoint, jti prevents replay, and requested scopes/workspaces/environments are bounded by the registered account.
See API authentication for request use and the generated API reference for every operation.