Tools
This is a reference catalogue. Tools cannot be configured or run from this page.
Unkey v2 portal revoke session
UNKEY_MCP_UNKEY_V2_PORTAL_REVOKE_SESSIONRevoke every live session an end user holds on a portal. Unreleased and subject to change without notice. Sessions that were created but not yet opened are revoked too, so their portal URLs stop working. Revocation is not instantaneous: session lookups are cached briefly, so a request already in flight may still succeed. Revoking ends existing sessions only. To keep the end user out, also stop calling `portal.createSession` for them. Calling this again for the same end user is safe and revokes nothing. **Required Permissions** Your root key must have `unkey:v1:<workspace_id>:projects/<project_id>/portals/<portal_id>/sessions/*#write` or a broader grant that includes it. Dashboard roles can grant this permission. Unlike `portal.createSession`, a dashboard session with this permission can also call this endpoint. A root key that cannot read the portal's sessions gets **404**. One that can read them but lacks the permission gets **403**.
Unkey v2 portal update portal
UNKEY_MCP_UNKEY_V2_PORTAL_UPDATE_PORTALChange a portal's slug, display name, the resource it serves, its enabled state, or its branding. Unreleased and subject to change without notice. Only the fields you send change. Omitting a field leaves it as it is, and for branding, sending null clears it. Send at most one of `keyspaceId` or `appId`. Two changes affect your end users immediately: - Re-pointing at a different resource revokes the portal's live sessions, because a session carries the scope it was minted with. - Disabling stops new sessions and revokes the live ones. Re-enabling does not restore them. **Required Permissions** Your root key must have `write` permission on `unkey:v1:<workspace_id>:projects/<project_id>/portals/<portal_id>`. A broader grant, such as `unkey:v1:<workspace_id>:**#write`, also permits updates. To change the mapped resource, your root key must also have `read` permission on the target: - `unkey:v1:<workspace_id>:projects/<project_id>/keyspaces/<keyspace_id>#read` for a keyspace. - `unkey:v1:<workspace_id>:projects/<project_id>/apps/<app_id>#read` for an app. A root key that cannot read the portal gets **404**. One that can read it but lacks the permission gets **403**.
Unkey v2 portal verify domain
UNKEY_MCP_UNKEY_V2_PORTAL_VERIFY_DOMAINRestart verification for a portal domain. Call this after you correct the DNS records of a domain that shows `failed`, or to give a `pending` domain a new 24-hour verification period. The endpoint returns when Unkey accepts the retry. Poll `portal.getDomain` for the result. A domain that is already `verified` returns a 202 and starts nothing. Requires `unkey:v1:<workspace_id>:projects/<project_id>/portals/<portal_id>/domains/<domain_id>#write`. Use `portals/<portal_id>/domains/*#write` to manage every domain on the portal. Without the permission this returns **404**, not 403, unless the key can read the portal or the domain.
Unkey v2 projects create project
UNKEY_MCP_UNKEY_V2_PROJECTS_CREATE_PROJECTCreate a project to group deployments and applications under a workspace-scoped slug. The slug you provide is the stable, caller-defined handle used to reference this project in subsequent operations (get, update, delete). It must be unique within your workspace. **Important**: The slug cannot collide with an existing project in your workspace. A duplicate slug returns a 409 conflict. **Required Permissions** Your root key must have the following permission: - `project.*.create_project` (to create projects in your workspace)
Unkey v2 projects delete project
UNKEY_MCP_UNKEY_V2_PROJECTS_DELETE_PROJECTDelete an existing project in your workspace, identified by its id. Deletion is asynchronous and eventually consistent. The project and all of its associated resources (apps, environments, deployments, custom domains) are torn down by a background workflow. A successful response indicates the deletion was enqueued, not that every resource has already been removed. Projects with delete protection enabled cannot be deleted until protection is disabled. **Required Permissions** Your root key must have one of the following permissions: - `unkey:v1:<workspace_id>:projects/*#delete` (to delete any project in the workspace) - `unkey:v1:<workspace_id>:projects/<project_id>#delete` (to delete a specific project)
Unkey v2 projects get project
UNKEY_MCP_UNKEY_V2_PROJECTS_GET_PROJECTRetrieve a single project in your workspace by its id. Use this to fetch project details after creation, verify a project exists before performing operations, or resolve a project's metadata from its id. **Required Permissions** Your root key must have one of the following permissions: - `project.*.read_project` (to read any project) - `project.<project_id>.read_project` (to read a specific project)
Unkey v2 projects list projects
UNKEY_MCP_UNKEY_V2_PROJECTS_LIST_PROJECTSRetrieve a paginated list of projects in your workspace. Use this to build project management dashboards or to enumerate projects for administrative purposes. Results are ordered by project id and returned in pages. When `hasMore` is true, pass the returned `cursor` to fetch the next page. **Required Permissions** Your root key must have the following permission: - `project.*.read_project` (to read projects in your workspace)
Unkey v2 projects update project
UNKEY_MCP_UNKEY_V2_PROJECTS_UPDATE_PROJECTUpdate an existing project in your workspace, identified by its id. The project name, slug, and delete protection setting can be changed. Omitted fields are left unchanged. Changing the slug affects the deployment domains generated for this project. **Required Permissions** Your root key must have one of the following permissions: - `unkey:v1:<workspace_id>:projects/*#write` (to update any project in the workspace) - `unkey:v1:<workspace_id>:projects/<project_id>#write` (to update a specific project)
Unkey v2 ratelimit create namespace
UNKEY_MCP_UNKEY_V2_RATELIMIT_CREATE_NAMESPACECreate a rate limit namespace before you rate limit against it. `ratelimit.limit` also creates a namespace the first time you use its name, when your root key can create namespaces. Use this endpoint when you want the namespace to exist up front, for example to set overrides before the first request. **Important**: Names are unique within your workspace, deleted namespaces included. A name that is in use or was deleted returns 409. **Required Permissions** Your root key must have the following permission: - `unkey:v1:<workspace_id>:projects/*/ratelimits/namespaces/*#write`
Unkey v2 ratelimit delete namespace
UNKEY_MCP_UNKEY_V2_RATELIMIT_DELETE_NAMESPACEDelete a rate limit namespace and all of its overrides, identified by the namespace ID or name. **Important**: A deleted name cannot be reused. `ratelimit.limit` and `ratelimit.multiLimit` return 410 for it instead of creating a new namespace, so a deleted namespace does not turn into unlimited traffic. Other API nodes can take up to a minute to see the deletion. **Required Permissions** Your root key must have one of the following permissions: - `unkey:v1:<workspace_id>:projects/*/ratelimits/namespaces/*#delete` (to delete any namespace) - `unkey:v1:<workspace_id>:projects/<project_id>/ratelimits/namespaces/<namespace_id>#delete` (to delete a specific namespace)
Unkey v2 ratelimit delete override
UNKEY_MCP_UNKEY_V2_RATELIMIT_DELETE_OVERRIDEPermanently remove a rate limit override. Affected identifiers immediately revert to the namespace default. Use this to remove temporary overrides, reset identifiers to standard limits, or clean up outdated rules. **Important:** Deletion is immediate and permanent. The override cannot be recovered and must be recreated if needed again. **Permissions:** Requires `unkey:v1:<workspace_id>:projects/<project_id>/ratelimits/namespaces/<namespace_id>/overrides/<override_id>#delete`, or a wildcard URN permission that includes this override and action. Without read access to the override, insufficient permissions return 404. With read access but no delete permission, the response is 403.
Unkey v2 ratelimit get override
UNKEY_MCP_UNKEY_V2_RATELIMIT_GET_OVERRIDERetrieve the configuration of a specific rate limit override by its identifier. Use this to inspect override configurations, audit rate limiting policies, or debug rate limiting behavior. **Important:** The identifier must match exactly as specified when creating the override, including wildcard patterns. **Permissions:** Requires `ratelimit.*.read_override` or `ratelimit.<namespace_id>.read_override`
Unkey v2 ratelimit limit
UNKEY_MCP_UNKEY_V2_RATELIMIT_LIMITCheck and enforce rate limits for any identifier (user ID, IP address, API client, etc.). Use this for rate limiting beyond API keys - limit users by ID, IPs by address, or any custom identifier. Supports namespace organization, variable costs, and custom overrides. **Response Codes**: Rate limit checks return HTTP 200 regardless of whether the limit is exceeded — check the `success` field in the response to determine if the request should be allowed. A 429 may be returned if the workspace exceeds its API rate limit. Other 4xx responses indicate auth, namespace existence/deletion, or validation errors (e.g., 410 Gone for deleted namespaces). 5xx responses indicate server errors. **Required Permissions** Your root key must have one of the following permissions: - `ratelimit.*.limit` (to check limits in any namespace) - `ratelimit.<namespace_id>.limit` (to check limits in a specific namespace)
Unkey v2 ratelimit list namespaces
UNKEY_MCP_UNKEY_V2_RATELIMIT_LIST_NAMESPACESRetrieve a paginated list of the rate limit namespaces in your workspace. Use this to find the namespaces your services rate limit against, for example to build an admin view or to look up a namespace ID. Results are ordered newest first and returned in pages. When `hasMore` is true, pass the returned `cursor` to fetch the next page. Deleted namespaces are not returned. The list contains only the namespaces your root key can read. **Required Permissions** Your root key must have one of the following permissions: - `unkey:v1:<workspace_id>:projects/*/ratelimits/namespaces/*#read` (to read any namespace) - `unkey:v1:<workspace_id>:projects/<project_id>/ratelimits/namespaces/<namespace_id>#read` (to read a specific namespace)
Unkey v2 ratelimit list overrides
UNKEY_MCP_UNKEY_V2_RATELIMIT_LIST_OVERRIDESRetrieve a paginated list of all rate limit overrides in a namespace. Use this to audit rate limiting policies, build admin dashboards, or manage override configurations. **Important:** Results are paginated. Use the cursor parameter to retrieve additional pages when more results are available. **Permissions:** Requires `ratelimit.*.read_override` or `ratelimit.<namespace_id>.read_override`
Unkey v2 ratelimit multi limit
UNKEY_MCP_UNKEY_V2_RATELIMIT_MULTI_LIMITCheck and enforce multiple rate limits in a single request for any identifiers (user IDs, IP addresses, API clients, etc.). Use this to efficiently check multiple rate limits at once. Each rate limit check is independent and returns its own result with a top-level `passed` indicator showing if all checks succeeded. **Response Codes**: Rate limit checks return HTTP 200 regardless of whether limits are exceeded — check the `passed` field to see if all limits passed, or the `success` field in each individual result. A 429 may be returned if the workspace exceeds its API rate limit. Other 4xx responses indicate auth, namespace existence/deletion, or validation errors (e.g., 410 Gone for deleted namespaces). 5xx responses indicate server errors. **Required Permissions** Your root key must have `unkey:v1:<workspace_id>:projects/<project_id>/ratelimits/namespaces/<namespace_id>#limit` for every namespace in the request. Use `*` for the namespace ID to cover all namespaces in a project. To create missing namespaces automatically, your root key must also have `unkey:v1:<workspace_id>:projects/<project_id>/ratelimits/namespaces/*#write` for the workspace's default project. The `#limit` permission must cover each created namespace.
Unkey v2 ratelimit set override
UNKEY_MCP_UNKEY_V2_RATELIMIT_SET_OVERRIDECreate or update a custom rate limit for specific identifiers, bypassing the namespace default. Use this to create premium tiers with higher limits, apply stricter limits to specific users, or implement emergency throttling. **Important:** Overrides take effect immediately and completely replace the default limit for matching identifiers. Use wildcard patterns (e.g., `premium_*`) to match multiple identifiers. **Permissions:** Requires `unkey:v1:<workspace_id>:projects/<project_id>/ratelimits/namespaces/<namespace_id>/overrides/*#write` to create overrides. To update an override, you can replace `*` with its override ID.
Unkey v2 ratelimit update namespace
UNKEY_MCP_UNKEY_V2_RATELIMIT_UPDATE_NAMESPACERename a rate limit namespace, identified by its ID or current name. Renaming to the current name returns the namespace without a write. **Important**: Overrides stay with the namespace. Requests that pass the namespace by name, such as `ratelimit.limit`, must use the new name. A `ratelimit.limit` call with the old name can create a new, empty namespace with that name. A name that is in use or was deleted returns 409. Other API nodes can take up to a minute to see the new name. **Required Permissions** Your root key must have one of the following permissions: - `unkey:v1:<workspace_id>:projects/*/ratelimits/namespaces/*#write` (to rename any namespace) - `unkey:v1:<workspace_id>:projects/<project_id>/ratelimits/namespaces/<namespace_id>#write` (to rename a specific namespace)
Unkey v2 workspace get flags
UNKEY_MCP_UNKEY_V2_WORKSPACE_GET_FLAGSGet feature flags for the workspace associated with your credentials. Each flag is keyed by its slug and includes its current value, description, and whether it can be enabled or disabled. A workspace-specific value takes precedence over the flag's default. If no flags are available, `data` is an empty object. This endpoint takes no request body. **Required Permissions** Your root key must have the following permission: - `unkey:v1:<workspace_id>:flags#read`
Unkey v2 workspace get limits
UNKEY_MCP_UNKEY_V2_WORKSPACE_GET_LIMITSGet every limit of your workspace, with the current value against each limit that has one. Use this before an operation that a limit can reject, for example to see how many custom domains or log drains remain, or how much CPU, memory, and disk a new deployment can still reserve. The request takes no parameters. Each limit has a `limit`, which is `null` when unlimited, and a `current` value when the limit has one. Billable operations count the current calendar month in UTC. The Compute limits are present only when the workspace has a Compute plan. **Required Permissions** Your root key must have the following permission: - `unkey:v1:<workspace_id>:limits#read`