POST
https://api.craftkit.dev/v1/embed/builder/templateslayout parses as a render-ready
document, a first version is published automatically.
Authorization
Accepts either a partner API key or an embed session JWT.string
required
Bearer ck_live_… (partner API key — grants saveDraft and publish) or
Bearer <session_token> (embed session JWT — rights come from the session’s permissions
claims, and the request must originate from an allow-listed iframe origin).Body
object
required
The builder draft to persist. Stored as-is; the whole object is returned (adapted) in the
response. Only
name, layout, and presetKey are interpreted server-side — all other keys
round-trip through the draft.Response
200 with the created template, adapted to the builder’s documentTemplate shape.
object
Errors
cURL
200