API reference/Site members
Make a page members only
Try itMarks a page members only (only signed-in members see it; everyone else gets a sign-in box, and it leaves the sitemap and site search) — or opens it to everyone again. Live at once, no publish. Not the home page, and not a page with a password.
PATCH
/api/v1/sites/{site_id}/pages/{page_id}/members-onlyAuthentication
An API key as Authorization: Bearer or x-api-key. It needs the members:write scope — approve, add and remove site members; mark pages members only (live at once).
members:writeChanges the live siteIdempotency-Key optionalMCP tool: set_page_members_only
Parameters
Named placeholders go in the path; the rest in a JSON body.
site_idstringPath · required- The site's id.1 to 100 characters
page_idstringPath · required- The page's id.1 to 100 characters
members_onlybooleanBody · required
Response
200 with JSON on success (schema on the right). Errors use the standard envelope; a retry with the same Idempotency-Key gets the first answer back (how retries work).
curl -X PATCH 'https://websites.workflowcorp.com/api/v1/sites/SITE_ID/pages/PAGE_ID/members-only' \
-H "Authorization: Bearer $WEBSITEBUDDY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"members_only":true}'{
"site_id": "SITE_ID",
"page_id": "PAGE_ID",
"members_only": true
}{
"type": "object",
"properties": {
"page_id": {
"type": "string"
},
"title": {
"type": "string"
},
"members_only": {
"type": "boolean"
}
},
"required": [
"page_id",
"title",
"members_only"
],
"additionalProperties": false
}