Skip to main content

documentTemplateRenderToPDF

Generate PDF document from template with provided data.

Renders the document template using the provided payload data and returns a Base64-encoded PDF file for download or further processing.

Possible errors:

  • TEMPLATE_NOT_FOUND: Template with specified ID does not exist
  • HANDLEBARS_RENDER_ERROR: Template rendering failed due to syntax or data issues
  • HANDLEBARS_PRECOMPILE_ERROR: Precompiled template rendering failed
  • HANDLEBARS_RENDER_VARIABLES_ERROR: Query variables rendering failed
  • TEMPLATE_DO_CUSTOM_QUERY_ERROR: Custom query execution failed
  • PDF_GENERATE_ERROR: PDF generation failedAUTH: Role=[configuration.OWNER,configuration.EDITOR,configuration.VIEWER]
documentTemplateRenderToPDF(
id: String!
input: TemplateRenderInput!
): Base64File!

Arguments

documentTemplateRenderToPDF.id ● String! non-null scalar

Unique identifier for the message template.

Used to reference and manage specific templates throughout the messaging system for emails, documents, and notifications.

documentTemplateRenderToPDF.input ● TemplateRenderInput! non-null input

Type

Base64File object