GET/v1/guardrails

List guardrails

List your organization's guardrails, and the platform guardrails on models you can call. A platform guardrail has managed set to true, is read-only, and shows only its name, tags and models.

Authentication: Bearer API key in the Authorization header

Responses

  • 200

    Platform guardrails first, then yours.

    Response
    • guardrailsarray<object>required
      guardrails
      • idstringrequired
      • namestringrequired

        A name for people.

      • managedbooleanrequired

        true on a platform guardrail, which is read-only and shows only its name, tags and models.

      • modeenum

        observe counts matches and never blocks, delays or fails a request. enforce blocks matching requests. off stops checking.

        "observe""enforce""off"
      • timingenum

        parallel checks while the model generates and holds the response until the check passes. before_dispatch finishes the check before the request is sent to a model.

        "parallel""before_dispatch"
      • rulesarray<object>required

        The guardrail matches when any rule matches.

        rules
        • tagstringrequired

          A tag id from GET /v1/tags.

        • thresholdnumber

          The rule matches when the tag's probability for any message in the request is at or above this value.

          Default: 0.5
      • modelsarray | nullrequired

        The only model slugs the guardrail covers, compared with the model that serves the request. null does not limit it.

      • exclude_modelsarray | null

        Model slugs the guardrail leaves out, so it covers every other model. null leaves none out. Set models or exclude_models, not both.

      • identity_idsarray | null

        The only identities the guardrail covers. null covers every identity. A request is covered when both its model and its identity are.

      • max_wait_msinteger

        The longest a request waits for the check, in milliseconds.

      • on_errorenum

        What happens when the check does not finish in time, or the request carries content it cannot read. allow lets the request through. block refuses it: 503 gateway_unavailable when the check did not finish, 400 content_filter for content it cannot read.

        "allow""block"
      • created_atstring
      • updated_atstring
  • 401

    Missing, unknown or revoked API key.

  • 403

    The key is not a provisioning key, or the resource is read-only (tag_read_only, guardrail_read_only).

    Response
    • errorstringrequired

      Human-readable message.

    • codestring

      Stable machine reason, when the route defines one.

  • 404

    The resource does not exist or belongs to another organization. An organization without access gets this answer on every route.

    Response
    • errorstringrequired

      Human-readable message.

    • codestring

      Stable machine reason, when the route defines one.

Request

curl 'https://api.experientiallabs.ai/v1/guardrails' \
  -H "Authorization: Bearer <YOUR_API_KEY>"

Response

{
  "guardrails": [
    {
      "id": "00000000-0000-4000-8000-000000000010",
      "name": "Content moderation",
      "managed": true,
      "rules": [
        {
          "tag": "childSexualExploitation"
        },
        {
          "tag": "massCasualtyWeapons"
        },
        {
          "tag": "fraudAndExtortion"
        }
      ],
      "models": [
        "deepseek-v4.1-flash-uncensored",
        "glm-5.3-uncensored",
        "glm-5.3-flash-uncensored"
      ]
    },
    {
      "id": "00000000-0000-4000-8000-000000000011",
      "name": "Keep confidential data off external models",
      "managed": false,
      "mode": "observe",
      "timing": "before_dispatch",
      "rules": [
        {
          "tag": "internalConfidential",
          "threshold": 0.5
        }
      ],
      "models": null,
      "exclude_models": [
        "my-local-model"
      ],
      "identity_ids": null,
      "max_wait_ms": 2000,
      "on_error": "block",
      "created_at": "2026-11-20T00:00:00Z",
      "updated_at": "2026-11-20T00:00:00Z"
    }
  ]
}

https://api.experientiallabs.ai/v1/guardrails