Create a tent template
Create a tent template from caller-supplied HTML. Seeds a completed v1 that the editor loads directly. Use POST /v1/tent-templates/from-tent/{tentId} to create from an existing tent, and POST /v1/tent-templates/{templateId}/messages to iterate with AI.
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.
Body
Response
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.