Documentation

API URL


POST /api/v1/profanity/analyze

Headers
Code
Content-Type: application/json
Body Parameters


Example Request

Code
GET https://datpaq.com/api/v1/profanity/filter?api_key=your-api-key&text=This%20is%20some%20damn%20text

Successful Response

Status
HTML
200 OK
Body
Code
{
  "success": true,
  "data": {
    "hasProfanity": true,
    "maxSeverity": "high",
    "matches": [
      {
        "word": "damn",
        "severity": "high"
      }
    ]
  },
  "meta": {
    "processingTimeMs": 12.3,
    "tier": 3
  },
  "correlationId": "req-123456789"
}

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 unavailable

Last Updated:  May 4, 2026