render

Render a DSL template draft to PDF

Render inline builder DSL with data while authoring a template. Free and not billed; limited to 200 renders per hour. Publish with POST /api/v1/render.

post/api/v1/preview

Request

  • Base URL: https://makespdf.com
  • URL: https://makespdf.com/api/v1/preview
  • Auth: HTTP bearer

Request body

dslstring required
dataobject

Values substituted into {{placeholders}}. Defaults to the script's sampleData.

Response

Rendered PDF (PDF/A-2A + PDF/UA-1 dual-compliant, tagged). Send Accept: application/json for metadata instead of bytes.

successtrue required
templateIdstring

Stored template rendered (/render only).

pageCountinteger required
sizeBytesinteger required
renderMsinteger required
artifactIdstring

Render artifact id; download again via GET /api/v1/artifacts/{id}/pdf.

credits_deductedinteger
remaining_balanceinteger

Changes

No recorded changes to this operation across all 1 revision of this API.