Rotate an API key and return the new secret.
🔒 The “admin-key” is protected and cannot be rotated.
REQUIRED: Bearer token authentication using your API key. Format: 'Bearer sk_xxxxxxxxxxxxx'. You can create API keys in the Mixpeek dashboard under Organization Settings.
Successful Response
API key response including the plaintext secret.
SHA-256 hash of the plaintext key.
Organization internal identifier.
Identifier of the user who owns the key.
Human-friendly key label.
Public identifier for the API key.
Visible prefix of the API key for user identification (e.g., 'sk_abc123...'). Shows the first 10 characters of the plaintext key to help users identify which key is which in lists, without exposing the full secret. This follows industry best practices from GitHub, Stripe, and AWS. Generated automatically for new keys. Older keys may not have this field.
10 - 13"sk_abc123..."
Organization public identifier (denormalized).
Optional description explaining the key usage.
Permissions granted to the key (least privilege recommended).
Simplified API key permissions.
This four-value enum replaces the legacy 16-permission model. Keep usage simple: prefer the least privileged option that satisfies the workflow.
Hierarchy (strongest -> weakest): ADMIN > DELETE > WRITE > READ.
read, write, delete, admin Resource-level scopes restricting the key.
Optional per-key rate limit override in requests per minute.
Lifecycle status of the key (active, revoked, expired).
active, revoked, expired UTC timestamp when the key automatically expires.
UTC timestamp of the last successful request using the key.
UTC timestamp when the key was created.
User identifier that created the key.
UTC timestamp when the key was revoked (if applicable).
User identifier that revoked the key (if applicable).