Kong Roles API

The Roles API from Kong — 5 operation(s) for roles.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).
Business capability
Identity & Access Management BC-620.20

Operations 9

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 /v3/roles List system-managed roles · Get Predefined Roles #
Ask an LLM
“What built-in roles does Konnect ship with?”
“Which system roles can I assign to teams?”
Tell an agent
List the predefined roles.
Show me the system-managed roles.
GET /v3/teams/{teamId}/assigned-roles List roles assigned to a team · List Team Roles #
Ask an LLM
“Which roles are assigned to a particular team?”
“Can I filter a team's roles by name?”
Tell an agent
List roles assigned to team {teamId}.
Show team {teamId}'s roles matching {filter}.
POST /v3/teams/{teamId}/assigned-roles Assign a role to a team · Assign Team Role #
Ask an LLM
“How do I give a team a role on an entity in a region?”
“Can I assign a role to a team instead of a user?”
Tell an agent
Assign role {role_name} to team {teamId}.
Give team {teamId} role {role_name} on {entity_type_name} {entity_id} in {entity_region}.
GET /v3/teams/{teamId}/assigned-roles/{roleId} Get a role assigned to a team · Get Team Role #
Ask an LLM
“What role does a team hold?”
“Can I look up one assigned role on a team by ID?”
Tell an agent
Get role {roleId} assigned to team {teamId}.
Show the assigned role {roleId} on team {teamId}.
DELETE /v3/teams/{teamId}/assigned-roles/{roleId} Remove a role from a team · Remove Team Role #
Ask an LLM
“How do I take a role away from a team?”
“What happens if I remove a role a team doesn't have?”
Tell an agent destructive · confirm first
Remove role {roleId} from team {teamId}.
Revoke assigned role {roleId} on team {teamId}.
GET /v3/users/{userId}/assigned-roles List roles assigned to a user · List User Roles #
Ask an LLM
“Which roles has a particular user been given?”
“Can I filter a user's roles by name?”
Tell an agent
List roles assigned to user {userId}.
Show user {userId}'s roles matching {filter}.
POST /v3/users/{userId}/assigned-roles Assign a role to a user · Assign Role #
Ask an LLM
“How do I give a Konnect user a role?”
“What happens if I assign a role that is already assigned to a user?”
Tell an agent
Assign role {role_name} to user {userId}.
Give user {userId} the {role_name} role on {entity_type_name} {entity_id}.
GET /v3/users/{userId}/assigned-roles/{roleId} Get a role assigned to a user · Get User Role #
Ask an LLM
“What role does a user hold?”
“Can I look up one assigned role on a user by ID?”
Tell an agent
Get role {roleId} assigned to user {userId}.
Show the assigned role {roleId} on user {userId}.
DELETE /v3/users/{userId}/assigned-roles/{roleId} Remove a role from a user · Remove Role #
Ask an LLM
“How do I take a role away from a user?”
“What happens if I remove a role a user doesn't have?”
Tell an agent destructive · confirm first
Remove role {roleId} from user {userId}.
Revoke assigned role {roleId} on user {userId}.

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/kong:kong-roles-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

kong-roles-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Konnect API - Go SDK Roles API
  version: 3.14.0
  description: The Konnect platform API
  contact:
    name: Kong Inc
    url: https://konghq.com
    email: support@konghq.com
  x-extensions-note: "This API uses the `x-expression` vendor extension to indicate that a string property is a DSL expression.\nSupported types:\n\n\n  - `boolean`: An expression evaluates to boolean. For example, `context.topic.name == 'my-topic'`\n  - `string`: A template string expression that evaluates to a string or a literal string value. For example,\n    `${context.topic.name.substring(0, context.topic.name.length-4)}` or `my-literal-value`\n\nAdditionally, `x-sensitive` flag indicates that a field contains sensitive information. When the value\nof the field is provided in plain text, it's encrypted at rest and it's never returned in API responses.\nWhen the value is an expression, the expression itself is stored and returned in API responses.\n\n`x-min-runtime-version` indicates the minimum Event Gateway runtime version required to use a certain policy or\npolicy feature. The runtime version can be configured at the Event Gateway entity level. It must be a string\ncontaining a semantic version in the `MAJOR.MINOR` format, e.g., `\"1.1\"`.\n"
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0.html
  x-oas-source: kong/platform-api@
  x-oas-source-link: https://github.com/Kong/platform-api/commit/
servers:
- url: https://global.api.konghq.com
- url: https://us.api.konghq.com
- url: https://eu.api.konghq.com
- url: https://au.api.konghq.com
security:
- personalAccessToken: []
- systemAccountAccessToken: []
- konnectAccessToken: []
- serviceAccessToken: []
tags:


# --- truncated at 32 KB (54 KB total) ---
# Full source: https://artifacts.apis.io/kong/openapi/kong-roles-api-openapi.yml