byk_-prefixed) is the user-principal credential most CLI, SDK, and direct API calls authenticate with — see Authentication for how it’s used on requests. This page covers managing the keys themselves.
Key management is JWT-only — keys can never manage keys. Every operation below requires a
supabaseJwt and rejects a byk_ key, even one belonging to the same user.Listing keys
APIKeyListResponse: { "api_keys": [ ...APIKey ] }. Each entry exposes only a masked view of the key:
string
required
Identifier for the key, used to revoke it.
string
Optional display label, up to 128 characters.
string
required
The key’s prefix, for identifying it without exposing the secret.
string
required
The last 4 characters of the secret.
string
required
Creation timestamp.
string
Revocation timestamp, if revoked.
Creating a key
APIKeyCreateRequest, optional):
string
Display label, up to 128 characters.
201 with APIKeyCreateResponse:
object
required
The new key’s
APIKey metadata (masked, as in list).string
required
The full secret value. Store it as a user-principal API key.
Revoking a key
204 on success.