Skip to content

API Reference

Base URL: https://api.pagekiln.dev/v1 — bearer-token auth on every route except GET /health.

A fully generated reference (from our OpenAPI 3.1 contract) is coming. The surface today:

EndpointMethodsPurpose
/healthGETService health
/renderPOSTRender one PDF (inline or URL)
/batchesGET, POSTCreate/list batch jobs
/batches/{batch_id}GETBatch status + item results
/templatesGET, POSTCreate/list templates
/templates/{template_id}GET, DELETETemplate detail/delete
/templates/{template_id}/versionsGET, POSTTemplate versions
/fontsGET, POSTCustom fonts
/fonts/{font_id}DELETERemove font
/keysGET, POSTAPI keys
/keys/{key_id}DELETERevoke key
/webhooksGET, POSTWebhooks
/webhooks/{webhook_id}DELETERevoke webhook
/webhooks/{webhook_id}/deliveriesGETDelivery log
/usageGETUsage summary

Errors share one shape: {"error": {"code", "message", "request_id", "details?"}}.