Auth0 Roles API

The roles API from Auth0 — 4 operation(s) for roles.

Business capability
Identity & Access Management BC-620.20

Operations 10

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 /roles List roles in a tenant · Get Roles #
Ask an LLM
“Which roles have I created in my tenant?”
“Can I search roles by name?”
Tell an agent
List my roles.
Find roles named {name_filter}.
POST /roles Create a role · Create a Role #
Ask an LLM
“How do I create a new role for role-based access control?”
“Does a new role get any permissions by default?”
Tell an agent
Create a role {name}.
Create role {name} described as {description}.
GET /roles/{id} Get a role by ID · Get a Role #
Ask an LLM
“Can I see the name and description of one role?”
“What are the details of a specific role ID?”
Tell an agent
Show role {id}.
Get details of role {id}.
DELETE /roles/{id} Delete a role · Delete a Role #
Ask an LLM
“What happens to users who had a role when I delete it?”
“How do I delete a role?”
Tell an agent destructive · confirm first
Delete role {id}.
Remove role {id} from the tenant.
PATCH /roles/{id} Rename or describe a role · Update a Role #
Ask an LLM
“Can I rename an existing role?”
“How do I change a role's description?”
Tell an agent
Rename role {id} to {name}.
Set the description of role {id} to {description}.
GET /roles/{id}/permissions List permissions granted by a role · Get Permissions Granted by Role #
Ask an LLM
“Which permissions does a role grant?”
“Can I see the resource server behind each permission of a role?”
Tell an agent
List permissions of role {id}.
Show what role {id} is allowed to do.
DELETE /roles/{id}/permissions Remove permissions from a role · Remove Permissions from a Role #
Ask an LLM
“How do I take a permission away from a role?”
“Can I strip several scopes from a role at once?”
Tell an agent destructive · confirm first
Remove permissions {permissions} from role {id}.
Revoke scopes {permissions} on role {id}.
POST /roles/{id}/permissions Add permissions to a role · Associate Permissions with a Role #
Ask an LLM
“How do I add API permissions to a role?”
“Can I attach several permissions to a role in one go?”
Tell an agent
Add permissions {permissions} to role {id}.
Grant role {id} the scopes {permissions}.
GET /roles/{id}/users List users who have a role · Get a Role's Users #
Ask an LLM
“Which users are assigned a particular role?”
“Can I page through everyone holding a role with a checkpoint?”
Tell an agent
List users with role {id}.
Show {take} members of role {id}.
POST /roles/{id}/users Assign users to a role · Assign Users to a Role #
Ask an LLM
“How do I add several users to a role at once?”
“Can I bulk-assign a role to a list of users?”
Tell an agent
Assign users {users} to role {id}.
Add {users} as members of role {id}.

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/auth0:auth0-roles-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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

OpenAPI Specification

auth0-roles-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Auth0 Management Roles API
  description: Auth0 Management API v2.
  termsOfService: https://auth0.com/web-terms/
  contact:
    name: Auth0 Support
    url: https://support.auth0.com
  version: '2.0'
servers:
- url: https://{tenantDomain}/api/v2
  variables:
    tenantDomain:
      default: '{TENANT}.auth0.com'
      description: Auth0 Tenant Domain
security:
- bearerAuth: []
tags:


# --- truncated at 32 KB (37 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/auth0/refs/heads/main/openapi/auth0-roles-api-openapi.yml