Complete reference for the DocForge document conversion API. All endpoints accept JSON and return JSON.
Pass your API key via the X-Api-Key header. The Free tier requires no key.
| Tier | Key Prefix | Requests/Day | Max Input | Price |
|---|---|---|---|---|
| Free | none | 500 | 100 KB | $0 |
| Pro | dk_pro_* |
50,000 | 5 MB | $9/mo |
| Team | dk_team_* |
500,000 | 25 MB | $29/mo |
Returns the API name, version, operational status, and a list of all available endpoints. No authentication required.
| Field | Type | Description |
|---|---|---|
| name | string | API name |
| version | string | API version |
| status | string | Operational status |
| endpoints[] | object[] | Array of endpoint objects with method, path, description |
Click "Send Request" to see the response
Convert Markdown text to sanitized HTML. Supports headings (h1-h6), bold, italic, strikethrough, links, images, fenced code blocks with language annotation, ordered and unordered lists, blockquotes, and horizontal rules.
| Field | Type | Description | |
|---|---|---|---|
| markdown | string | required | Markdown text to convert (min 1 character) |
| Field | Type | Description |
|---|---|---|
| html | string | Rendered HTML output |
| meta.wordCount | integer | Number of words in the input |
| meta.headings | string[] | Extracted heading text |
Click "Send Request" to see the response
Parse CSV (or TSV) data into a JSON array of objects. The first row is treated as column headers. Supports quoted fields with escaped double-quotes and a configurable single-character delimiter.
| Field | Type | Description | |
|---|---|---|---|
| csv | string | required | CSV text to parse (min 1 character) |
| delimiter | string | optional | Single-character delimiter. Default: , |
| Field | Type | Description |
|---|---|---|
| data | object[] | Array of row objects keyed by column headers |
| meta.rowCount | integer | Number of data rows (excluding header) |
| meta.columns | string[] | Column names from the header row |
Click "Send Request" to see the response
Convert an array of JSON objects to CSV format. Columns are automatically detected from all keys across all rows. Fields containing the delimiter, double quotes, or newlines are properly escaped. Supports a configurable delimiter.
| Field | Type | Description | |
|---|---|---|---|
| data | object[] | required | Non-empty array of JSON objects to convert |
| delimiter | string | optional | Single-character delimiter. Default: , |
| Field | Type | Description |
|---|---|---|
| csv | string | CSV output with header row and data rows |
| meta.rowCount | integer | Number of data rows |
| meta.columns | string[] | Column names (union of all keys) |
Click "Send Request" to see the response
Bidirectional conversion between YAML and JSON. Set direction to yaml-to-json or json-to-yaml. The YAML parser supports scalars, nested objects, and arrays.
| Field | Type | Description | |
|---|---|---|---|
| input | string | required | The YAML or JSON string to convert (min 1 character) |
| direction | enum | required | yaml-to-json or json-to-yaml |
| Field | Type | Description |
|---|---|---|
| output | string | The converted output (JSON string or YAML string) |
| meta.keys | integer | Number of top-level keys in the parsed object |
Click "Send Request" to see the response
Converts Markdown to a complete, styled HTML document with themes, table of contents, and print support. Returns a standalone HTML page ready to serve, embed, or download.
| Field | Type | Description | |
|---|---|---|---|
| markdown | string | required | Markdown text to convert (min 1 character) |
| theme | enum | optional | github (default), notion, minimal, academic |
| options.toc | boolean | optional | Generate a table of contents from headings. Default: false |
| options.syntaxHighlight | boolean | optional | Include syntax highlighting CSS for code blocks. Default: true |
| options.darkMode | boolean | optional | Enable dark mode with toggle button and prefers-color-scheme support. Default: false |
| options.printStylesheet | boolean | optional | Include print-friendly CSS with URL expansion. Default: true |
| options.meta.title | string | optional | Document title for <title> and Open Graph tags. Falls back to first heading. |
| options.meta.author | string | optional | Author name for <meta name="author"> |
| options.meta.description | string | optional | Page description for <meta name="description"> and Open Graph |
| Field | Type | Description |
|---|---|---|
| html | string | Complete standalone HTML document ( to |