Unkey

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

43 actionsAPI key

Connect Unkey

What your agent can do in Unkey

Looks up

  • Get APIRetrieve an API namespace by its API ID.
  • Get API KeyRetrieve metadata, status, permissions, roles, and usage settings for a customer API key by key ID.
  • 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…
  • Get IdentityRetrieve an identity by its Unkey identity ID or external ID.
  • Get PermissionRetrieve one RBAC permission by its permission ID or slug.
  • Get PortalRetrieve one customer portal by portal ID, slug, keyspace ID, or app ID.
  • Get Portal DomainRetrieve one portal custom domain, including its verification status and required DNS records.
  • Get Rate Limit OverrideRetrieve one rate-limit override by namespace and its exact identifier pattern.
  • Get RoleRetrieve one RBAC role and its assigned permissions by role ID or name.
  • Get Workspace FlagsGet feature flags for the connected workspace, keyed by flag slug, including each flag's current value and opt-in or opt-out availability.
Show 14 more
  • Get Workspace LimitsReturn every workspace plan limit and its current usage where available.
  • Get Workspace UsageReturn billable API operations, Compute usage, and active gateway keys for the current UTC month or one requested recent calendar month.
  • Identify API KeyIdentify a customer API key from its complete plaintext value and return the key's metadata, status, permissions, roles, usage settings,…
  • List API KeysList one page of customer API keys in an API namespace, optionally filtered by external identity.
  • List API RequestsList one page of recent Unkey API requests for the connected workspace, newest first.
  • List IdentitiesList one page of identities in the connected Unkey workspace, optionally filtering by identity ID or external ID.
  • List PermissionsList one page of RBAC permissions in the connected Unkey workspace, optionally filtering by permission text.
  • List Portal DomainsList all custom domains attached to one Unkey portal, including each domain's verification status and required DNS records.
  • List Portal SessionsList one page of end users with revocable sessions on a portal, including pending and active sessions.
  • List Rate Limit NamespacesList one page of readable rate-limit namespaces in the connected Unkey workspace, newest first, with optional text search.
  • List Rate Limit OverridesList one page of custom rate-limit overrides configured in a namespace, including each identifier pattern, request limit, and window…
  • List RolesList one page of RBAC roles and their assigned permissions in the connected Unkey workspace, optionally filtering by role ID, name, or…
  • Query Rate Limit AnalyticsRun a read-only SQL query against Unkey rate-limit analytics for the connected workspace.
  • Query Verification AnalyticsRun a read-only SQL query against Unkey key-verification analytics for the connected workspace.

Takes action

  • Add Key RolesAdd existing roles to a customer API key without removing its current roles or direct permissions.
  • Consume Multiple Rate LimitsIrreversibly consume quota for up to 100 independent Unkey rate limits.
  • Consume Rate LimitIrreversibly consume quota for one identifier in an existing Unkey rate-limit namespace.
  • Create APICreate an API namespace for organizing and issuing customer API keys.
  • Create API KeyCreate a customer API key in an API namespace and return its one-time plaintext key value.
  • 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…
  • Create IdentityCreate an identity that groups customer API keys under one external entity with shared metadata and rate limits.
  • Create or Add Key PermissionsCreate any missing workspace permissions for the supplied slugs, reuse existing workspace permissions, and attach all supplied slugs…
  • Create PermissionCreate an RBAC permission with a unique slug for assignment to roles or customer API keys.
  • Create PortalCreate a keyspace-backed customer portal for free API Management.
Show 9 more
  • 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 NamespaceCreate a named rate-limit namespace and return the rlns_ namespace ID used by quota inspection and consumption tools.
  • Create RoleCreate an RBAC role without attaching or creating permissions.
  • Create Role and PermissionsCreate an RBAC role, create any missing workspace permissions for the supplied slugs, reuse existing workspace permissions, and attach all…
  • Inspect Multiple Rate LimitsInspect up to 100 independent Unkey rate limits with cost zero.
  • Inspect Rate LimitInspect quota for one identifier in an existing Unkey rate-limit namespace with cost zero.
  • Verify and Consume API KeyVerify a customer API key while explicitly consuming a positive number of credits and any requested rate-limit quota.
  • Verify Portal DomainRestart asynchronous DNS verification for a pending or failed portal domain after correcting its records.
  • Verify, Migrate, and Consume API KeyVerify a customer API key using a provider-configured on-demand migration that may create or migrate a missing legacy key.

More developer apps