Unkey API Key Management
Workflow capability for managing the full lifecycle of API keys using the Unkey platform. Covers creating, verifying, updating, rotating, and revoking keys, plus managing permissions and roles for fine-grained access control. Used by platform engineers and API providers to issue and govern access to their APIs.
What You Can Do
MCP Tools
create-api-namespace
Create a new API namespace in Unkey for organizing keys
list-api-keys
List all API keys within an API namespace
create-api-key
Create a new API key with optional prefix, name, roles, and rate limits
verify-api-key
Verify an API key and return its validity, permissions, rate limit status
get-api-key
Retrieve full details of an API key by its ID
update-api-key
Update an API key's name, metadata, rate limits, or enabled status
delete-api-key
Permanently delete one or more API keys
reroll-api-key
Rotate an API key to generate a new key value while preserving settings
add-key-permissions
Add permissions to an existing API key
add-key-roles
Add roles to an existing API key
create-permission
Create a new permission definition in the workspace
list-permissions
List all permissions in the workspace
create-role
Create a new role grouping multiple permissions
list-roles
List all roles in the workspace