API keys
API keys authenticate REST API and MCP access (Authorization: Bearer <key>). The plaintext is shown exactly once at creation — store it safely; revocation takes effect immediately.
New key created — shown only this once:
If your email isn't verified yet, this key can't call the render endpoint until it is; resend the verification email from the render page.
Use your key
REST — one call renders Markdown to a PDF:
curl -X POST https://serifmark.com/render -H "Authorization: Bearer YOUR_KEY" -H "Content-Type: application/json" -d '{"source": "# Hello Serifmark", "template": "default"}'
The response carries a short-lived signed download_url; fetch it promptly.
Math (KaTeX) and flowcharts (Mermaid) are rendered server-side. Front-matter at the top of the
source sets title, brand and layout.
MCP — same key, for agents:
{
"mcpServers": {
"serifmark": {
"url": "https://serifmark.com/mcp",
"headers": { "Authorization": "Bearer YOUR_KEY" }
}
}
}