---
title: "Detect profanity in a given text"
method: POST
path: "/score/text"
tags: ["Scoring"]
---

# Detect profanity in a given text

`POST /score/text`

## Request

- Base URL: `https://v2.greipapi.com`
- URL: `https://v2.greipapi.com/score/text`
- Auth: HTTP bearer

Detect offensive or inappropriate language in user inputs. API v2 uses POST /score/text with a JSON body (not GET). Responses include risk_level and recommendation.

This method helps safeguard your website or app by detecting offensive or inappropriate language in user inputs. By screening for profanity and other harmful content before it’s made public, you can maintain a positive user environment, protect your brand, and prevent abusive behavior on your platform.

## Request body

- ScoreTextRequest
  - `format` string
  - `mode` string
  - `source` string
  - `text` string, required

## Response `200`

OK

- GreipJsonSuccessEnvelope
  - `success` boolean, required
  - `data` object, required: Endpoint-specific payload.
  - `execution_ms` integer, required

## Changes

- **2026-11-03** `5ef5b288383a`: 2 breaking, 4 warning, 2 info
  - added `#/components/schemas/GreipServiceRequestFields, subschema #2` to the request body `allOf` list
  - the request's body type changed from `object` to no type
  - removed the request property `format`
  - removed the request property `mode`
  - …4 more
- **2026-10-19** `9346ce4dfd7c`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/greip/apis/greip-api/changes/score/text/post.md)

---

[API](https://skmtc.dev/greip/apis/greip-api.md) - [All operations](https://skmtc.dev/greip/apis/greip-api/llms.txt) - [OpenAPI document](https://skmtc.dev/greip/apis/greip-api/revisions/5ef5b288383a?raw)
