Guardrails
Preview

List guardrail exceptions

Exceptions in effect first, then those that ended, each newest first, across guardrails or for one: what the Exceptions board and the editor's "Doesn't apply to" table draw. `counts` are the tiles and ignore the filters.

GET
/guardrail-exceptions
cookiebetter-auth.session_token<token>

Better Auth session cookie. Production uses the __Secure- prefixed name.

guardrailId?string

Only this guardrail's exceptions.

Formatuuid
state?string

Only those in effect, or only those that ended.

Value in"in_effect""ended"
q?string

Only exceptions whose target, reason or guardrail contains this text.

Lengthlength <= 100

Response Body

The exceptions.

application/json
  1. response
items*array<>
counts*
tabs*

The counts on the Rules, Freezes and Exceptions tabs.

Example Request
curl -X GET 'https://wardn.example.com/api/v1/guardrail-exceptions'
Example Response
{  "items": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "guardrailId": "38609d44-fd52-49c4-9173-fad4575825f6",      "guardrailName": "string",      "ownerTeamId": "string",      "ownerTeamName": "string",      "target": {        "kind": "app",        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "name": "string"      },      "reason": "string",      "addedBy": {        "id": "string",        "name": "string"      },      "createdAt": "2019-08-24T14:15:22Z",      "expiresAt": "2019-08-24T14:15:22Z",      "reviewAt": "2019-08-24T14:15:22Z",      "endedAt": "2019-08-24T14:15:22Z",      "state": "in_effect",      "permanent": true,      "expiring": true,      "reviewOverdue": true    }  ],  "counts": {    "inEffect": 0,    "permanent": 0,    "expiring": 0,    "reviewOverdue": 0,    "ended": 0  },  "tabs": {    "rules": 0,    "activeFreezes": 0,    "exceptions": 0  }}