ce258d1167ca
Fill a PDF template
Fills a PDF template (Cast) with the provided data and returns the resulting PDF.
Templates are created and managed in the Anvil dashboard or via the GraphQL createCast mutation. Each template defines named fields (text, date, checkbox, signature, etc.) that can be populated via this endpoint. The field data can be supplied as a flat object keyed by field ID or alias, or as an array of objects for multi-page repeating templates.
Supports both JSON and multipart/form-data request bodies. When using multipart/form-data, string values for fontSize and page are automatically parsed.
Requires API key (Basic auth) or OAuth authentication. Development API keys produce watermarked PDFs; production keys produce clean PDFs and count toward your plan's usage.
Path parameters
The EID (external identifier) of the PDF template (Cast) to fill.
Query parameters
The version number of the template to use. If omitted, the latest published version is used. Use this to pin fills to a specific template revision.
Request body
Response
The filled PDF document.