Skip to main content
GET https://api.craftkit.dev/v1/templates/:slug
Fetch one template by slug, including its published manifest (the contract your render data must satisfy) and an auto-generated JSON Schema for client-side validation. Use this to verify a template and bind keys before rendering.

Authorization

string
required
Bearer ck_live_… — a project API key.

Path parameters

string
required
The template slug, unique within the project.

Response

string
string
string
string | null
string
document or pdf-overlay.
number | null
boolean
false when the template exists but has no published version.
object | null
null when unpublished. Otherwise:
object | null
Draft-07 JSON Schema derived from the manifest, or null when unpublished. A select variable is emitted as a string enum of its option values (e.g. { "type": "string", "enum": ["SHIPOWNER", "CHARTERER"] }).
string
string

Errors

No template with that slug in this key’s project.
cURL
200