Tools
This is a reference catalogue. Tools cannot be configured or run from this page.
Unkey v2 analytics get gateway requests
UNKEY_MCP_UNKEY_V2_ANALYTICS_GET_GATEWAY_REQUESTSA query can use only the public alias `gateway_requests_v1`. CTEs, subqueries, UNION, and EXCEPT are permitted. The root key must have the `project.*.read_gateway_requests` permission. Unkey limits each query to the workspace of the root key. To get the data for one project, app, or environment, add a filter on `project_id`, `app_id`, or `environment_id`. The workspace retention period and the workspace query limits apply. For the columns and more query examples, see the gateway request analytics documentation.
Unkey v2 analytics get ratelimits
UNKEY_MCP_UNKEY_V2_ANALYTICS_GET_RATELIMITSQueries may reference only the five public rate limit analytics aliases: `ratelimits_v1`, `ratelimits_per_minute_v1`, `ratelimits_per_hour_v1`, `ratelimits_per_day_v1`, or `ratelimits_per_month_v1`. CTEs, subqueries, UNION, and EXCEPT are supported. Queries are always restricted to the authenticated workspace. Wildcard analytics permission can read every namespace in that workspace; namespace-scoped permissions automatically restrict results to the permitted namespace IDs. Workspace retention and query limits apply.
Unkey v2 analytics get runtime logs
UNKEY_MCP_UNKEY_V2_ANALYTICS_GET_RUNTIME_LOGSA query can use only the public alias `runtime_logs_v1`. CTEs, subqueries, UNION, and EXCEPT are permitted. The root key must have the `project.*.read_runtime_logs` permission. Unkey limits each query to the workspace of the root key. To get the logs of one project, app, environment, or deployment, add a filter on `project_id`, `app_id`, `environment_id`, or `deployment_id`. The workspace retention period and the workspace query limits apply. For the table, the columns, and more query examples, see [Query runtime logs](https://www.unkey.com/docs/compute/observe/analytics-api).
Unkey v2 analytics get verifications
UNKEY_MCP_UNKEY_V2_ANALYTICS_GET_VERIFICATIONSExecute custom SQL queries against your key verification analytics. CTEs, subqueries, UNION, and EXCEPT are supported. Queries must use one of the five public aliases: `key_verifications_v1`, `key_verifications_per_minute_v1`, `key_verifications_per_hour_v1`, `key_verifications_per_day_v1`, or `key_verifications_per_month_v1`. Physical `default.*` table names are unsupported. Queries are always restricted to the authenticated workspace. Wildcard analytics permission can read every API in that workspace; API-scoped permissions automatically restrict results to the permitted APIs. For complete documentation including available tables, columns, data types, query examples, see the schema reference in the API documentation.
Unkey v2 apis get api
UNKEY_MCP_UNKEY_V2_APIS_GET_APIRetrieve basic information about an API namespace including its ID and name. Use this to verify an API exists before performing operations, get the human-readable name when you only have the API ID, or confirm access to a specific namespace. For detailed key information, use the `listKeys` endpoint instead. **Required Permissions** Your root key must have one of the following permissions: - `api.*.read_api` (to read any API) - `api.<api_id>.read_api` (to read a specific API)
Unkey v2 apis list keys
UNKEY_MCP_UNKEY_V2_APIS_LIST_KEYSRetrieve a paginated list of API keys for dashboard and administrative interfaces. Use this to build key management dashboards, filter keys by user with `externalId`, or retrieve key details for administrative purposes. Each key includes status, metadata, permissions, and usage limits. **Important**: Set `decrypt: true` only in secure contexts to retrieve plaintext key values from recoverable keys. **Required Permissions** Your root key must have one of the following permissions for basic key listing: - `api.*.read_key` (to read keys from any API) - `api.<api_id>.read_key` (to read keys from a specific API) Additionally, you need read access to the API itself: - `api.*.read_api` or `api.<api_id>.read_api` Additional permission required for decrypt functionality: - `api.*.decrypt_key` or `api.<api_id>.decrypt_key`
Unkey v2 apps get app
UNKEY_MCP_UNKEY_V2_APPS_GET_APPRetrieve a single app by its id or slug within a project. Use this to fetch app details after creation or to verify an app exists before performing operations. **Required Permissions** Your root key must have one of the following permissions: - `app.*.read_app` (to read any app) - `app.<app_id>.read_app` (to read a specific app)
Unkey v2 apps list apps
UNKEY_MCP_UNKEY_V2_APPS_LIST_APPSRetrieve a paginated list of apps within a project. Use this to enumerate every app in a project. Results are ordered by app id and paginated; when `hasMore` is true, pass the returned `cursor` to fetch the next page. **Required Permissions** Your root key must have the following permission: - `app.*.read_app` (to read apps in any project)
Unkey v2 deployments get deployment
UNKEY_MCP_UNKEY_V2_DEPLOYMENTS_GET_DEPLOYMENTRetrieve a single deployment by its id. Use this to check a deployment's status after creating it, or to inspect the runtime configuration of an existing deployment. **Required Permissions** Your root key must have this permission: - `unkey:v1:<workspace_id>:projects/<project_id>/apps/<app_id>/environments/<environment_id>/deployments/<deployment_id>#read` (use `*` for any level)
Unkey v2 deployments list build logs
UNKEY_MCP_UNKEY_V2_DEPLOYMENTS_LIST_BUILD_LOGSRetrieve the build output of a deployment as a list of log entries, in the order the build printed them. A log entry is one chunk of build output, and can contain several lines or part of a line. Poll this endpoint to follow a running build: - Send the `pagination.cursor` of the last response as `cursor`. The response contains only the entries after it. - When `hasMore` is true, request again now. - When `hasMore` is false, you have all entries so far. Wait, then request again with the same cursor. - The cursor is absent only when the request had no cursor and the build has no entries yet. - A response can contain fewer than `limit` entries and still have `hasMore: true` when the entries are large. New entries become visible up to a few seconds after the build prints them. To know that a build is done, check the deployment status with `getDeployment`. After the status is no longer `building`, request until you get an empty response at least 5 seconds later. When a build attempt is retried, an entry from the earlier attempt can arrive after the cursor has moved past it, and a poll does not return it. A request without a cursor returns it. A deployment from a prebuilt image has no build and returns no entries. Build logs are kept for 3 months. **Required Permissions** Your root key must have the following permission: - `unkey:v1:<workspace_id>:projects/<project_id>/apps/<app_id>/environments/<environment_id>/deployments/<deployment_id>/buildLogs#read`
Unkey v2 deployments list deployments
UNKEY_MCP_UNKEY_V2_DEPLOYMENTS_LIST_DEPLOYMENTSRetrieve a paginated list of deployments within a workspace, newest first. Filter by project, app, environment, lifecycle status, git branch, and creation time. All filters are optional; with none set, every deployment in the workspace is returned. Filters nest: `app` requires `project`, and `environment` and `branch` require both `project` and `app`. Results are paginated; when `hasMore` is true, pass the returned `cursor` to fetch the next page. **Required Permissions** Your root key must have this permission: - `unkey:v1:<workspace_id>:projects/<project_id>/apps/<app_id>/environments/<environment_id>/deployments/*#read` (use `*` for every level you do not filter by) The permission must cover every deployment the filters select: a grant on one environment is not sufficient for a request that spans more than that environment.
Unkey v2 domains get domain
UNKEY_MCP_UNKEY_V2_DOMAINS_GET_DOMAINRetrieve a custom domain and its verification status. Address the domain by its id or by its name. Names are unique per workspace, so `api.acme.com` is sufficient. You do not need to supply a project, app, or environment. Use this endpoint to poll after `domains.createDomain`. Verification runs in the background and checks DNS approximately each minute. `status: verified` means the domain is verified. Unkey has configured routing and requested a certificate. Each entry in `dnsRecords` has a `verified` flag. The flag shows which records Unkey has read back, so you can see which records are still missing. Some providers hide a record from DNS lookups, for example a proxied or flattened routing record. Such a record stays `false` while it serves traffic. `verificationError` gives the reason for the last failed attempt. `dnsRecords` contains the same values that `domains.createDomain` returned. Use it to recover the values without creating the domain again. **Important**: verification stops 24 hours after the domain was created, and the status becomes `failed`. The window starts at `createdAt`, not at the last attempt. **Required Permissions** Your root key must have one of the following permissions: - `environment.*.read_domain` (to read domains in any environment) - `environment.<environment_id>.read_domain` (to read domains in a specific environment)
Unkey v2 domains list domains
UNKEY_MCP_UNKEY_V2_DOMAINS_LIST_DOMAINSList your custom domains with their verification status and DNS records. Filter by project, app, or environment using IDs or slugs, or send `{}` to list domains across your workspace. Use any filter on its own or combine filters to narrow the results. Results match all supplied filters. Omitting `environment` includes all matching environments. Results include only domains you have permission to read, sorted by ID. When `hasMore` is true, send the returned `cursor` to get the next page. `status: verified` means the domain is verified. Unkey has configured routing and requested a certificate. Each domain includes its full `dnsRecords`. Each record has a `verified` flag. The flag shows which records Unkey has read back, so you can see which records are still missing without a second call. Some providers hide a record from DNS lookups, for example a proxied or flattened routing record. Such a record stays `false` while it serves traffic. **Required Permissions** Use a root key with the `environment.*.read_domain` permission. A successful request returns an empty list if no matching domains are readable by your key.
Unkey v2 environments get environment
UNKEY_MCP_UNKEY_V2_ENVIRONMENTS_GET_ENVIRONMENTRetrieve a single environment by its id. Use this to fetch environment details after creation or to verify an environment exists before performing operations. **Required Permissions** Your root key must have one of the following permissions: - `environment.*.read_environment` (to read any environment) - `environment.<environment_id>.read_environment` (to read a specific environment)
Unkey v2 environments list environments
UNKEY_MCP_UNKEY_V2_ENVIRONMENTS_LIST_ENVIRONMENTSRetrieve the environments within an app. Use this to enumerate every environment in an app. Identify the app by its project slug and app slug. Results are ordered by environment id. An app has only a handful of environments, so all of them are returned in a single response. **Required Permissions** Your root key must have the following permission: - `environment.*.read_environment` (to read environments in any app)
Unkey v2 environments list environment variables
UNKEY_MCP_UNKEY_V2_ENVIRONMENTS_LIST_ENVIRONMENT_VARIABLESRetrieve the environment variables for an environment. Identify the environment by its project, app, and environment identifiers. Results are ordered by variable id and paginated; when `hasMore` is true, pass the returned `cursor` to fetch the next page. `recoverable` variables are returned with their decrypted plaintext value. `writeonly` variables never expose a value: only the key, kind, and description are returned. **Required Permissions** Your root key must have one of the following permissions: - `environment.*.read_environment_variables` (for any environment) - `environment.<environment_id>.read_environment_variables` (for a specific environment)
Unkey v2 gateway list policies
UNKEY_MCP_UNKEY_V2_GATEWAY_LIST_POLICIESRetrieve an environment's gateway policies in evaluation order: the gateway evaluates them top to bottom and the first rejection short-circuits the request. The full policy list is returned in a single response. **Required Permissions** Your root key must have one of the following permissions: - `environment.*.read_policies` (for any environment) - `environment.<environment_id>.read_policies` (for a specific environment)
Unkey v2 identities get identity
UNKEY_MCP_UNKEY_V2_IDENTITIES_GET_IDENTITYRetrieve an identity by external ID. Returns metadata, rate limits, and other associated data. Use this to check if an identity exists, view configurations, or build management dashboards. > **Important** > Requires `identity.*.read_identity` permission
Unkey v2 identities list identities
UNKEY_MCP_UNKEY_V2_IDENTITIES_LIST_IDENTITIESGet a paginated list of all identities in your workspace. Returns metadata and rate limit configurations. Perfect for building management dashboards, auditing configurations, or browsing your identities. > **Important** > Requires `identity.*.read_identity` permission
Unkey v2 keys get key
UNKEY_MCP_UNKEY_V2_KEYS_GET_KEYRetrieve detailed key information for dashboard interfaces and administrative purposes. Use this to build key management dashboards showing users their key details, status, permissions, and usage data. You can identify keys by `keyId` or the actual key string. **Important**: Set `decrypt: true` only in secure contexts to retrieve plaintext key values from recoverable keys. **Required Permissions** Your credential must have one of the following permissions for basic key information: - `api.*.read_key` (to read keys from any API) - `api.<api_id>.read_key` (to read keys from a specific API) - `unkey:v1:<workspace_id>:keyspaces/*/keys/*#read_key` (to read keys in any keyspace) - `unkey:v1:<workspace_id>:keyspaces/<keyspace_id>/keys/*#read_key` (to read keys in a specific keyspace) - `unkey:v1:<workspace_id>:keyspaces/<keyspace_id>/keys/<key_id>#read_key` (to read a specific key) Additional permission required for decrypt functionality: - `api.*.decrypt_key` or `api.<api_id>.decrypt_key` - `unkey:v1:<workspace_id>:keyspaces/*/keys/*#decrypt_key` - `unkey:v1:<workspace_id>:keyspaces/<keyspace_id>/keys/*#decrypt_key` - `unkey:v1:<workspace_id>:keyspaces/<keyspace_id>/keys/<key_id>#decrypt_key`