Skip to content

JS SDK

Ships with the private beta — join the waitlist.

import { PagekilnClient } from "@pagekiln/sdk";
const pagekiln = new PagekilnClient({ apiKey: process.env.PAGEKILN_API_KEY! });
const render = await pagekiln.renderUrl({
template_id: "tpl_...",
data: { invoice_no: "INV-001" }
});
console.log(render.url);

Full guide coming soon. The client covers templates, renders, batches (including NDJSON), API keys, webhooks, fonts and usage — see the API Reference for the underlying endpoints.