About this endpoint
What it does
Submits a text string for moderation and returns a JSON object containing a data object. When requested_service is google, the response may include a google object with the moderation result.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| text | String | Yes | The text to be moderated. |
| requested_service | ENUM | Yes | Service to use for moderation. Allowed value: google. |
| Object | No | Google-specific configuration object. | |
| google.key | String | Yes | Google API key. |
| google.google_language | String | No | Google language code. |
Response
Returns a JSON object with a data object field. The data object may include a google object when requested_service is google.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| data | Object | Yes | Response payload object. May include google when requested_service is google. |
| data.google | Object | No | Google moderation result object. The schema does not define its inner fields. |