Authorizations
Bearer token authentication using your API key. Format: 'Bearer your_api_key'. To get an API key, create an account at mixpeek.com/start and generate a key in your account settings.
Headers
REQUIRED: Bearer token authentication using your API key. Format: 'Bearer sk_xxxxxxxxxxxxx'. You can create API keys in the Mixpeek dashboard under Organization Settings.
"Bearer sk_live_abc123def456"
"Bearer sk_test_xyz789"
Body
Partial update payload for an API key.
New key label.
1 - 100Updated description for the key.
500Replace existing permissions with the provided list.
Replace existing scopes. Use empty list for global access.
Updated per-key rate limit override.
x >= 1New expiration timestamp. Use null to remove expiration.
Manually set key status (e.g. revoke). Lifecycle state of an API key.
Status determines whether an API key can be used for authentication:
- ACTIVE: Key is valid and can be used for API requests. Last_used_at timestamp is updated on each successful authentication.
- REVOKED: Key has been manually revoked by an admin or user. Cannot be reactivated. A new key must be created instead.
- EXPIRED: Key has passed its expires_at timestamp. Automatically set by the authentication system. Cannot be reactivated.
active, revoked, expired Response
Successful Response
API key document stored in MongoDB.
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.
Organization public identifier (denormalized).
Optional description explaining the key usage.
Permissions granted to the key (least privilege recommended).
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).

