About this endpoint
What it does
Sends text to the moderation endpoint and returns a JSON object containing a data object. For requested_service: "google", the response may include a google object with service-specific moderation output.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| text | String | Yes | The text to moderate. |
| Object | No | Google-specific configuration object. See schema for nested fields. | |
| google.key | String | No | Google API key. |
| google.google_language | String | No | Google language code. |
| requested_service | ENUM | Yes | Service to use. Allowed value: google. |
Response
Returns a JSON object with a data object field. When requested_service is google, data may include a google object containing the moderation result.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| data | Object | Yes | Response wrapper object. May include google when requested_service is google. |