Keycloak Admin API

The Admin API from Keycloak — 22 operation(s) for admin.

GitHub OpenAPI

Operations 31

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

GET /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server Get a client's authorization resource server · Get admin realms by realm clients by client uuid authz resource server #
Ask an LLM
“How do I see the authorization resource server settings for a client?”
“Can I check whether a client allows remote resource management?”
Tell an agent
Get the authorization resource server for client {client} in realm {realm}.
Show whether client {client} allows remote resource management.
PUT /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server Replace a client's authorization resource server · Replace admin realms by realm clients by client uuid authz resource server #
Ask an LLM
“How do I change the authorization resource server settings for a client?”
“Can I set the policy enforcement mode on a client's resource server?”
Tell an agent
Replace the authorization resource server for client {client} in realm {realm}.
Set the policy enforcement mode of client {client} to {mode}.
POST /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/import Import a client's authorization resource server from a file · Create admin realms by realm clients by client uuid authz resource server import #
Ask an LLM
“How do I import authorization resource server settings into a client?”
“Can I load a resource server definition from a file for a client?”
Tell an agent
Import authorization resource server settings into client {client} in realm {realm}.
Load a resource server definition from a file into client {client}.
GET /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/permission List a client's authorization permissions · Get admin realms by realm clients by client uuid authz resource server… #
Ask an LLM
“Which permissions are defined on a client's authorization resource server?”
“Can I find the permission that grants a particular scope?”
Tell an agent
List the permissions on the authorization resource server of client {client} in realm {realm}.
Find the permission on client {client} that grants scope {scope}.
POST /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/permission Create an authorization permission for a client · Create admin realms by realm clients by client uuid authz resource server… #
Ask an LLM
“How do I create a new permission on a client's authorization resource server?”
“Can I define a permission for a client's authorization settings from the admin API?”
Tell an agent
Create a new authorization permission on client {client} in realm {realm}.
Define a permission for the resource server of client {client} in realm {realm}.
POST /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/permission/evaluate Evaluate permissions for a user on a client · Create admin realms by realm clients by client uuid authz resource server… #
Ask an LLM
“Can I test what permissions a user would get on a client?”
“What does a permission evaluation return for a given user and resources on a client?”
Tell an agent
Run a permission evaluation for user {userId} on client {client} in realm {realm}.
Evaluate permissions on client {client} in realm {realm} for resources {resources} and user {userId}.
GET /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/permission/providers List providers of a client's authorization permissions · Get admin realms by realm clients by client uuid authz resource server… #
Ask an LLM
“Which permission providers are configured on a client's resource server?”
“Can I see the permission providers for a client?”
Tell an agent
List the permission providers on the authorization resource server of client {client} in realm {realm}.
Show the permission providers configured for client {client}.
GET /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/permission/search Search a client's authorization permissions · Get admin realms by realm clients by client uuid authz resource server… #
Ask an LLM
“How do I search a client's authorization permissions by name?”
“Can I find a permission on a client's resource server by name?”
Tell an agent
Search the permissions on client {client}'s authorization resource server in realm {realm} for {name}.
Find the permission named {name} on client {client}.
GET /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/policy List a client's authorization policies · Get admin realms by realm clients by client uuid authz resource server policy #
Ask an LLM
“Which policies are defined on a client's authorization resource server?”
“Can I find the policy that applies to a particular resource?”
Tell an agent
List the policies on the authorization resource server of client {client} in realm {realm}.
Find the policy on client {client} that applies to resource {resource}.
POST /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/policy Create a client policy · Create admin realms by realm clients by client uuid authz resource server policy #
Ask an LLM
“How do I add an authorization policy to a client?”
“Can I create a new policy for one of my client's authorization rules?”
Tell an agent
Create a policy for client {client} in realm {realm}.
Add a new authorization policy to client {client} in realm {realm}.
POST /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/policy/evaluate Evaluate policies for a user on a client · Create admin realms by realm clients by client uuid authz resource server… #
Ask an LLM
“Can I simulate how a client's policies apply to a user?”
“What does a policy evaluation return for certain resources and roles on a client?”
Tell an agent
Run a policy evaluation for user {userId} on client {client} in realm {realm}.
Evaluate policies on client {client} in realm {realm} using role IDs {roleIds} and resource type {resourceType}.
GET /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/policy/providers List providers of a client's authorization policies · Get admin realms by realm clients by client uuid authz resource server policy… #
Ask an LLM
“Which policy providers are configured on a client's resource server?”
“Can I see the policy providers for a client?”
Tell an agent
List the policy providers on the authorization resource server of client {client} in realm {realm}.
Show the policy providers configured for client {client}.
GET /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/policy/search Search a client's authorization policies · Get admin realms by realm clients by client uuid authz resource server policy… #
Ask an LLM
“How do I search a client's authorization policies by name?”
“Can I find a policy on a client's resource server by name?”
Tell an agent
Search the policies on client {client}'s authorization resource server in realm {realm} for {name}.
Find the policy named {name} on client {client}.
GET /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/resource List a client's authorization resources · Get admin realms by realm clients by client uuid authz resource server resource #
Ask an LLM
“Which resources are defined on a client's authorization resource server?”
“Can I find the resource that exposes a given URI?”
Tell an agent
List the resources on the authorization resource server of client {client} in realm {realm}.
Find the resource on client {client} that exposes URI {uri}.
POST /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/resource Create a client resource · Create admin realms by realm clients by client uuid authz resource server… #
Ask an LLM
“How do I register a protected resource with a client's authorization server?”
“Can I add a resource for a client with managed access?”
Tell an agent
Create a client resource {name} of type {type} for client {client} in realm {realm}.
Add a resource {name} at {uri} under client {client} in realm {realm}.
GET /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/resource/search Search a client's resources · Get admin realms by realm clients by client uuid authz resource server resource… #
Ask an LLM
“Can I search the resources registered with a client's authorization server?”
“Is there a search for client resources by scope or name?”
Tell an agent
Search resources in realm {realm} for client {client}.
Find resources on client {client} in realm {realm} with scope {scope}.
GET /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/resource/{resource-id} Get one authorization resource on a client · Get admin realms by realm clients by client uuid authz resource server resource… #
Ask an LLM
“How do I read a single resource on a client's authorization resource server?”
“Can I fetch one resource by its ID?”
Tell an agent
Get resource {resource} on the authorization resource server of client {client} in realm {realm}.
Show authorization resource {resource} for client {client}.
PUT /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/resource/{resource-id} Replace one authorization resource on a client · Replace admin realms by realm clients by client uuid authz resource server… #
Ask an LLM
“How do I update a single resource on a client's authorization resource server?”
“Can I change the scopes of one resource?”
Tell an agent
Replace resource {resource} on the authorization resource server of client {client} in realm {realm}.
Set the scopes of resource {resource} on client {client} to {scopes}.
DELETE /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/resource/{resource-id} Delete one authorization resource on a client · Delete admin realms by realm clients by client uuid authz resource server… #
Ask an LLM
“How do I delete a single resource from a client's authorization resource server?”
“Can I remove one resource by its ID?”
Tell an agent destructive · confirm first
Delete resource {resource} from the authorization resource server of client {client} in realm {realm}.
Remove authorization resource {resource} from client {client}.
GET /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/resource/{resource-id}/attributes Get a client resource's attributes · Get admin realms by realm clients by client uuid authz resource server resource… #
Ask an LLM
“Can I see the attributes set on a client resource?”
“What attributes are stored on a resource registered with a client?”
Tell an agent
Get attributes for resource {resource} on client {client} in realm {realm}.
Show the attributes of resource {resource} registered with client {client} in realm {realm}.
GET /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/resource/{resource-id}/permissions List permissions for a client's resource server resource · Get admin realms by realm clients by client uuid authz resource server resource… #
Ask an LLM
“Which permissions are granted to a resource server resource in a client?”
“Can I find the permission that allows a specific scope on a resource?”
Tell an agent
List permissions for resource {resource} in client {client} of realm {realm}.
Show the permissions on resource server resource {resource} for client {client} in realm {realm}.
GET /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/resource/{resource-id}/scopes List scopes for a client's resource server resource · Get admin realms by realm clients by client uuid authz resource server resource… #
Ask an LLM
“What scopes are defined on a resource server resource in a client?”
“Can I list the scopes that cover a particular resource?”
Tell an agent
List scopes for resource {resource} in client {client} of realm {realm}.
Show the scopes on resource server resource {resource} for client {client} in realm {realm}.
GET /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/scope List a client's resource server scopes · Get admin realms by realm clients by client uuid authz resource server scope #
Ask an LLM
“What authorization scopes are defined on a client's resource server?”
“Can I list the scopes a client's resource server exposes?”
Tell an agent
List scopes for client {client} in realm {realm}.
Show the authorization scopes defined on client {client}'s resource server in realm {realm}.
POST /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/scope Create a scope on a client's resource server · Create admin realms by realm clients by client uuid authz resource server scope #
Ask an LLM
“How do I add a new authorization scope to a client's resource server?”
“Can I create a scope with a display name and icon URI for a client?”
Tell an agent
Create scope {name} on client {client}'s resource server in realm {realm}.
Add a scope {name} with icon {icon} to client {client} in realm {realm}.
GET /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/scope/search Search a client's resource server scopes by name · Get admin realms by realm clients by client uuid authz resource server scope… #
Ask an LLM
“Can I search a client's resource server scopes for one by name?”
“Which authorization scopes on a client's resource server match a name?”
Tell an agent
Search client {client}'s resource server scopes in realm {realm} for {name}.
Find the authorization scope named {name} on client {client} in realm {realm}.
GET /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/scope/{scope-id} Get one scope on a client's resource server · Get admin realms by realm clients by client uuid authz resource server scope by… #
Ask an LLM
“Can I read a single authorization scope on a client's resource server?”
“What resources and policies does one client scope cover?”
Tell an agent
Get scope {scope} on client {client}'s resource server in realm {realm}.
Show the resources and policies of client scope {scope} in realm {realm}, client {client}.
PUT /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/scope/{scope-id} Replace a scope on a client's resource server · Replace admin realms by realm clients by client uuid authz resource server… #
Ask an LLM
“How do I overwrite an existing authorization scope on a client's resource server?”
“Can I change the resources a client scope covers?”
Tell an agent
Replace scope {scope} on client {client}'s resource server in realm {realm}.
Overwrite client scope {scope} in realm {realm}, client {client}, with resources {resources}.
DELETE /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/scope/{scope-id} Delete a scope on a client's resource server · Delete admin realms by realm clients by client uuid authz resource server scope… #
Ask an LLM
“Can I delete an authorization scope from a client's resource server?”
“What happens to policies when I remove a client scope?”
Tell an agent destructive · confirm first
Delete scope {scope} from client {client}'s resource server in realm {realm}.
Remove the client scope {scope} in realm {realm}, client {client}.
GET /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/scope/{scope-id}/permissions List permissions of a client's resource server scope · Get admin realms by realm clients by client uuid authz resource server scope by… #
Ask an LLM
“Which permissions are granted by a scope on a client's resource server?”
“Can I list the permissions a client scope allows?”
Tell an agent
List permissions granted by scope {scope} on client {client}'s resource server in realm {realm}.
Show the permissions of client scope {scope} in realm {realm}, client {client}.
GET /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/scope/{scope-id}/resources List resources of a client's resource server scope · Get admin realms by realm clients by client uuid authz resource server scope by… #
Ask an LLM
“What resources does a scope on a client's resource server cover?”
“Can I list the resources a client scope protects?”
Tell an agent
List resources protected by scope {scope} on client {client}'s resource server in realm {realm}.
Show the resources of client scope {scope} in realm {realm}, client {client}.
GET /admin/realms/{realm}/clients/{client-uuid}/authz/resource-server/settings Get a client's resource server settings · Get admin realms by realm clients by client uuid authz resource server settings #
Ask an LLM
“What settings are configured on a client's resource server?”
“Can I read the resource server settings for a client?”
Tell an agent
Get resource server settings for client {client} in realm {realm}.
Show the authorization settings of client {client}'s resource server in realm {realm}.

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/keycloak:keycloak-admin-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

keycloak-admin-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Keycloak REST Admin API
  description: This is a REST API reference for the Keycloak Admin REST API.
  version: '1.0'
tags:


# --- truncated at 32 KB (46 KB total) ---
# Full source: https://artifacts.apis.io/keycloak/openapi/keycloak-admin-api-openapi.yml