APIClaw Apply Guardrail API
The Apply Guardrail API from APIClaw — 1 operation(s) for apply guardrail.
The Apply Guardrail API from APIClaw — 1 operation(s) for apply guardrail.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/apiclaw:apiclaw-apply-guardrail-api"
curl "https://apis.io/api/v1/apis?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
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:
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
ApplyGuardrailResponse:
properties:
response_text:
type: string
title: Response Text
type: object
required:
- response_text
title: ApplyGuardrailResponse
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
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
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
securitySchemes:
APIKeyHeader:
type: apiKey
description: Bearer token
in: header
name: x-litellm-api-key