Unkey Permissions API

Permission and role management operations

GitHub OpenAPI
Business capability
Identity & Access Management BC-620.20

Operations 8

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /v2/permissions.createPermission Create a permission · Create Permission #
Ask an LLM
“How do I define a new action like documents.read in my RBAC system?”
“Can I create a permission with a hierarchical name like admin.users.delete?”
Tell an agent
Create permission {name} with slug {slug}.
Add a permission {name} described as {description}.
POST /v2/permissions.createRole Create a role · Create Role #
Ask an LLM
“How do I group several permissions into a role?”
“Can I create a role like editor or admin for API keys?”
Tell an agent
Create role {name}.
Create role {name} described as {description}.
POST /v2/permissions.deletePermission Delete a permission · Delete Permission #
Ask an LLM
“How do I remove a permission from every API key and role at once?”
“Is deleting a permission permanent?”
Tell an agent destructive · confirm first
Delete permission {permission}.
Remove the {permission} permission from all keys and roles.
POST /v2/permissions.deleteRole Delete a role · Delete Role #
Ask an LLM
“How do I delete a role so it stops applying to API keys?”
“Can I delete a role that no keys have assigned?”
Tell an agent destructive · confirm first
Delete role {role}.
Remove the {role} role from all assigned keys.
POST /v2/permissions.getPermission Get a permission · Get Permission #
Ask an LLM
“What does a particular permission grant access to?”
“Can I look up a permission by its slug?”
Tell an agent
Get permission {permission}.
Show the details of permission {permission}.
POST /v2/permissions.getRole Get a role · Get Role #
Ask an LLM
“Which permissions are assigned to a given role?”
“Can I fetch a role's details by its name?”
Tell an agent
Get role {role}.
Show the assigned permissions of role {role}.
POST /v2/permissions.listPermissions List permissions · List Permissions #
Ask an LLM
“Which permissions exist in my workspace?”
“Can I page through all permissions?”
Tell an agent
List all permissions.
List {limit} permissions starting from {cursor}.
POST /v2/permissions.listRoles List roles · List Roles #
Ask an LLM
“What roles are defined in my workspace?”
“Can I page through roles?”
Tell an agent
List all roles.
List {limit} roles starting from {cursor}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/unkey:unkey-permissions-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

unkey-permissions-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: Unkey's API provides programmatic access for all resources within our platform.
  title: Unkey Permissions API
  version: 2.0.0
servers:
- url: https://api.unkey.com
security:
- rootKey: []
tags:


# --- truncated at 32 KB (47 KB total) ---
# Full source: https://artifacts.apis.io/unkey/openapi/unkey-permissions-api-openapi.yml