Generate a PDF by rendering a named template with provided context data
templateName
(string, required): The name of your custom template created in the dashboardx-api-key
(string, required): Your API key for authenticationContent-Type
: application/json
contextJson
object structure depends entirely on your template design. Common patterns include:
Certificate Template:
TEMPLATE_NOT_FOUND
: Template with specified name doesn’t existINVALID_API_KEY
: API key is invalid or expiredMISSING_TEMPLATE_DATA
: Required template fields are missingQUOTA_EXCEEDED
: Account has exceeded PDF generation limitsURL-encoded name of the template to use for PDF generation
PDF generated successfully
The response is of type object
.