Tools
This is a reference catalogue. Tools cannot be configured or run from this page.
Add Key Roles
UNKEY_ADD_KEY_ROLESAdd existing roles to a customer API key without removing its current roles or direct permissions.
Consume Multiple Rate Limits
UNKEY_CONSUME_MULTIPLE_RATELIMITSIrreversibly 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.
Consume Rate Limit
UNKEY_CONSUME_RATELIMITIrreversibly 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
UNKEY_CREATE_APICreate an API namespace for organizing and issuing customer API keys.
Create API Key
UNKEY_CREATE_API_KEYCreate 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
UNKEY_CREATE_EXISTING_KEY_PORTAL_SESSIONCreate 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
UNKEY_CREATE_IDENTITYCreate an identity that groups customer API keys under one external entity with shared metadata and rate limits.
Create or Add Key Permissions
UNKEY_CREATE_OR_ADD_KEY_PERMISSIONSCreate 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
UNKEY_CREATE_PERMISSIONCreate an RBAC permission with a unique slug for assignment to roles or customer API keys.
Create Portal
UNKEY_CREATE_PORTALCreate 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
UNKEY_CREATE_PORTAL_DOMAINAttach a custom domain to an Unkey portal, start asynchronous DNS verification, and return the records that must be published.
Create Rate Limit Namespace
UNKEY_CREATE_RATELIMIT_NAMESPACECreate a named rate-limit namespace and return the rlns_ namespace ID used by quota inspection and consumption tools.
Create Role
UNKEY_CREATE_ROLECreate an RBAC role without attaching or creating permissions.
Create Role and Permissions
UNKEY_CREATE_ROLE_AND_PERMISSIONSCreate 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
UNKEY_GET_APIRetrieve an API namespace by its API ID.
Get API Key
UNKEY_GET_API_KEYRetrieve 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
UNKEY_GET_API_REQUEST_METRICSCount requests served by the Unkey API for the connected workspace per time bucket, split into successful, client-error, and server-error totals.
Get Identity
UNKEY_GET_IDENTITYRetrieve an identity by its Unkey identity ID or external ID.
Get Permission
UNKEY_GET_PERMISSIONRetrieve one RBAC permission by its permission ID or slug.
Get Portal
UNKEY_GET_PORTALRetrieve 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.