Request
Response
200 OK and returns all variables from the template. The response structure matches the variables used in the template, including nested objects and arrays.
The example above shows a variable schema from an invoice template. The actual
response will vary depending on the template’s structure and variables.
Path Parameters
string
required
Template identifier (the
name field from the template, same as id from
list templates response, or the templateId returned from create template
endpoint)Response Fields
The response contains all variables from the template. The structure will vary depending on the template, but will include all variables, nested objects, and arrays that are used in the template.Usage
This endpoint is essential for:- Understanding what data fields are required to render a template
- Building dynamic forms for template data input
- Validating data before rendering
- Generating API documentation for template-specific data structures
- Discovering available variables programmatically
The response structure matches the variables used in the template. Use this
endpoint to discover what data fields are required when rendering a template
with the generate-pdf-from-template endpoint.
Usage Example
Here’s a complete example of fetching template variables and using them to build a data payload:- Node.js
- Python