Add Key Roles
Add existing roles to a customer API key without removing its current roles or direct permissions.
Unkey provides API key management, authorization, rate limiting, usage analytics, and related platform APIs.
Add existing roles to a customer API key without removing its current roles or direct permissions.
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 limits still return HTTP 200.
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 an API namespace for organizing and issuing customer API keys.
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 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 an identity that groups customer API keys under one external entity with shared metadata and rate limits.
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 an RBAC permission with a unique slug for assignment to roles or customer API keys.
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.
Attach a custom domain to an Unkey portal, start asynchronous DNS verification, and return the records that must be published.
Create a named rate-limit namespace and return the rlns_ namespace ID used by quota inspection and consumption tools.
Create an RBAC role without attaching or creating 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.
Retrieve an API namespace by its API ID.
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.
Count requests served by the Unkey API for the connected workspace per time bucket, split into successful, client-error, and server-error totals.
Retrieve an identity by its Unkey identity ID or external ID.
Retrieve one RBAC permission by its permission ID or slug.
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.
Retrieve one portal custom domain, including its verification status and required DNS records.
Retrieve one rate-limit override by namespace and its exact identifier pattern.
Retrieve one RBAC role and its assigned permissions by role ID or name.
Get feature flags for the connected workspace, keyed by flag slug, including each flag's current value and opt-in or opt-out availability.
Return every workspace plan limit and its current usage where available.
Return billable API operations, Compute usage, and active gateway keys for the current UTC month or one requested recent calendar month.
Identify a customer API key from its complete plaintext value and return the key's metadata, status, permissions, roles, usage settings, and identity.
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 aggregate passed value and every item's passed value because exceeded limits still return HTTP 200.
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 create one. Inspect success rather than the HTTP status.
List one page of customer API keys in an API namespace, optionally filtered by external identity. Plaintext key values are never requested.
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 response credentials.
List one page of identities in the connected Unkey workspace, optionally filtering by identity ID or external ID.
List one page of RBAC permissions in the connected Unkey workspace, optionally filtering by permission text.
List all custom domains attached to one Unkey portal, including each domain's verification status and required DNS records.
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 endpoint as unreleased and subject to change.
List one page of readable rate-limit namespaces in the connected Unkey workspace, newest first, with optional text search.
List one page of custom rate-limit overrides configured in a namespace, including each identifier pattern, request limit, and window duration.
List one page of RBAC roles and their assigned permissions in the connected Unkey workspace, optionally filtering by role ID, name, or description.
Run a read-only SQL query against Unkey rate-limit analytics for the connected workspace. This action only queries the rate-limit dataset.
Run a read-only SQL query against Unkey key-verification analytics for the connected workspace. This action only queries the key-verification dataset.
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.
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.
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 because HTTP success can still mean invalid.
The Unkey integration connects Dench directly to Unkey, so agents can read and act on your Unkey data as part of everyday work — answering questions in chat, keeping your CRM in sync, and running automations without anyone copying data between tools.
43 actions are available for agents to invoke on your behalf. Every call runs through Unkey's own authorization, scoped to the account you connect.
Sign in to your Dench workspace and open Integrations.
Find Unkey and click Connect — you'll authorize access through Unkey's own sign-in flow. No API keys or code required.
Ask an agent to use Unkey in chat, or call it from an automation.
Manage or disconnect the connection any time from workspace settings.
The Dench Unkey integration connects your AI CRM to Unkey, so AI agents can work with your Unkey data as part of chats, automations, and CRM workflows. You connect your account once, and every agent in your workspace can use it — governed by your workspace permissions.
The Unkey integration currently exposes 43 actions, including Add Key Roles, Consume Multiple Rate Limits, Consume Rate Limit, Create API, Create API Key, and Create Existing-Key Portal Session. Agents invoke them on your behalf from chat or from automations.
No. You connect Unkey from your Dench workspace using Unkey's own sign-in and authorization flow — no API keys to copy, no glue code to maintain.
Connections are authorized through Unkey's own authentication flow, and Dench stores only the authorization needed to act on your behalf. You can review and disconnect the Unkey connection from your workspace settings at any time.