# Unkey

Unkey provides API key management, authorization, rate limiting, usage analytics, and related platform APIs.

Category: Developer. Connect from any SulusAssist agent at https://assist.sulus.ai/integrations/unkey/.

## Actions

- **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.
- **Consume Rate Limit**: Irreversibly consume quota for one identifier in an existing Unkey rate-limit namespace.
- **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.
- **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…
- **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…
- **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.
- **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…
- **Get API** (read-only): Retrieve an API namespace by its API ID.
- **Get API Key** (read-only): Retrieve metadata, status, permissions, roles, and usage settings for a customer API key by key ID.
- **Get API Request Metrics** (read-only): Count requests served by the Unkey API for the connected workspace per time bucket, split into successful, client-error, and server-error…
- **Get Identity** (read-only): Retrieve an identity by its Unkey identity ID or external ID.
- **Get Permission** (read-only): Retrieve one RBAC permission by its permission ID or slug.
- **Get Portal** (read-only): Retrieve one customer portal by portal ID, slug, keyspace ID, or app ID.
- **Get Portal Domain** (read-only): Retrieve one portal custom domain, including its verification status and required DNS records.
- **Get Rate Limit Override** (read-only): Retrieve one rate-limit override by namespace and its exact identifier pattern.
- **Get Role** (read-only): Retrieve one RBAC role and its assigned permissions by role ID or name.
- **Get Workspace Flags** (read-only): 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** (read-only): Return every workspace plan limit and its current usage where available.
- **Get Workspace Usage** (read-only): Return billable API operations, Compute usage, and active gateway keys for the current UTC month or one requested recent calendar month.
- **Identify API Key** (read-only): Identify a customer API key from its complete plaintext value and return the key's metadata, status, permissions, roles, usage settings,…
- **Inspect Multiple Rate Limits**: Inspect up to 100 independent Unkey rate limits with cost zero.
- **Inspect Rate Limit**: Inspect quota for one identifier in an existing Unkey rate-limit namespace with cost zero.
- **List API Keys** (read-only): List one page of customer API keys in an API namespace, optionally filtered by external identity.
- **List API Requests** (read-only): List one page of recent Unkey API requests for the connected workspace, newest first.
- **List Identities** (read-only): List one page of identities in the connected Unkey workspace, optionally filtering by identity ID or external ID.
- **List Permissions** (read-only): List one page of RBAC permissions in the connected Unkey workspace, optionally filtering by permission text.
- **List Portal Domains** (read-only): List all custom domains attached to one Unkey portal, including each domain's verification status and required DNS records.
- **List Portal Sessions** (read-only): List one page of end users with revocable sessions on a portal, including pending and active sessions.
- **List Rate Limit Namespaces** (read-only): List one page of readable rate-limit namespaces in the connected Unkey workspace, newest first, with optional text search.
- **List Rate Limit Overrides** (read-only): List one page of custom rate-limit overrides configured in a namespace, including each identifier pattern, request limit, and window…
- **List Roles** (read-only): List one page of RBAC roles and their assigned permissions in the connected Unkey workspace, optionally filtering by role ID, name, or…
- **Query Rate Limit Analytics** (read-only): Run a read-only SQL query against Unkey rate-limit analytics for the connected workspace.
- **Query Verification Analytics** (read-only): Run a read-only SQL query against Unkey key-verification analytics for the connected workspace.
- **Verify and Consume API Key**: Verify a customer API key while explicitly consuming a positive number of credits and any requested rate-limit quota.
- **Verify Portal Domain**: Restart asynchronous DNS verification for a pending or failed portal domain after correcting its records.
- **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.
