Site lifecycle

duplicate_site

Duplicate an existing published site inside the caller's account. Copies the source site's gate configuration and seeds the destination draft from the source's current published version. The destination is created with a fresh Sentway-generated slug (no relation to the source slug) and is left unpublished with an open seeded draft. Requires editor role. Errors: E_NO_PUBLISHED_VERSION if the source has never been published; E_SITE_LIMIT on the free plan.

Behaviour

Effect
Write. It creates or updates data in the account.
Repeat calls
Not idempotent. Repeating the call can produce a further change.
Plan
Available on every plan, including free.

Parameters

NameTypeRequiredDescription
request_idstringYes
source_site_iduuidYes
namestringYes

Returns

NameTypeDescription
siteobject
draftobject
gateobject
idempotency_replayfalse

Using it

duplicate_site is called by an AI assistant connected to Sentway over MCP, not by hand. Point the assistant at the Sentway MCP endpoint and complete the OAuth flow, and the tool becomes available in the same session as the other 38 Sentway tools. See connecting over MCP.