Keycloak · OpenAPI Overlay 1.0.0

API Evangelist conversational phrasing for Keycloak Admin REST Roles API

29 actions 29 updates phrasing extends openapi/keycloak-roles-api-openapi.yml
Generated by API Evangelist Written by API Evangelist tooling for Keycloak's API. It is a proposal applied on top of the contract, not a document Keycloak publishes.
View Overlay File View on GitHub Overlay Specification

What the actions change

x-apievangelist-phrasing

Targets 29 · first 16 shown; the file carries all of them

$.info
$.paths['/admin/realms/{realm}/clients/{client-uuid}/roles'].get
$.paths['/admin/realms/{realm}/clients/{client-uuid}/roles'].post
$.paths['/admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}'].get
$.paths['/admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}'].put
$.paths['/admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}'].delete
$.paths['/admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}/composites'].get
$.paths['/admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}/composites'].post
$.paths['/admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}/composites'].delete
$.paths['/admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}/composites/clients/{targetClientUuid}'].get
$.paths['/admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}/composites/realm'].get
$.paths['/admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}/groups'].get
$.paths['/admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}/management/permissions'].get
$.paths['/admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}/management/permissions'].put
$.paths['/admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}/users'].get
$.paths['/admin/realms/{realm}/roles'].get

OpenAPI Overlay

Raw ↑
# Generated by API Evangelist (build-phrasing.py). Our phrasing, not observed demand.
overlay: 1.0.0
info:
  title: API Evangelist conversational phrasing for Keycloak Admin REST Roles API
  version: 1.0.0
extends: openapi/keycloak-roles-api-openapi.yml
actions:
- target: $.info
  update:
    x-apievangelist-phrasing:
      method: generated
      generated: '2026-11-16'
      generator: build-phrasing.py
      label: Generated by API Evangelist
      operations: 28
- target: $.paths['/admin/realms/{realm}/clients/{client-uuid}/roles'].get
  update:
    x-apievangelist-phrasing:
      intent: List roles of a client
      effect: read
      questions:
      - What roles are defined for a particular client in my realm?
      - Can I search a client's roles by name?
      instructions:
      - text: List roles for client {client} in realm {realm}.
        slots:
          client: path.client-uuid
          realm: path.realm
      - text: Find client {client} roles matching {search}.
        slots:
          client: path.client-uuid
          search: query.search
      method: generated
      generated: '2026-11-16'
- target: $.paths['/admin/realms/{realm}/clients/{client-uuid}/roles'].post
  update:
    x-apievangelist-phrasing:
      intent: Create a role on a client
      effect: write
      questions:
      - How do I add a new role to a client?
      - Can a client role be a composite role?
      instructions:
      - text: Create a role {name} on client {client} in realm {realm}.
        slots:
          name: requestBody.name
          client: path.client-uuid
          realm: path.realm
      - text: Add client role {name} with composite {composite} to {client} in {realm}.
        slots:
          name: requestBody.name
          composite: requestBody.composite
          client: path.client-uuid
          realm: path.realm
      method: generated
      generated: '2026-11-16'
- target: $.paths['/admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}'].get
  update:
    x-apievangelist-phrasing:
      intent: Get a client role
      effect: read
      questions:
      - What does a specific role on a client look like?
      - Can I read one client role by name?
      instructions:
      - text: Get role {role} on client {client} in realm {realm}.
        slots:
          role: path.role-name
          client: path.client-uuid
          realm: path.realm
      - text: Show the details of client {client} role {role}.
        slots:
          client: path.client-uuid
          role: path.role-name
      method: generated
      generated: '2026-11-16'
- target: $.paths['/admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}'].put
  update:
    x-apievangelist-phrasing:
      intent: Update a client role
      effect: write
      questions:
      - How do I rename or change a role on a client?
      - Can I set composite roles on a client role?
      instructions:
      - text: Rename client {client} role {role} in realm {realm} to {name}.
        slots:
          client: path.client-uuid
          role: path.role-name
          realm: path.realm
          name: requestBody.name
      - text: Set composite roles {composites} on client {client} role {role}.
        slots:
          composites: requestBody.composites
          client: path.client-uuid
          role: path.role-name
      method: generated
      generated: '2026-11-16'
- target: $.paths['/admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}'].delete
  update:
    x-apievangelist-phrasing:
      intent: Delete a client role
      effect: destructive
      questions:
      - How do I remove a role from a client?
      - Can I delete a client role by name?
      instructions:
      - text: Delete role {role} from client {client} in realm {realm}.
        slots:
          role: path.role-name
          client: path.client-uuid
          realm: path.realm
      - text: Remove the client role {role} on {client}.
        slots:
          role: path.role-name
          client: path.client-uuid
      method: generated
      generated: '2026-11-16'
- target: $.paths['/admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}/composites'].get
  update:
    x-apievangelist-phrasing:
      intent: List roles a client role inherits
      effect: read
      questions:
      - Which roles does a client role inherit?
      - Can I see the composites of a client role?
      instructions:
      - text: List composites of role {role} on client {client} in realm {realm}.
        slots:
          role: path.role-name
          client: path.client-uuid
          realm: path.realm
      - text: Show what client {client} role {role} inherits.
        slots:
          client: path.client-uuid
          role: path.role-name
      method: generated
      generated: '2026-11-16'
- target: $.paths['/admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}/composites'].post
  update:
    x-apievangelist-phrasing:
      intent: Add roles to a client role's composites
      effect: write
      questions:
      - How do I make a client role inherit other roles?
      - Can I add roles to a client role's composite list?
      instructions:
      - text: Add roles to the composites of role {role} on client {client} in realm {realm}.
        slots:
          role: path.role-name
          client: path.client-uuid
          realm: path.realm
      - text: Make client {client} role {role} inherit more roles.
        slots:
          client: path.client-uuid
          role: path.role-name
      method: generated
      generated: '2026-11-16'
- target: $.paths['/admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}/composites'].delete
  update:
    x-apievangelist-phrasing:
      intent: Remove roles from a client role's composites
      effect: destructive
      questions:
      - How do I stop a client role from inheriting certain roles?
      - Can I clear a client role's composite list?
      instructions:
      - text: Remove roles from the composites of role {role} on client {client} in realm {realm}.
        slots:
          role: path.role-name
          client: path.client-uuid
          realm: path.realm
      - text: Clear the inherited roles of client {client} role {role}.
        slots:
          client: path.client-uuid
          role: path.role-name
      method: generated
      generated: '2026-11-16'
- target: $.paths['/admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}/composites/clients/{targetClientUuid}'].get
  update:
    x-apievangelist-phrasing:
      intent: Get client-level composites of a client role
      effect: read
      questions:
      - Which roles from a different client are part of a client role's composite?
      - Are there client-level roles in a client role's composite?
      instructions:
      - text: Get client-level composites of client role {role} in {client} on realm {realm}.
        slots:
          role: path.role-name
          client: path.client-uuid
          realm: path.realm
      - text: Show the roles from client {targetClient} that compose client role {role} in realm {realm}.
        slots:
          targetClient: path.targetClientUuid
          role: path.role-name
          realm: path.realm
      method: generated
      generated: '2026-11-16'
- target: $.paths['/admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}/composites/realm'].get
  update:
    x-apievangelist-phrasing:
      intent: List realm roles inside a client role's composite
      effect: read
      questions:
      - What realm-level roles does a client role include as composites?
      - Which realm roles are bundled into a role that belongs to a client?
      - Does a client role pull in any roles from the realm itself?
      instructions:
      - text: List the realm-level roles inside the composite of client role {role} on client {client} in realm {realm}.
        slots:
          role: path.role-name
          client: path.client-uuid
          realm: path.realm
      - text: Show which realm roles are bundled into client {client} role {role} in {realm}.
        slots:
          role: path.role-name
          client: path.client-uuid
          realm: path.realm
      method: generated
      generated: '2026-11-16'
- target: $.paths['/admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}/groups'].get
  update:
    x-apievangelist-phrasing:
      intent: List groups with a client role
      effect: read
      questions:
      - Which groups have a particular role on a client?
      - Can I find groups that grant a client role?
      instructions:
      - text: List groups that have role {role} on client {client} in realm {realm}.
        slots:
          role: path.role-name
          client: path.client-uuid
          realm: path.realm
      - text: Find groups with client {client} role {role}.
        slots:
          client: path.client-uuid
          role: path.role-name
      method: generated
      generated: '2026-11-16'
- target: $.paths['/admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}/management/permissions'].get
  update:
    x-apievangelist-phrasing:
      intent: Check a client role's management permissions
      effect: read
      questions:
      - Does a client role have management permissions enabled?
      - Can I read the management permissions of a client role?
      instructions:
      - text: Get management permissions for role {role} on client {client} in realm {realm}.
        slots:
          role: path.role-name
          client: path.client-uuid
          realm: path.realm
      - text: Show whether client {client} role {role} has management permissions.
        slots:
          client: path.client-uuid
          role: path.role-name
      method: generated
      generated: '2026-11-16'
- target: $.paths['/admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}/management/permissions'].put
  update:
    x-apievangelist-phrasing:
      intent: Set a client role's management permissions
      effect: write
      questions:
      - How do I enable management permissions on a client role?
      - Can I set scope permissions on a client role?
      instructions:
      - text: Set management permissions {permissions} on role {role} of client {client} in {realm}.
        slots:
          permissions: requestBody.scopePermissions
          role: path.role-name
          client: path.client-uuid
          realm: path.realm
      - text: Enable management permissions for client {client} role {role}.
        slots:
          client: path.client-uuid
          role: path.role-name
      method: generated
      generated: '2026-11-16'
- target: $.paths['/admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}/users'].get
  update:
    x-apievangelist-phrasing:
      intent: List users with a client role
      effect: read
      questions:
      - Which users have a particular role on a client?
      - Can I find users granted a client role?
      instructions:
      - text: List users with role {role} on client {client} in realm {realm}.
        slots:
          role: path.role-name
          client: path.client-uuid
          realm: path.realm
      - text: Find users granted client {client} role {role}.
        slots:
          client: path.client-uuid
          role: path.role-name
      method: generated
      generated: '2026-11-16'
- target: $.paths['/admin/realms/{realm}/roles'].get
  update:
    x-apievangelist-phrasing:
      intent: List realm roles
      effect: read
      questions:
      - What roles exist in my realm?
      - Can I search realm roles by name?
      instructions:
      - text: List roles in realm {realm}.
        slots:
          realm: path.realm
      - text: Find realm roles matching {search}.
        slots:
          search: query.search
      method: generated
      generated: '2026-11-16'
- target: $.paths['/admin/realms/{realm}/roles'].post
  update:
    x-apievangelist-phrasing:
      intent: Create a realm role
      effect: write
      questions:
      - How do I add a new role to the realm?
      - Can a realm role be a composite role?
      instructions:
      - text: Create a role {name} in realm {realm}.
        slots:
          name: requestBody.name
          realm: path.realm
      - text: Add realm role {name} with composite {composite} to {realm}.
        slots:
          name: requestBody.name
          composite: requestBody.composite
          realm: path.realm
      method: generated
      generated: '2026-11-16'
- target: $.paths['/admin/realms/{realm}/roles/{role-name}'].get
  update:
    x-apievangelist-phrasing:
      intent: Get a realm role
      effect: read
      questions:
      - What does a specific realm role look like?
      - Can I read one realm role by name?
      instructions:
      - text: Get role {role} in realm {realm}.
        slots:
          role: path.role-name
          realm: path.realm
      - text: Show the details of realm role {role}.
        slots:
          role: path.role-name
      method: generated
      generated: '2026-11-16'
- target: $.paths['/admin/realms/{realm}/roles/{role-name}'].put
  update:
    x-apievangelist-phrasing:
      intent: Update a realm role
      effect: write
      questions:
      - How do I rename or change a realm role?
      - Can I set composite roles on a realm role?
      instructions:
      - text: Rename realm role {role} in {realm} to {name}.
        slots:
          role: path.role-name
          realm: path.realm
          name: requestBody.name
      - text: Set composite roles {composites} on realm role {role}.
        slots:
          composites: requestBody.composites
          role: path.role-name
      method: generated
      generated: '2026-11-16'
- target: $.paths['/admin/realms/{realm}/roles/{role-name}'].delete
  update:
    x-apievangelist-phrasing:
      intent: Delete a realm role
      effect: destructive
      questions:
      - How do I remove a role from the realm?
      - Can I delete a realm role by name?
      instructions:
      - text: Delete role {role} from realm {realm}.
        slots:
          role: path.role-name
          realm: path.realm
      - text: Remove the realm role {role}.
        slots:
          role: path.role-name
      method: generated
      generated: '2026-11-16'
- target: $.paths['/admin/realms/{realm}/roles/{role-name}/composites'].get
  update:
    x-apievangelist-phrasing:
      intent: List all composites of a realm role
      effect: read
      questions:
      - What roles make up a realm role's composite?
      - Can I see both realm and client roles in a realm role's composite?
      instructions:
      - text: Get all composites of realm role {role} in realm {realm}.
        slots:
          role: path.role-name
          realm: path.realm
      - text: Show the full composite list of realm role {role} on {realm}.
        slots:
          role: path.role-name
          realm: path.realm
      method: generated
      generated: '2026-11-16'
- target: $.paths['/admin/realms/{realm}/roles/{role-name}/composites'].post
  update:
    x-apievangelist-phrasing:
      intent: Add a composite to a role
      effect: write
      questions:
      - How do I make a role include another role as a composite?
      - Can I add a composite to an existing role?
      instructions:
      - text: Add a composite to role {role} in realm {realm}.
        slots:
          role: path.role-name
          realm: path.realm
      - text: Make role {role} in {realm} include the composite roles I list.
        slots:
          role: path.role-name
          realm: path.realm
      method: generated
      generated: '2026-11-16'
- target: $.paths['/admin/realms/{realm}/roles/{role-name}/composites'].delete
  update:
    x-apievangelist-phrasing:
      intent: Remove composites from a role
      effect: destructive
      questions:
      - How do I take a composite role out of a role?
      - Can I remove composites from an existing role?
      instructions:
      - text: Remove composites from role {role} in realm {realm}.
        slots:
          role: path.role-name
          realm: path.realm
      - text: Take the composite roles off role {role} in {realm}.
        slots:
          role: path.role-name
          realm: path.realm
      method: generated
      generated: '2026-11-16'
- target: $.paths['/admin/realms/{realm}/roles/{role-name}/composites/clients/{targetClientUuid}'].get
  update:
    x-apievangelist-phrasing:
      intent: Get a role's client-level composites for one client
      effect: read
      questions:
      - Which client-level roles are in a role's composite for one client?
      - What does a role's composite look like for a specific client UUID?
      instructions:
      - text: Get the client-level composites of role {role} in realm {realm} for client {client}.
        slots:
          role: path.role-name
          realm: path.realm
          client: path.targetClientUuid
      - text: Show which roles in {client} are in the composite of {role} in {realm}.
        slots:
          client: path.targetClientUuid
          role: path.role-name
          realm: path.realm
      method: generated
      generated: '2026-11-16'
- target: $.paths['/admin/realms/{realm}/roles/{role-name}/composites/realm'].get
  update:
    x-apievangelist-phrasing:
      intent: Get realm composites of a realm role
      effect: read
      questions:
      - Which realm-level roles are in a realm role's composite?
      - Are any realm roles among the composites of a realm role?
      instructions:
      - text: Get realm-level composites of realm role {role} in realm {realm}.
        slots:
          role: path.role-name
          realm: path.realm
      - text: Show the realm-level composites of realm role {role} on {realm}.
        slots:
          role: path.role-name
          realm: path.realm
      method: generated
      generated: '2026-11-16'
- target: $.paths['/admin/realms/{realm}/roles/{role-name}/groups'].get
  update:
    x-apievangelist-phrasing:
      intent: List groups with a role
      effect: read
      questions:
      - Which groups have a given role assigned?
      - Can I see every group that carries a role, not just users?
      instructions:
      - text: List groups that have role {role} in realm {realm}.
        slots:
          role: path.role-name
          realm: path.realm
      - text: Show {max} groups with role {role} in {realm}, brief {brief}.
        slots:
          max: query.max
          role: path.role-name
          realm: path.realm
          brief: query.briefRepresentation
      method: generated
      generated: '2026-11-16'
- target: $.paths['/admin/realms/{realm}/roles/{role-name}/management/permissions'].get
  update:
    x-apievangelist-phrasing:
      intent: Check a role's management permissions
      effect: read
      questions:
      - Can I check whether a role has management permissions enabled?
      - What does a role's management permissions object look like?
      instructions:
      - text: Get the management permissions of role {role} in realm {realm}.
        slots:
          role: path.role-name
          realm: path.realm
      - text: Show whether management permissions are enabled on {role} in {realm}.
        slots:
          role: path.role-name
          realm: path.realm
      method: generated
      generated: '2026-11-16'
- target: $.paths['/admin/realms/{realm}/roles/{role-name}/management/permissions'].put
  update:
    x-apievangelist-phrasing:
      intent: Set a role's management permissions
      effect: write
      questions:
      - How do I enable or disable management permissions on a role?
      - Can I set scope permissions for a role's management?
      instructions:
      - text: Set management permissions on role {role} in realm {realm} to {enabled}.
        slots:
          role: path.role-name
          realm: path.realm
          enabled: requestBody.enabled
      - text: Enable management permissions on {role} in {realm} for resource {resource} with scope permissions {scope}.
        slots:
          role: path.role-name
          realm: path.realm
          resource: requestBody.resource
          scope: requestBody.scopePermissions
      method: generated
      generated: '2026-11-16'
- target: $.paths['/admin/realms/{realm}/roles/{role-name}/users'].get
  update:
    x-apievangelist-phrasing:
      intent: List users with a role
      effect: read
      questions:
      - Which users have a given role assigned?
      - Can I see every user carrying a role, not just groups?
      instructions:
      - text: List users that have role {role} in realm {realm}.
        slots:
          role: path.role-name
          realm: path.realm
      - text: Show {max} users with role {role} in {realm}, brief {brief}.
        slots:
          max: query.max
          role: path.role-name
          realm: path.realm
          brief: query.briefRepresentation
      method: generated
      generated: '2026-11-16'

Work with this as data

Every overlay 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 openapi overlays

4 MCP tools reach this
  • find_overlaysBrowse and filter every overlay in the catalog.
  • 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 overlay
curl "https://apis.io/api/v1/overlays/keycloak-roles-api-phrasing-overlay"
All openapi overlays
curl "https://apis.io/api/v1/overlays?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.