Apply a guardrail to text input and return the processed result.

This endpoint allows testing guardrails by applying them to custom text inputs.

post/apply_guardrail

Request

  • Base URL
    https://api.flock.io (the document declares no server; this is the origin it was published from)
  • URL
    https://api.flock.io/apply_guardrail
  • Auth
    API key in header x-litellm-api-key

Request body

guardrail_namestring required
textstring required
languagestring nullable
entitiesPiiEntityType[] nullable
input_typestring
messagesobject[] nullable
metadataobject nullable

Response

Successful Response

response_textstring required

Changes