Unkey
Unkey provides API key management, authorization, rate limiting, usage analytics, and related platform APIs.
Integration
- Vendor
- Unkey
- Category
- developer-tools
- Auth
- API_KEY
- Tools
- 43
- Composio slug
unkey
Tools
- Add Key Roles
Add existing roles to a customer API key without removing its current roles or direct permissions.
- Consume Multiple Rate Limits
Irreversibly consume quota for up to 100 independent Unkey rate limits. Every namespace must already exist; use CREATE_RATELIMIT_NAMESPACE to create one. Inspect the aggregate passed value and every item's passed value because exceeded limi
- Consume Rate Limit
Irreversibly consume quota for one identifier in an existing Unkey rate-limit namespace. The namespace must already exist; use CREATE_RATELIMIT_NAMESPACE to create one. Inspect success rather than the HTTP status.
- Create API
Create an API namespace for organizing and issuing customer API keys.
- Create API Key
Create a customer API key in an API namespace and return its one-time plaintext key value. Roles must already exist in the workspace. Handle the returned key as a secret; add direct permissions afterward with CREATE_OR_ADD_KEY_PERMISSIONS.
- Create Existing-Key Portal Session
Create an end-user portal session with key read, key reroll, and analytics access for existing keys, then return its single-use redirect URL. This action does not grant the keys:create capability.
- Create Identity
Create an identity that groups customer API keys under one external entity with shared metadata and rate limits.
- Create or Add Key Permissions
Create any missing workspace permissions for the supplied slugs, reuse existing workspace permissions, and attach all supplied slugs directly to a customer API key without removing existing direct or role-based access.
- Create Permission
Create an RBAC permission with a unique slug for assignment to roles or customer API keys.
- Create Portal
Create a keyspace-backed customer portal for free API Management. This action does not create portals backed by paid Compute apps. The provider marks this endpoint as unreleased and subject to change.
- Create Portal Domain
Attach a custom domain to an Unkey portal, start asynchronous DNS verification, and return the records that must be published.
- Create Rate Limit Namespace
Create a named rate-limit namespace and return the rlns_ namespace ID used by quota inspection and consumption tools.
- Create Role
Create an RBAC role without attaching or creating permissions.
- Create Role and Permissions
Create an RBAC role, create any missing workspace permissions for the supplied slugs, reuse existing workspace permissions, and attach all of them to the new role.
- Get API
Retrieve an API namespace by its API ID.
- Get API Key
Retrieve metadata, status, permissions, roles, and usage settings for a customer API key by key ID. This action never requests or returns plaintext key material.
- Get API Request Metrics
Count requests served by the Unkey API for the connected workspace per time bucket, split into successful, client-error, and server-error totals.
- Get Identity
Retrieve an identity by its Unkey identity ID or external ID.
- Get Permission
Retrieve one RBAC permission by its permission ID or slug.
- Get Portal
Retrieve one customer portal by portal ID, slug, keyspace ID, or app ID; provide exactly one selector. The provider marks this endpoint as unreleased and subject to change.
- Get Portal Domain
Retrieve one portal custom domain, including its verification status and required DNS records.
- Get Rate Limit Override
Retrieve one rate-limit override by namespace and its exact identifier pattern.
- Get Role
Retrieve one RBAC role and its assigned permissions by role ID or name.
- Get Workspace Flags
Get feature flags for the connected workspace, keyed by flag slug, including each flag's current value and opt-in or opt-out availability.
- Get Workspace Limits
Return every workspace plan limit and its current usage where available.
- Get Workspace Usage
Return billable API operations, Compute usage, and active gateway keys for the current UTC month or one requested recent calendar month.
- Identify API Key
Identify a customer API key from its complete plaintext value and return the key's metadata, status, permissions, roles, usage settings, and identity.
- Inspect Multiple Rate Limits
Inspect up to 100 independent Unkey rate limits with cost zero. This does not consume quota, but Unkey still tracks each non-idempotent check. Every namespace must already exist; use CREATE_RATELIMIT_NAMESPACE to create one. Inspect the agg
- Inspect Rate Limit
Inspect quota for one identifier in an existing Unkey rate-limit namespace with cost zero. This does not consume quota, but Unkey still tracks the non-idempotent check. The namespace must already exist; use CREATE_RATELIMIT_NAMESPACE to cre
- List API Keys
List one page of customer API keys in an API namespace, optionally filtered by external identity. Plaintext key values are never requested.
- List API Requests
List one page of recent Unkey API requests for the connected workspace, newest first. The required request and response header/body fields are returned as local redaction placeholders so log-read access cannot expose application payloads or
- List Identities
List one page of identities in the connected Unkey workspace, optionally filtering by identity ID or external ID.
- List Permissions
List one page of RBAC permissions in the connected Unkey workspace, optionally filtering by permission text.
- List Portal Domains
List all custom domains attached to one Unkey portal, including each domain's verification status and required DNS records.
- List Portal Sessions
List one page of end users with revocable sessions on a portal, including pending and active sessions. This administration operation authenticates with the connected workspace root key, not a portal session cookie. The provider marks this e
- List Rate Limit Namespaces
List one page of readable rate-limit namespaces in the connected Unkey workspace, newest first, with optional text search.
- List Rate Limit Overrides
List one page of custom rate-limit overrides configured in a namespace, including each identifier pattern, request limit, and window duration.
- List Roles
List one page of RBAC roles and their assigned permissions in the connected Unkey workspace, optionally filtering by role ID, name, or description.
- Query Rate Limit Analytics
Run a read-only SQL query against Unkey rate-limit analytics for the connected workspace. This action only queries the rate-limit dataset.
- Query Verification Analytics
Run a read-only SQL query against Unkey key-verification analytics for the connected workspace. This action only queries the key-verification dataset.
- Verify and Consume API Key
Verify a customer API key while explicitly consuming a positive number of credits and any requested rate-limit quota. Inspect valid and code because an HTTP success can still report a failed verification.
- Verify, Migrate, and Consume API Key
Verify a customer API key using a provider-configured on-demand migration that may create or migrate a missing legacy key. This operation consumes the requested positive credit cost and any explicit rate-limit costs. Inspect valid and code
- Verify Portal Domain
Restart asynchronous DNS verification for a pending or failed portal domain after correcting its records. This request is safe to retry; an already verified domain is accepted without starting another workflow.
Setup
- Create or open a Switchy Project.
- Open Integrations and connect Unkey.
- Authorise through api_key. Switchy stores the connection against your org.
- Everyone in the Project can now @-mention the Unkey tools in chat.
What teammates see: by default, memories from Unkey are scoped to the Project (PROJECT visibility) - you can mark any memory PRIVATE or share it ORG-wide.
Works well with
Top models
Compatibility data appears once enough Projects have used this MCP together with a given model.