Skip to navigation

List Guardrails

List every project’s guardrails: its controls, prompt injection settings and DLP settings, in one object per project.

Needs view_security_rules or manage_security_rules, and view_org_settings or manage_org_settings.

Authentication

AuthorizationBearer

A management key (mgmt_...), sent as Authorization: Bearer <key>. Reading /v1/routing-policies also accepts the organization’s gateway API keys; writing there needs a management key.

Query parameters

cursorstring or nullOptional

The next value from the previous page. Omit it for the first page.

limitintegerOptional1-100Defaults to 20
Maximum number of results to return, at most 100. Defaults to 20.

Response

Each project's guardrails
nextstring or null

Cursor for the next page: pass it as cursor. Null on the last page.

previousstring or null

Always null: paging only goes forward.

resultslist of objects
One entry per project on this page.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
422
Unprocessable Entity Error