Cerbos Plan API

Generate query plans for resource filtering.

Operations 1

POST /api/plan/resources Plan resources #

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/cerbos-plan-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

cerbos-plan-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Cerbos PDP REST Admin Audit Plan API
  description: 'REST/JSON interface exposed by the Cerbos Policy Decision Point (PDP) for

    authorization decisions and policy administration. Includes CheckResources,

    PlanResources, ServerInfo, OpenID AuthZEN endpoints, and the Admin API for

    policy and schema management. Generated as a best-effort spec from public

    Cerbos documentation; the canonical OpenAPI is served by every PDP at

    /schema/swagger.json.

    '
  version: 0.x
  contact:
    name: Cerbos
    url: https://docs.cerbos.dev/cerbos/latest/api/index
  license:
    name: Apache 2.0
    url: https://github.com/cerbos/cerbos/blob/main/LICENSE
servers:
- url: http://localhost:3592
  description: Local Cerbos PDP (default HTTP port).
tags:
- name: Plan
  description: Generate query plans for resource filtering.
paths:
  /api/plan/resources:
    post:
      tags:
      - Plan
      summary: Plan resources
      description: Returns a query plan describing the conditions under which a principal may perform an action on resources matching a kind.
      operationId: planResources
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PlanResourcesRequest'
      responses:
        '200':
          description: Query plan response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PlanResourcesResponse'
        '400':
          $ref: '#/components/responses/Error'
components:
  schemas:
    Error:
      type: object
      properties:
        code:
          type: integer
        message:
          type: string
        details:
          type: array
          items:
            type: object
    Principal:
      type: object
      required:
      - id
      - roles
      properties:
        id:
          type: string
        policyVersion:
          type: string
        scope:
          type: string
        roles:
          type: array
          items:
            type: string
        attr:
          type: object
          additionalProperties: true
    PlanResourcesResponse:
      type: object
      properties:
        requestId:
          type: string
        action:
          type: string
        resourceKind:
          type: string
        policyVersion:
          type: string
        filter:
          type: object
          properties:
            kind:
              type: string
              enum:
              - KIND_ALWAYS_ALLOWED
              - KIND_ALWAYS_DENIED
              - KIND_CONDITIONAL
            condition:
              type: object
        cerbosCallId:
          type: string
    PlanResourcesRequest:
      type: object
      required:
      - principal
      - resource
      - action
      properties:
        requestId:
          type: string
        action:
          type: string
        principal:
          $ref: '#/components/schemas/Principal'
        resource:
          type: object
          required:
          - kind
          properties:
            kind:
              type: string
            policyVersion:
              type: string
            scope:
              type: string
            attr:
              type: object
        auxData:
          type: object
        includeMeta:
          type: boolean
  responses:
    Error:
      description: Error response.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic
      description: Basic authentication for the Admin API (default cerbos/cerbosAdmin; override in production).