{"uid":"cap_HGPO9ruxGw9WgECSb--sr","slug":"makespdf-com-6c143ef5","name":"MakesPDF Render — Data-to-PDF from Template or DSL","description":"Generate a PDF from structured data — no source document needed. Supply data plus a curated-library template id (or inline DSL); output is a tagged, accessible PDF/UA-1 + PDF/A-2A document.","url":"https://makespdf.com/api/v1/render","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"dsl":{"type":"string","description":"Builder DSL script — bring your own template. Full DSL reference, recipes, and examples: https://makespdf.com/skills/pdf-template-author.md. Mutually exclusive with templateId."},"data":{"type":"object","description":"Values substituted into {{placeholders}}"},"templateId":{"type":"string","description":"Curated-library or saved template id — the simplest path when you only have data. Browse the library at GET /api/v1/templates?owner=library. Mutually exclusive with dsl."}}},"responseSchema":{"type":"binary"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_DLKFsRg_VIgDLbP7XLTRi","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates a tagged, accessible PDF/UA-1 + PDF/A-2A document from structured data combined with a curated library template ID or an inline builder DSL script.","exampleAgentPrompt":"Generate an accessible PDF using the makespdf library template 'invoice-standard' and fill in these values: company 'Acme Corp', amount '$1,250.00', due date 'June 15 2025', and client name 'Jordan Rivera'.","exampleUseCases":null,"resultDescription":"A binary PDF file that is dual-compliant with PDF/UA-1 (tagged, accessible) and PDF/A-2A (archival) standards, generated by substituting the provided data values into the specified template or DSL-defined layout — no source document required.","failureModes":["Both dsl and templateId supplied simultaneously — mutually exclusive fields cause a 400 error","Neither dsl nor templateId provided — missing required template source returns an error","Invalid or unknown templateId — template not found in library returns 404","Malformed DSL script — syntax errors in the builder DSL return a parse error","Data object missing required placeholders referenced by the template — unresolved placeholders may cause render failure","Payment not included or insufficient — x402 payment required error (402 status)"],"whenToPreferThis":"Choose this endpoint when you need to generate a standards-compliant, accessible PDF from structured data without any existing source document — especially when you want to use a pre-built curated template (templateId) for common document types like invoices, reports, or certificates, or when you need fine-grained control via the builder DSL. Prefer this over the sibling Markdown-to-PDF endpoint when your input is structured data (JSON) rather than Markdown text.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:35:55.289Z","isFirstParty":false}