API URL
POST /api/v1/deslop/analyze, /rewrite
Headers
Code
Content-Type: application/jsonBody Parameters
Param
Type
Description
text
required
string
English prose or Markdown
format
optional
string
Text or Markdown format
profile
optional
string
technical marketing academic or casual
mode
optional
string
light balanced or strict
categories
optional
string/array
Rule categories to include
ignore
optional
string/array
Rule IDs or prefixes to skip
preserve
optional
string/array
Protected content classes
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 OKBody
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"
}Field
Type
success
boolean
score
object
scoreBefore
object
findings
array
changes
array
changesApplied
number
stats
object
rulesVersion
string
textClean
string
correlationId
string
metadata
object
updatedAt
string
error
object
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 completeLast Updated: May 4, 2026