Skip to main content

Request a website theme

POST 

/theme-generations

Asks the AI theme builder for a website theme. kind: generate (the default) builds a new theme from brief; kind: revise changes the latest theme as instruction says. Scope website_themes:write.

The build runs in the background: the answer is 202 with the generation queued. Poll GET /theme-generations/{id}, or subscribe a webhook endpoint to theme_generation.* (started, succeeded, failed). A build does not go live by itself: a successful one produces a draft version, which goes live only when you call POST /theme-versions/{version}/publish.

Refusals: 403 theme_builder_not_enabled (the dealer has not turned on the bespoke themes preview in Administration > Feature previews in the DMS), 403 plan_not_entitled (a paid plan is needed) and 429 theme_generation_quota_exceeded (this month's generations are used up; not a rate limit, so retrying soon will not help).

Request​

Responses​

The theme generation.

Response Headers
    X-Request-Id

    This request's id. Quote it to support.

    X-RateLimit-Limit

    Requests allowed per minute for this key.

    X-RateLimit-Remaining

    Requests left in the current minute.

    Idempotent-Replayed

    true when this is the stored response to an earlier request with the same Idempotency-Key.