Check content policy.
POST/ai/checkcontentpolicy
Check if the content is appropriate to be posted on the internet.
Request
Header Parameters
ipaas string
- application/json
Bodyrequired
promptstringrequired
The text containing the content to be checked.
Example:
Hello world!
Responses
- 200
- 400
Success
- application/json
- Schema
- Example (auto)
Schema
idstringrequired
The ID of the content.
Example:
cmpl-2iZ3t9nGQ4aJ7Qb4Q7Xq8Zn5
safebooleanrequired
Boolean value indicating if the content is safe.
Example:
true
datastringrequired
The message containing the result of the content check.
Example:
Content is safe.
{
"id": "cmpl-2iZ3t9nGQ4aJ7Qb4Q7Xq8Zn5",
"safe": true,
"data": "Content is safe."
}
Bad Request
- application/json
- Schema
- Example (auto)
Schema
statusnumber
errorMessagestring
{
"status": 0,
"errorMessage": "string"
}