render

Render a placeholder template with JSON data

Requires a paid plan and a V2 (placeholder-aware) template. Placeholders use Liquid syntax, for example {{ customer_name }}. The whole call is capped at 60 seconds.

post/api/v2/templates/{id}/render

Request

  • Base URL: https://api.pressa.dev
  • URL: https://api.pressa.dev/api/v2/templates/{id}/render
  • Auth: none declared

Path parameters

idstring required

Numeric template id or template name.

Request body

dataobject required

Values for the template's placeholders, keyed by placeholder name.

Response

PDF rendered. Same shape as compile, plus a template block with id, name and version.

Changes

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