Guardrails
Get Guardrail Info
Get detailed information about a specific guardrail by ID
Example Request:
curl -X GET "http://localhost:4000/guardrails/123e4567-e89b-12d3-a456-426614174000/info" \
-H "Authorization: Bearer <your_api_key>"
Example Response:
{
"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"
},
"created_at": "2023-11-09T12:34:56.789Z",
"updated_at": "2023-11-09T12:34:56.789Z"
}
get/guardrails/{guardrail_id}/info
Path parameters
guardrail_idstring required
Response
Successful Response
{"stackTrail":"paths:/guardrails/{guardrail_id}/info:get:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}
Changes
Changed in 3 of the 15 revisions of this API.6
- ○
api tag
Guardrailsaddedapi-tag-added
- ○
api tag
guardrailsremovedapi-tag-removed
This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ○
api tag
guardrailsaddedapi-tag-added
- ○
api tag
Guardrailsremovedapi-tag-removed
This revision also has 19 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ○
api tag
Guardrailsaddedapi-tag-added
- ○
api tag
guardrailsremovedapi-tag-removed
- ○