Access and gates

set_gate_access

Choose the site's primary gate: public, email_capture, allowlist, password, or paid. Classic modes take only the credentials their mode allows; 'paid' selects an existing site-wide paid offer and takes no credentials and no expiry. Switching is non-destructive: the unselected side is preserved and dormant. The gate password is a DIFFERENT secret from an offer's purchase password, and the gate allowlist is separate from an offer's approved-email list (set_paid_access_requirements). Takes effect on the next publish_site. Changes no design: use set_gate_draft_design. Editor role.

Behaviour

Effect
Destructive. It can remove or overwrite existing data.
Repeat calls
Idempotent. Repeating the same call produces the same result.
Plan
Available on every plan, including free.

Parameters

NameTypeRequiredDescription
request_idstringYesUnique mutation ID. Reuse only to replay identical arguments.
site_iduuidYesSite UUID from list_sites.
modeenum
public | email_capture | allowlist | password | paid
YesGate visitors meet: public, email_capture (soft gate), allowlist (verified email against a typed list), password (one shared password), or paid (buy access via a site-wide offer, which must already exist). Switching is non-destructive.
expires_attimestamp or nullNoFuture ISO-8601 timestamp when the room closes for everyone; null clears, omit keeps.
lead_fieldsarray of objectNoFULL REPLACEMENT of the lead-capture fields; omit keeps, [] clears. Max 6; email is implicit.
require_email_verificationbooleanNoemail_capture only: require a magic-link click before access.
allowlistarray of objectNoFULL REPLACEMENT of the allowlist, lowercased server-side; domain matches exactly (no subdomains). [] clears.
passwordstringNoPlaintext classic gate password, hashed server-side, never returned. Not the offer purchase password.

Returns

NameType
site_iduuid
modeenum
public | email_capture | allowlist | password
primary_gateenum
public | email_capture | allowlist | password | paid
paid_site_scopeenum or null
entire_site | except_homepage
publish_requiredboolean
has_passwordboolean
allowlist_countinteger
lead_fields_countinteger
require_email_verificationboolean or null
expires_attimestamp or null
idempotency_replayfalse

Using it

set_gate_access 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 56 Sentway tools. See connecting over MCP.