OpenAPI 3.1.02026-08-226994571.1 MB

1e929292ddd5

Guardrails

List Guardrails V2

List the guardrails that are available in the database using GuardrailRegistry

👉 Guardrail docs

Example Request:

curl -X GET "http://localhost:4000/v2/guardrails/list" -H "Authorization: Bearer <your_api_key>"

Example Response:

{
    "guardrails": [
        {
            "guardrail_id": "123e4567-e89b-12d3-a456-426614174000",
            "guardrail_name": "my-bedrock-guard",
            "litellm_params": {
                "guardrail": "bedrock",
                "mode": "pre_call",
                "guardrailIdentifier": "ff6ujrregl1q",
                "guardrailVersion": "DRAFT",
                "default_on": true
            },
            "guardrail_info": {
                "description": "Bedrock content moderation guardrail"
            }
        }
    ]
}
get/v2/guardrails/list

Response

Successful Response