openapi: 3.2.0 info: title: LiteLLM Apply Guardrail API description: 'Proxy Server to call 100+ LLMs in the OpenAI format. **Customize Swagger Docs** 👉 ```LiteLLM Admin Panel on /ui```. Create, Edit Keys with SSO. Having issues? Try ```Fallback Login``` 💸 ```LiteLLM Model Cost Map```. 🔎 ```LiteLLM Model Hub```. See available models on the proxy. **Docs**' version: 1.102.1 tags: - name: Apply Guardrail paths: /apply_guardrail: post: summary: Apply Guardrail description: 'Apply a guardrail to text input and return the processed result. This endpoint allows testing guardrails by applying them to custom text inputs.' operationId: apply_guardrail_apply_guardrail_post requestBody: content: application/json: schema: $ref: '#/components/schemas/ApplyGuardrailRequest' required: true responses: '200': description: Successful Response content: application/json: schema: $ref: '#/components/schemas/ApplyGuardrailResponse' '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' security: - APIKeyHeader: [] tags: - Apply Guardrail components: schemas: ApplyGuardrailResponse: properties: response_text: type: string title: Response Text type: object required: - response_text title: ApplyGuardrailResponse ApplyGuardrailRequest: properties: guardrail_name: type: string title: Guardrail Name text: type: string title: Text language: anyOf: - type: string - type: 'null' title: Language entities: anyOf: - items: $ref: '#/components/schemas/PiiEntityType' type: array - type: 'null' title: Entities input_type: type: string title: Input Type default: request messages: anyOf: - items: additionalProperties: true type: object type: array - type: 'null' title: Messages metadata: anyOf: - additionalProperties: true type: object - type: 'null' title: Metadata type: object required: - guardrail_name - text title: ApplyGuardrailRequest PiiEntityType: type: string enum: - CREDIT_CARD - CRYPTO - DATE_TIME - EMAIL_ADDRESS - IBAN_CODE - IP_ADDRESS - NRP - LOCATION - PERSON - PHONE_NUMBER - MEDICAL_LICENSE - URL - US_BANK_NUMBER - US_DRIVER_LICENSE - US_ITIN - US_PASSPORT - US_SSN - UK_NHS - UK_NINO - UK_PASSPORT - UK_POSTCODE - UK_VEHICLE_REGISTRATION - ES_NIF - ES_NIE - IT_FISCAL_CODE - IT_DRIVER_LICENSE - IT_VAT_CODE - IT_PASSPORT - IT_IDENTITY_CARD - PL_PESEL - SG_NRIC_FIN - SG_UEN - AU_ABN - AU_ACN - AU_TFN - AU_MEDICARE - IN_PAN - IN_AADHAAR - IN_VEHICLE_REGISTRATION - IN_VOTER - IN_PASSPORT - FI_PERSONAL_IDENTITY_CODE title: PiiEntityType ValidationError: properties: loc: items: anyOf: - type: string - type: integer type: array title: Location msg: type: string title: Message type: type: string title: Error Type input: title: Input ctx: type: object title: Context type: object required: - loc - msg - type title: ValidationError HTTPValidationError: properties: detail: items: $ref: '#/components/schemas/ValidationError' type: array title: Detail type: object title: HTTPValidationError securitySchemes: APIKeyHeader: type: apiKey description: Bearer token in: header name: x-litellm-api-key