Moderate Text Content using AI
Changed onThis endpoint is used to moderate text content using AI. It accepts a JSON object containing the text moderation parameters and returns the the moderation results.
Request
- Base URLhttps://api.worqhat.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Response
Text moderated successfully
Example response
{
"status": "success",
"moderation": {
"sexual": "0.016973",
"hate": "0.001243",
"harassment": "0.012784",
"self-harm": "0.000040",
"sexual/minors": "0.000049",
"hate/threatening": "0.000002",
"violence/graphic": "0.000016",
"self-harm/intent": "0.000059",
"self-harm/instructions": "0.000007",
"harassment/threatening": "0.000002",
"violence": "0.000333"
},
"processing_time": 888,
"processing_id": "4b139bfe-1f71-4345-b539-fa6c1700f166",
"processing_count": 3
}Changes
- warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - info
api operation id
moderationContentremoved and replaced withmoderateText - info
the endpoint scheme security
bearerAuthwas added to the API - info
api tag
AI Servicesadded - info
api tag
AIremoved - info
the request property
became optional - info
added the non-success response with the status
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- warning
- breaking
the response's body type changed from no type to
objectfor status - breaking
the response's body type changed from no type to
objectfor status - breaking
the response's body type changed from no type to
objectfor status - breaking
the response's body type changed from no type to
objectfor status - breaking
the response's body type changed from no type to
objectfor status - info
api operation id
moderationContentwas added - info
api tag
AIadded - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- breaking