Structured JSON output for document layout
Async mdkit jobs also produce a structured JSON document — fetch it with format=json when you need layout and structure, not just text.
Markdown is the right output for LLM prompts, but some pipelines need structure: what was a table, what was a heading, how the document was laid out. Async conversion jobs produce both outputs — Markdown for text, JSON for structure — and you choose per fetch.
Fetch both formats
curl -H "X-API-Key: $MDKIT_API_KEY" \
"https://mdkit.online/v1/convert/jobs/$JOB_ID/result?format=markdown" -o doc.md
curl -H "X-API-Key: $MDKIT_API_KEY" \
"https://mdkit.online/v1/convert/jobs/$JOB_ID/result?format=json" -o doc.json
The JSON document is the conversion engine's full structured representation of
the input. The sync lane (POST /v1/convert) returns Markdown only — JSON
output is an async-lane feature.
Try it
Try it free — submit one document through the async lane and diff the two outputs.