Create Guardrail
Create a new guardrail
Example Request:
curl -X POST "http://localhost:4000/guardrails" \
-H "Authorization: Bearer <your_api_key>" \
-H "Content-Type: application/json" \
-d '{
"guardrail": {
"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"
}
}
}'
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"
}
Request body
Example request
{
"guardrail": {
"litellm_params": {
"akto_base_url": "http://localhost:9090"
}
}
}Response
Successful Response
Changes
Changed in 12 of the 42 revisions of this API.160
- ○
api tag
guardrailsaddedapi-tag-added
- ○
api tag
Guardrailsremovedapi-tag-removed
- ○
- ○
api tag
Guardrailsaddedapi-tag-added
- ○
api tag
guardrailsremovedapi-tag-removed
- ○
- ○
api tag
guardrailsaddedapi-tag-added
- ○
api tag
Guardrailsremovedapi-tag-removed
- ○
- ○
api tag
Guardrailsaddedapi-tag-added
- ○
api tag
guardrailsremovedapi-tag-removed
- ○
- ○
api tag
guardrailsaddedapi-tag-added
- ○
api tag
Guardrailsremovedapi-tag-removed
- ○
- ▲
removed from the
//request propertyanyOflistrequest-property-any-of-removed
- ○
api tag
Guardrailsaddedapi-tag-added
- ○
api tag
guardrailsremovedapi-tag-removed
- ○
added the new optional request property
//new-optional-request-property
- ○
added the new optional request property
//new-optional-request-property
- ○
added the new optional request property
//new-optional-request-property
- ○
added the new optional request property
//new-optional-request-property
- ○
added the new optional request property
//new-optional-request-property
- ○
added the new optional request property
//new-optional-request-property
- ○
added the new optional request property
//new-optional-request-property
- ○
added the new optional request property
//new-optional-request-property
- ○
added the new optional request property
//new-optional-request-property
- ○
added the new optional request property
//new-optional-request-property
- ○
added the new optional request property
//new-optional-request-property
- ○
added the new optional request property
//new-optional-request-property
- ○
added the new optional request property
//new-optional-request-property
- ○
added the new optional request property
//new-optional-request-property
- ○
added the new optional request property
//new-optional-request-property
- ○
added the new optional request property
//new-optional-request-property
- ○
added the new optional request property
//new-optional-request-property
- ○
added the new optional request property
//new-optional-request-property
- ○
added the new optional request property
//new-optional-request-property
- ○
added the new optional request property
//new-optional-request-property
- ○
added the new optional request property
//new-optional-request-property
- ○
added the new optional request property
//new-optional-request-property
- ○
added the new optional request property
//new-optional-request-property
- ○
added the new optional request property
//new-optional-request-property
- ○
added the new optional request property
//new-optional-request-property
- ○
added the new optional request property
//new-optional-request-property
- ○
added the new optional request property
//new-optional-request-property
- ○
added the new optional request property
//new-optional-request-property
- ○
added the new optional request property
//new-optional-request-property
- ○
added to the
//request propertyanyOflistrequest-property-any-of-added
- ○
added the new
UK_PASSPORTenum value to the request property/////request-property-enum-value-added
- ○
added the new
UK_POSTCODEenum value to the request property/////request-property-enum-value-added
- ○
added the new
UK_VEHICLE_REGISTRATIONenum value to the request property/////request-property-enum-value-added
- ○
added the new
inject_system_messageenum value to the request property///request-property-enum-value-added
- ○
added the optional property
//to the response with the statusresponse-optional-property-added
- ○
added the optional property
//to the response with the statusresponse-optional-property-added
This revision also has 5 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
- ○
- ○
api tag
Guardrailsaddedapi-tag-added
- ○
api tag
guardrailsremovedapi-tag-removed
This revision also has 1 change 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 17 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 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○