Generate a PDF from JSON in Make

Make moves data well but has no layout engine. With one HTTP module, a bundle becomes a designed PDF: arrays turn into table rows that continue across pages, and the response hands the next module a link.

  1. 1

    Publish a template

    Pick a starter, adjust it, and publish. Copy its id (tpl_...) from the editor's API panel.

  2. 2

    Add HTTP → Make a request

    URL and method below, two headers (your API key and an Idempotency-Key), Body type Raw, Content type JSON, and Parse response on. Use toJSON() for arrays so line items arrive as a list.

    URL      https://docspout.com/v1/renders
    Method   POST
    Headers  Authorization: Bearer sk_test_...
             Idempotency-Key: {{execution.id}}-{{bundle.index}}
    Body     {"template": "tpl_...", "data": {"number": "{{1.number}}", "items": {{toJSON(1.items)}}}}
  3. 3

    Map the result

    The parsed response has url, a link to the PDF, and pages. Map url into Gmail, Outlook, Google Drive (Upload a File from URL), or Slack.

  4. 4

    Handle missing data

    If a field is missing, the module gets 422 with code missing_field and the exact paths. Add an error handler route that emails you the message, then fix the mapping. Failed renders don't count against your quota.

More workflows

Send your first PDF in two minutes.

100 documents a month free. No card.

Start free