Start a new project from a pinned template
Create a new project from a template, binding its values and media with an optional preset and brand kit. Async: requires an Idempotency-Key header and returns 202 with a job; poll GET /v1/template-jobs/{jobId} for the project id.
API key auth. Prefix cf_live_ for production orgs, cf_test_ for sandbox.
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/templates/string/instantiate" \ -H "Content-Type: application/json" \ -d '{ "projectName": "string", "values": {}, "media": {} }'{ "jobId": "string", "projectId": "string", "mode": "instantiate", "sourceProjectId": "string", "templateId": "string", "templateVersion": 1, "package": { "receiptId": "string", "archiveSha256": "string", "archiveBytes": 1, "documentSha256": "string" }, "status": "preparing", "stage": "resolving", "templateRef": "string", "documentSha256": "string", "errorCode": "string", "errorMessage": "string", "createdAt": "string", "updatedAt": "string"}{ "error": { "code": "string", "message": "string", "contract": "string", "contractVersion": "string", "details": { "property1": null, "property2": null } }}{ "error": { "code": "string", "message": "string", "contract": "string", "contractVersion": "string", "details": { "property1": null, "property2": null } }}{ "x402Version": 2, "accepts": [ {} ], "error": "string"}{ "error": { "code": "string", "message": "string", "contract": "string", "contractVersion": "string", "details": { "property1": null, "property2": null } }}{ "error": { "code": "string", "message": "string", "contract": "string", "contractVersion": "string", "details": { "property1": null, "property2": null } }}{ "error": { "code": "string", "message": "string", "contract": "string", "contractVersion": "string", "details": { "property1": null, "property2": null } }}{ "error": { "code": "string", "message": "string", "contract": "string", "contractVersion": "string", "details": { "property1": null, "property2": null } }}{ "error": { "code": "string", "message": "string", "contract": "string", "contractVersion": "string", "details": { "property1": null, "property2": null } }}{ "error": { "code": "string", "message": "string", "contract": "string", "contractVersion": "string", "details": { "property1": null, "property2": null } }}{ "error": { "code": "string", "message": "string", "contract": "string", "contractVersion": "string", "details": { "property1": null, "property2": null } }}Import an uploaded template package into the organization library POST
Consumes the authenticated actor package upload reservation. No caller storage keys, document bodies or provenance assertions are accepted. Existing destination slugs require the exact expected version and document digest. Poll getTemplateJob; a ready package remains destination-owned. Project-bound editor credentials are refused.
List this org's templates GET
Page through the video templates saved in this account, newest first, as summaries without their full documents. Call it to find a template id for rendering, applying to a project, or starting a new project.