Cloudinary Roles API

All roles include one or more predefined **system policies**, and can be applied to principals to enforce these policies. You can **manage custom roles**, where you select the system policies. You can **view system roles**, which contain a fixed set of system policies and are provided by Cloudinary.

GitHub OpenAPI

Operations 7

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 /v2/accounts/{account_id}/permissions/roles List roles in an account · Get roles #
Ask an LLM
“What roles exist in my Cloudinary account?”
“Can I list only the roles scoped to a single product environment?”
Tell an agent
List all roles in account {account_id}.
Show {permission_type} roles scoped to {scope_type} in account {account_id}.
POST /v2/accounts/{account_id}/permissions/roles Create a custom role · Create custom role #
Ask an LLM
“How do I create a custom role with a set of system policies?”
“Can I give a new role a description when I create it?”
Tell an agent
Create a {permission_type} role named {name} scoped to {scope_type} in account {account_id}.
Create custom role {name} in account {account_id} with system policies {system_policy_ids}.
GET /v2/accounts/{account_id}/permissions/roles/{role_id} Get a role's policies · Get role #
Ask an LLM
“What policies does a specific role grant?”
“Can I see a role's policies for one folder?”
Tell an agent
Get role {role_id} in account {account_id}.
Show the policies of role {role_id} in account {account_id} for folder {folder_id}.
PUT /v2/accounts/{account_id}/permissions/roles/{role_id} Update a custom role · Update custom role #
Ask an LLM
“How do I rename an existing custom role?”
“Can I change which system policies a custom role includes?”
Tell an agent
Rename role {role_id} in account {account_id} to {name}.
Update role {role_id} in account {account_id} to include system policies {system_policy_ids}.
DELETE /v2/accounts/{account_id}/permissions/roles/{role_id} Delete a custom role · Delete custom role #
Ask an LLM
“How do I delete a custom role I no longer use?”
“Can I force-delete a role that still has principals assigned?”
Tell an agent destructive · confirm first
Delete role {role_id} from account {account_id}.
Force-delete role {role_id} in account {account_id} even if it has principals.
GET /v2/accounts/{account_id}/permissions/roles/{role_id}/principals List principals assigned to a role · Get a role's principals #
Ask an LLM
“Who is assigned a particular role?”
“Can I see which principals a role has in one product environment?”
Tell an agent
List the principals assigned to role {role_id} in account {account_id}.
Show principals of role {role_id} in account {account_id} scoped to {scope_type}.
PUT /v2/accounts/{account_id}/permissions/roles/{role_id}/principals Assign principals to a role · Assign principals to a role #
Ask an LLM
“How do I give a role to a new user or group?”
“Can I remove a principal from a role?”
Tell an agent
Assign principals {principals} to role {role_id} in account {account_id}.
Remove principals {principals} from role {role_id} in account {account_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/cloudinary:cloudinary-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

cloudinary-roles-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Cloudinary Roles API
  contact:
    name: Cloudinary Support
    email: support@cloudinary.com
    url: https://support.cloudinary.com
  license:
    name: MIT
    url: https://opensource.org/licenses/MIT
  termsOfService: https://cloudinary.com/tou
  x-refined-note:
  - x-cld-module-context differs across the merged source definitions and was not carried
  - x-cld-module-name differs across the merged source definitions and was not carried
  version: '1.0'
  description: 'Operations tagged Roles across 3 of this provider''s published API definitions: cloudinary-provisioning-schema.yml, cloudinary-permissions-openapi.yml, cloudinary-provisioning-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://{region}.cloudinary.com
  description: Regional API endpoints for optimal performance.
  variables:
    region:
      default: api
      description: Regional endpoint selection
      enum:
      - api
      - api-eu
      - api-ap
- url: https://{host}
  description: Custom domains for enterprise deployments.
  variables:
    host:
      default: api.cloudinary.com
      description: API host domain.
security:
- basicAuth: []
tags:


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