Guardrails API
POST
https://api.figolabs.ai/api/v1/guardrails/check
Apis
Maintainer:Figo AI Labs
You can define a list of banned topics and submit text for evaluation. The API responds with a clear indication of whether the submitted content violates any of the specified restrictions.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.figolabs.ai/api/v1/guardrails/check' \
--header 'Authorization: Bearer {Your-API-Key}' \
--header 'Content-Type: application/json' \
--data-raw '{
"bannedTopics": "government, politics",
"userInput": "what is the meaning of judiciary?"
}'
Response Response Example
200 - Success
{
"responseCode": "00",
"responseMessage": "Successful",
"responseData": {
"isSafe": false
}
}
Request
Header Params
Content-Type
string
required
Example:
application/json
Authorization
string
required
Example:
Bearer {Your-API-Key}
Body Params application/json
Responses
Modified at 2025-04-22 18:46:44