API URL
POST /api/v1/profanity/analyze
Headers
Code
Content-Type: application/jsonBody Parameters
Param
Type
Description
text
required
string
Single text input to analyze (1-10000 chars)
Example Request
Code
GET https://datpaq.com/api/v1/profanity/filter?api_key=your-api-key&text=This%20is%20some%20damn%20textSuccessful Response
Status
HTML
200 OKBody
Code
{
"success": true,
"data": {
"hasProfanity": true,
"maxSeverity": "high",
"matches": [
{
"word": "damn",
"severity": "high"
}
]
},
"meta": {
"processingTimeMs": 12.3,
"tier": 3
},
"correlationId": "req-123456789"
}Field
Type
success
boolean
data
object
data.hasProfanity
boolean
data.maxSeverity
string
data.matches
array
data.summary
object
data.results
array
meta
object
correlationId
string
error
string
message
string
details
array
allowedMethods
array
Error Response
Example
Code
400 ValidationError - Missing or invalid text/texts or invalid enum values: Request failed schema or tier constraint validation
400 MalformedJson - Invalid JSON syntax in POST body: Request body could not be parsed
401 AuthenticationError - Missing or invalid API key: API route authentication failed
404 NotFound - Unknown endpoint: Route not implemented by service
405 MethodNotAllowed - Method other than GET or POST on API routes: Route only supports GET and POST
414 URITooLong - Query string exceeds configured max length: Request should be retried as POST with JSON body
429 RateLimitExceeded - Too many requests from same IP: Rate limiter rejected request
500 InternalServerError - Tier analysis or auth runtime failure: Unexpected server-side execution failure
503 ServiceUnavailable - Auth backend unavailable or unhealthy service state: Required backend dependency unavailableLast Updated: May 4, 2026