Create a tent template from a tent
Create a tent template from an existing tent’s latest completed render — its HTML and assets are copied into the new template.
Authorizations
Workspace API key, e.g. Authorization: Bearer tented_.... Create keys in Workspace Settings → API Keys.
Headers
Optional idempotency key. Replaying a request with the same key returns the stored result of the first attempt. If the first attempt is still in flight, the replay fails with 409 idempotency_in_progress.
Path Parameters
Source tent ID.
Body
Internal display name for the new template (1–200 characters).
1 - 200Response
Template created.
Full tent template object.
Tent template ID.
Internal display name.
Lifecycle state.
draft, approved Latest content version number.
How the template was created: upload for API- or hand-authored HTML, tent for templates created from an existing tent.
upload, tent Tent the template was created from, when source_type is tent.
Version that is approved, or null.
Number of content versions (equals current_version).
Creation time.
Last update.
Who created the template (API key name or user).
Status of the most recent AI generation, when one exists.
generating, completed, failed API path to fetch the latest HTML, e.g. /v1/tent-templates/{templateId}/content.