Skip to main content

Endpoint

This endpoint creates the initial generation job for a tent.
POST /v1/tents is an async trigger, not a synchronous HTML response. The immediate response only confirms the request was accepted.

Request Body

Request Examples

Minimal Request

With Uploaded Assets

If you uploaded files first, provide the returned tent and asset IDs:

Response Example

202 Accepted
asset_ids can only be used with a tent_id. If you send asset IDs without a tent ID, the API returns 400 Bad Request.

Create From a Template

Pass template_id when you want Tented to start from an existing approved template instead of generating from scratch.
When template_id is present:
  • The template must exist in the same workspace as the API key
  • The template must already be approved
  • Tented uses the approved template content as the starting point for the generation
  • The request still requires a prompt describing the customization you want
The public API does not currently expose a template listing endpoint. You should obtain the template ID from Tented’s template workflow in the same workspace before calling POST /v1/tents.
Template-based requests use the same POST /v1/tents endpoint and return the same 202 Accepted response shape as prompt-only creates.

Include Workspace Branding

Set include_brand to true when you want Tented to enrich the prompt with workspace brand context such as:
  • Brand logo
  • Brand icon
  • Primary color
  • Workspace or company name
  • Company domain
  • Company description
  • Brand guidelines
Example:

Auto-Publish After Generation

Set auto_publish to true if you want Tented to publish the finished tent automatically.
When auto-publish is enabled:
  • Generation still completes asynchronously
  • The create response is still 202 Accepted
  • Publication details appear later in GET /v1/tents/{tentId}

Requesting a custom page alias

You can optionally request a custom published path:
Alias rules:
  • Maximum 100 characters
  • Lowercase letters, numbers, hyphens, underscores, and dots only
  • Must start with a letter or number
  • Must not be a UUID
  • Must not use reserved words such as api, admin, submit, or assets
  • Use / to publish at the domain root
custom_page_alias requires auto_publish: true. Sending an alias without auto-publish returns 400 Bad Request.

Important Behavior

One initial generation per tent

If you supply tent_id, that tent must not already have a generation. Otherwise Tented returns:
with 409 Conflict.

Prompt validation

Tented validates that your prompt is actually asking for web content. Requests that do not look like a landing page, form, registration page, or related web experience can be rejected with:
If you send template_id, prompt validation becomes more permissive. Short customization requests like “make it blue”, “change the speaker name”, or “use it as is” are accepted as long as they are clearly about modifying the selected template.

Credit limits

If the workspace does not have enough credits to start generation, the API returns 429 Too Many Requests.

User attribution

If you provide user_id, Tented stores it as the request’s creator identity for that tent’s first chat message and generation trigger. It does not change authentication or workspace scope.

Common Errors

Next: Retrieve Tent Status

Poll for generation progress and read publication results.