Documentation

API URL


POST /api/v1/deslop/analyze, /rewrite

Headers
Code
Content-Type: application/json
Body Parameters


Example Request

Code
POST https://datpaq.com/api/v1/deslop/rewrite?api_key=your-api-key | Body: {"text":"It turns out we must leverage a very robust solution.","profile":"technical","mode":"balanced"}

Successful Response

Status
HTML
200 OK
Body
Code
{
  "success": true,
  "textClean": "We must use a strong solution.",
  "changesApplied": 4,
  "rulesVersion": "1.0.0",
  "correlationId": "req_abc123",
  "metadata": {
    "correlationId": "req_abc123",
    "timestamp": "2026-10-14T12:00:00.000Z",
    "processingTime": "2ms",
    "api_token_name": null,
    "rate_limit": {
      "limit": null,
      "remaining": null,
      "reset": null
    }
  },
  "updatedAt": "2026-10-14T12:00:00.000Z"
}

Error Response

Example
Code
HTTP 400 ValidationError: Invalid request fields or parameters — Request rejected before analysis; HTTP 400 UnsupportedLanguage: Confident non-English detection with at least 20 unprotected words — Request rejected as English-only; HTTP 400 InvalidJson: Malformed JSON body — Request rejected by body parser; HTTP 401 AuthenticationError: Gateway authentication failure — Request rejected by gateway; HTTP 404 NotFound: Unknown path — Request path unavailable; HTTP 413 PayloadTooLarge: Text exceeds 100000 UTF-8 bytes or JSON body exceeds 256 KiB — Request rejected before analysis; HTTP 429 RateLimitError: More than 120 requests in 15 minutes — Request rejected by rate limiter; HTTP 500 InternalError: Unexpected processing failure — Request could not complete

Last Updated:  May 4, 2026