Skip to main content

Prerequisites

  • A Craftkit project with a published template and its slug.
  • A project API key (ck_live_…) for the environment you are calling.
Create a key in Dashboard → your project → API keys. Copy it immediately — it is shown once. Keys are environment-specific; see Authentication.

1. Verify connectivity

2. Read the template manifest

Confirm the template exists and learn exactly which keys it expects.

3. Enqueue a render

Rendering is asynchronous. The response is 202 with status: "queued" and downloadUrl: null. There is no synchronous mode — you poll (or use a webhook). See Render lifecycle.

4. Poll until complete

5. Use the PDF

When status is succeeded, downloadUrl points at the rendered PDF. For a durable, guest-shareable link, mint a share link instead.

Go deeper: server-to-server integration

Idempotency, manifest binding, pipelines, images, and webhooks for a production backend.