Permit.io Roles API

Roles allow you to associate permissions indirectly via a job function. The Roles API allows you to manipulate roles: assign or unassign permissions to a role, define hierarchy between roles or define relationships between resource roles. Roles manipulated by this API are **tenant roles**, meaning when they are assigned, they are assigned on a tenant.

Business capability
Identity & Access Management BC-620.20

Operations 9

GET /v2/schema/{proj_id}/{env_id}/roles List Roles #
POST /v2/schema/{proj_id}/{env_id}/roles Create Role #
GET /v2/schema/{proj_id}/{env_id}/roles/{role_id} Get Role #
DELETE /v2/schema/{proj_id}/{env_id}/roles/{role_id} Delete Role #
PATCH /v2/schema/{proj_id}/{env_id}/roles/{role_id} Update Role #
POST /v2/schema/{proj_id}/{env_id}/roles/{role_id}/permissions Assign Permissions To Role #
DELETE /v2/schema/{proj_id}/{env_id}/roles/{role_id}/permissions Remove Permissions From Role #
GET /v2/schema/{proj_id}/{env_id}/roles/{role_id}/ancestors Get Role Ancestors #
GET /v2/schema/{proj_id}/{env_id}/roles/{role_id}/descendants Get Role Descendants #

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/permit-io-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

permit-io-roles-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Permit.io Roles API
  description: Authorization as a service
  version: 2.0.0
tags:


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