CueFrame
Api

Export an exact saved project as a portable template package

Reads the saved project at expectedRevision and uses the maintained extractTemplate owner. Caller controls select existing parameter sites; caller composition, component source, media sample and provenance assertions are refused. Project-bound editors may export only their exact bound project.

POST
/v1/projects/{projectId}/template-package

Authorization

AuthorizationBearer <token>

API key auth. Prefix cf_live_ for production orgs, cf_test_ for sandbox.

In: header

Path Parameters

projectId*string

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/projects/string/template-package" \  -H "Content-Type: application/json" \  -d '{    "idempotencyKey": "string",    "expectedRevision": 0,    "name": "string",    "slug": "string",    "mediaParams": [],    "textParams": []  }'
{  "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    }  }}