Import an uploaded template package into the organization library
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.
API key auth. Prefix cf_live_ for production orgs, cf_test_ for sandbox.
In: header
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
application/json
curl -X POST "https://example.com/v1/templates/import" \ -H "Content-Type: application/json" \ -d '{ "uploadId": "string", "idempotencyKey": "string" }'{ "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 } }}{ "error": { "code": "string", "message": "string", "contract": "string", "contractVersion": "string", "details": { "property1": null, "property2": null } }}Read a template render GET
Check a template render's status and get its share link and poster URL, or its error if it failed. Poll it after POST /v1/templates/{id}/renders to learn when the video is ready to share.
Start a new project from a pinned template POST
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.