Skip to main content
Glama

APITemplate.io MCP by usefulapi

Create a PDF from HTML

apitemplate_create_pdf_from_html

WRITE: renders one PDF from HTML (Jinja2 placeholders like {{name}} are filled from data), without a saved template, and returns the hosted download_url (never the file bytes). COST: uses 1 generation of your APITemplate.io plan quota per call (see apitemplate_get_account). Do not retry or repeat it unless needed; every call is counted. POST /v2/create-pdf-from-html (export_type=json).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cssNoCSS including the <style> tag.
bodyYesHTML body; may use Jinja2 syntax such as {{name}}.
dataNoValues for the placeholders in body, e.g. {"name":"Jo"}.
metaNoYour own reference id for this file; it shows up in apitemplate_list_objects.
filenameNoCustom file name ending in .pdf (default: a random UUID).
settingsNoPDF print settings.
expirationNoMinutes until the hosted file expires: 0 = keep permanently (default), or 1-10080.
generation_delayNoMilliseconds to wait before rendering (0-30000), for pages that load content late.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.