# Check a text, or a picture among the project's files, for the usual harms

`POST /safety/check` · Rivier · compliance

Check a text, or a picture among the project's files, for the usual harms: whether it is flagged, the categories, a recommendation (allow, hold for review, block and report) and the model that decided. Nothing checked is kept.

- Scope: compliance:read
- Mcp: rivier_safety_check
- Graphql: Query.complianceSafetyCheck
- Sdk: compliance.safety.check
- Cli: compliance safety check

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "text": {
      "type": "string",
      "minLength": 1,
      "maxLength": 12000
    },
    "assetId": {
      "type": "string",
      "format": "uuid"
    }
  },
  "additionalProperties": false
}
```

## Responses

- `200`: Success
- `400`: The request was malformed
- `401`: No valid credential
- `403`: The credential lacks the scope, origin or address
- `429`: Over the key's rate limit; see Retry-After

## Example

```sh
curl -X POST 'https://api.rivier.ai/safety/check' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "text": "string",
  "assetId": "string"
}'
```
