Documentation

API URL


POST /api/v1/markdown-convert/to-html, /to-markdown, /to-text, /outline, /batch (POST), /capabilities (GET)

Headers
Code
Content-Type: application/json
Body Parameters


Example Request

Code
POST https://datpaq.com/api/v1/markdown-convert/to-html?api_key=your-api-key | Body: {"markdown":"# Release Notes"}

Successful Response

Status
HTML
200 OK
Body
Code
{"success":true,"html":"<h1 id=\"release-notes\">Release Notes</h1>
","frontMatter":null,"headings":[{"level":1,"text":"Release Notes","slug":"release-notes","line":1}],"stats":{"inputBytes":16,"durationMs":2}}

Error Response

Example
Code
HTTP 400 ValidationError: Missing unknown or invalid body field — Request rejected before conversion; HTTP 400 InvalidJson: Request body is not valid JSON — Body parser rejected the payload before routing; HTTP 401 AuthenticationError: Gateway authentication failure — Request rejected due to missing or invalid API credentials; HTTP 404 NotFound: Unknown endpoint path — Request path does not map to available markdown-convert routes; HTTP 413 PayloadTooLarge: Field over the input byte limit or body over the transport limit — Document too large to convert; HTTP 422 UnprocessableEntity: Malformed YAML front matter — Document front matter could not be parsed; HTTP 429 RateLimitError: More than 120 requests in 15 minutes — Request rejected by service rate limiter; HTTP 500 InternalError: Stage time budget exceeded or unexpected failure — Conversion could not complete

Last Updated:  May 4, 2026