1. POST your Markdown
Send Markdown plus optional theme and page size as JSON. The endpoint renders the document inside the same request.
Convert Markdown to PDF via API
POST a JSON body with your Markdown, theme, and page size and the endpoint returns the rendered PDF in the same response. There is no job queue to manage — it uses a Typst rendering pipeline.
Send Markdown plus optional theme and page size as JSON. The endpoint renders the document inside the same request.
The response body is the PDF binary itself (application/pdf). There is no job ID and nothing to poll.
Write the bytes to disk, attach them to an email, or stream them back to your user.
curl -X POST https://justmarkdown.com/api/v1/convert \
-H "Content-Type: application/json" \
-d '{"markdown":"# Hello","theme":"Academic","pageSize":"A4"}' \
-o document.pdfAdd this to your `mcp.json`. API keys are only used here (optional):
{
"mcpServers": {
"justmarkdown": {
"type": "http",
"url": "https://justmarkdown.com/api/mcp"
}
}
}MCP account keys are billed 1 credit per conversion; anonymous calls use the daily free tier.
Full MCP setup guide →/api/v1/convert (Markdown → PDF) and text-based PDFs are free./api/mcp, account API Key): 1 credit per call.This endpoint is unauthenticated and governed by fair use; there is no published per-minute cap.
Only Markdown → PDF. It accepts Markdown text and returns a PDF; it does not accept uploaded files and does not return DOCX.
No. `/api/v1/convert` is synchronous: the request stays open until the PDF is ready. For the asynchronous document-to-Markdown job API, see the developer page.
`/api/v1/convert` is unauthenticated and governed by fair use. API keys (created in account settings) are only used by the remote MCP endpoint at `/api/mcp` — not by this endpoint or `/api/jobs`.