The Schema Management APIs allow administrators to manage JSON schemas that validate principal and resource attributes. All endpoints require BasicAuth authentication.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/cerbos/cerbos/llms.txt
Use this file to discover all available pages before exploring further.
AddOrUpdateSchema
Add or update one or more JSON schemas in the schema store.HTTP Request
Authentication
Requires BasicAuth credentials configured in the Cerbos server.Request Body
Array of schema objects to add or update. Minimum 1, maximum 100 schemas.
Response
Returns an empty response object on success.Example Request
ListSchemas
List all schema IDs stored in the Cerbos server.HTTP Request
Authentication
Requires BasicAuth credentials configured in the Cerbos server.Response
Array of schema ID strings
Example Request
Example Response
GetSchema
Retrieve one or more schemas by their IDs.HTTP Request
Authentication
Requires BasicAuth credentials configured in the Cerbos server.Query Parameters
One or more schema IDs to retrieve. Minimum 1 ID required. Each ID must be between 1 and 255 characters.Example:
principal.jsonResponse
Array of schema objects matching the requested IDs
Example Request
Example Response
DeleteSchema
Permanently delete one or more schemas from the schema store.HTTP Request
Authentication
Requires BasicAuth credentials configured in the Cerbos server.Query Parameters
One or more schema IDs to delete. Minimum 1 ID required. Each ID must be between 1 and 255 characters.Example:
principal.jsonResponse
Number of schemas successfully deleted