Q: can it automate generate pdf report with dynamic content?
Hi, may I check if MarkupGo can support this online quiz workflow?
Can MarkupGo receive quiz answers as JSON data via API?
Can those answers be inserted into a saved template as dynamic content?
Can the output be generated as a PDF report?
Does the API return a hosted PDF URL that I can save and send to the user?
Is this suitable for personalised reports that may contain user-submitted information?
Are there any limitations around long text fields, multiple pages, tables, or conditional sections in the PDF?
The intended workflow is:
Online quiz
→ capture user answers
→ send answers and results to MarkupGo via API
→ generate personalised PDF from template
→ return PDF URL
→ send PDF report link to the user
Would this be possible, and what API endpoint or documentation should I refer to for this use case?
abdullahmara
Jun 6, 2026A: Hi WinWin,
Thanks for reaching out — and yes, MarkupGo is a great fit for exactly this kind of quiz-to-PDF workflow. Here's a point-by-point answer:
Can MarkupGo receive quiz answers as JSON via API?
Yes. You send your quiz answers and results as a plain JSON object in the API request body (under source.data.context).
Can those answers be inserted into a saved template as dynamic content?
Yes. You design and save a template in the dashboard, then reference it by its template ID. We use Handlebars syntax ({{name}}, {{score}},
etc.), so any value you pass in the context object is rendered into the template at generation time.
Can the output be a PDF report?
Yes. The endpoint is:
POST https://api.markupgo.com/api/v1/pdf
Example request:
{
"source": {
"type": "template",
"data": {
"id": "YOUR_TEMPLATE_ID",
"context": {
"name": "John Doe",
"score": 87,
"answers": [ ... ]
}
}
}
}
Authenticate with your API key via the x-api-key header (generate one in your dashboard).
Does the API return a hosted PDF URL?
Yes. The response is a JSON object containing a hosted CDN url you can store and send straight to your user:
{
"id": "26a4ebd91745f1755df615ba",
"url": "https://files.markupgo.com/tasks/.../1725057544064.pdf",
"format": "pdf",
"size": 1048576
}
(If you'd rather receive the raw PDF binary instead of a URL, use POST /api/v1/pdf/buffer.)
Is this suitable for personalised reports with user-submitted info?
Absolutely — personalised, per-user reports are one of the most common use cases for this exact endpoint. You can also set an expiration on
the file (anywhere from 60 seconds up to 90 days) if you'd like generated reports to auto-delete after a period.
Limitations around long text, multiple pages, tables, conditional sections?
- Long text & multiple pages: Fully supported — content flows and paginates automatically.
- Tables: Fully supported (standard HTML/CSS tables render as expected).
- Conditional sections: Supported via Handlebars helpers like {{#if}} / {{#each}}, so you can show/hide sections based on the answers you
pass in.
- There's no hard limit on page count or text length. The main thing to keep an eye on is your plan's monthly credit allowance (each PDF
generation uses 3 credits). The default API rate limit is 100 requests/minute.
Your intended workflow — Online quiz → capture answers → POST answers to MarkupGo → generate personalised PDF from template → get back the
hosted PDF URL → send to user — is fully supported end-to-end.
Documentation to refer to:
- API overview: https://markupgo.com/docs/api
- PDF endpoint (your main reference): https://markupgo.com/docs/api/pdf
- Templates: https://markupgo.com/docs/api/templates