Documentation

API URL


POST /api/analyze

Headers
Code
Content-Type: application/json
Body Parameters


Example Request

Code
{'text': 'You little shit'}

Successful Response

Status
HTML
200 OK
Body
Code
{'source': 'flat', 'input': 'You little shit', 'profanity_count': 1, 'profanities': [{'term': 'shit', 'language': 'en', 'severity': 'high', 'definition': 'expletive'}]}

Error Response

Example
Code
400 INVALID_INPUT | If "text" field is missing, not a string, or too long
500 INTERNAL_ERROR | If LLM fails or other internal error

Last Updated:  May 4, 2026