InsionInsion
Moderate

Moderate a record

Create or update a record and return its moderation result immediately.

POST
/api/v1/moderate

Authorization

bearerAuth
AuthorizationBearer <token>

Provide an API key from the Insion dashboard in the Authorization header: Bearer YOUR_API_KEY.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/v1/moderate" \  -H "Content-Type: application/json" \  -d '{    "clientId": "string",    "name": "string",    "entity": "string",    "content": "string"  }'
{  "id": "string",  "status": "Compliant",  "moderation": "string",  "user": "string",  "message": "Success",  "flagged": true,  "categoryIds": [    "string"  ]}
{  "error": {    "message": "string"  }}
{  "error": {    "message": "string"  }}
{  "error": {    "message": "string"  }}
{  "error": {    "message": "string"  }}