Cerbos Check API

Evaluate authorization decisions.

Operations 1

POST /api/check/resources Check 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-check-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-check-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Cerbos PDP REST Admin Audit Check 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: Check
  description: Evaluate authorization decisions.
paths:
  /api/check/resources:
    post:
      tags:
      - Check
      summary: Check resources
      description: Evaluate authorization for a principal against one or more resources and actions.
      operationId: checkResources
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CheckResourcesRequest'
      responses:
        '200':
          description: Authorization decisions per resource.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CheckResourcesResponse'
        '400':
          $ref: '#/components/responses/Error'
components:
  schemas:
    CheckResourcesResponse:
      type: object
      properties:
        requestId:
          type: string
        results:
          type: array
          items:
            type: object
            properties:
              resource:
                type: object
                properties:
                  id:
                    type: string
                  kind:
                    type: string
                  policyVersion:
                    type: string
                  scope:
                    type: string
              actions:
                type: object
                additionalProperties:
                  type: string
                  enum:
                  - EFFECT_ALLOW
                  - EFFECT_DENY
                  - EFFECT_NO_MATCH
              validationErrors:
                type: array
                items:
                  type: object
        cerbosCallId:
          type: string
    Error:
      type: object
      properties:
        code:
          type: integer
        message:
          type: string
        details:
          type: array
          items:
            type: object
    Resource:
      type: object
      required:
      - kind
      - id
      properties:
        kind:
          type: string
        id:
          type: string
        policyVersion:
          type: string
        scope:
          type: string
        attr:
          type: object
          additionalProperties: true
    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
    CheckResourcesRequest:
      type: object
      required:
      - principal
      - resources
      properties:
        requestId:
          type: string
        principal:
          $ref: '#/components/schemas/Principal'
        resources:
          type: array
          items:
            $ref: '#/components/schemas/ResourceEntry'
        auxData:
          type: object
        includeMeta:
          type: boolean
    ResourceEntry:
      type: object
      required:
      - actions
      - resource
      properties:
        actions:
          type: array
          items:
            type: string
        resource:
          $ref: '#/components/schemas/Resource'
  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).