Skip to Content
Guardrails

List guardrail sets

Permissionguardrail-sets:readAuthentication
GET
/guardrail-sets

Returns organization-scoped metadata, newest first by created_at then id.

Definitions are deliberately omitted — GET the selected UUID to read its ordered rules.

Search

q is a case-insensitive literal substring over slug, name and description, so %, _ and backslash carry no wildcard meaning. It must be non-blank and control-free, and both its raw and trimmed values are limited to 200 Unicode characters.

The opaque cursor is bound to this endpoint and to the exact q, created_from, created_to and archived filters that issued it. Supplying any request body is a 400 unexpected_body error.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Use a Voice API key or connected-app OAuth access token. Authentication.

Query Parameters

cursor?string

Opaque pagination cursor from a previous response's next_cursor.

limit?integer

Number of metadata rows to return. The server fetches one extra row only to determine next_cursor.

Range1 <= value <= 200
Default50
q?string

Case-insensitive literal substring search across slug, name, and description. The supplied and trimmed values must each contain 1–200 Unicode characters; blank values and every Unicode control character are rejected. Percent, underscore, and backslash are literal characters, not LIKE syntax.

Length1 <= length <= 200
created_from?|

Inclusive created_at lower bound. A YYYY-MM-DD value means midnight UTC.

created_to?|

Exclusive created_at upper bound. It must be later than created_from; a YYYY-MM-DD value means midnight UTC.

archived?string

Whether archived resources are excluded, included alongside active resources, or returned exclusively.

Default"exclude"
Value in"exclude""include""only"

Response Body

One deterministic page of guardrail-set metadata. An empty result is data=[] and next_cursor=null.

application/json
  1. response
data*array<>
Itemsitems <= 200
next_cursor*|

Opaque cursor for the same endpoint and filter set, or null when this is the final page.

Length1 <= length
Example Request
curl -X GET 'https://api.kejue.co/v1/guardrail-sets'
Example Response
{  "data": [    {      "id": "11111111-1111-4111-8111-111111111111",      "slug": "payment_safety",      "name": "Payment safety",      "description": "Prevent collection of payment credentials.",      "archived_at": null,      "created_at": "2026-07-20T09:00:00Z",      "updated_at": "2026-07-20T09:00:00Z"    }  ],  "next_cursor": null}