API Reference: Websites & Pages: Publishing, Recovery, and Studio Tools
Manage website publishing, imports, backups, templates, layouts, review comments, protected areas, and privacy choices.
Return to API Reference: Websites & Pages for the beginning of this article.
Publishing and Readiness
The recommended publish flow: run readiness checks, resolve findings, then publish.
| Method | Path | Description |
|---|---|---|
GET | /v1/websites/{websiteSimplyId}/publish-readiness | Run publish readiness checks for the site. |
POST | /v1/websites/{websiteSimplyId}/publish-activation | Prepare publish activation; returns the short-lived activationToken used with PUT /v1/websites/{websiteSimplyId} when required. |
POST | /v1/website-pages/{pageSimplyId}/publish | Publish one page's draft. |
POST | /v1/websites/{websiteSimplyId}/header-footer/publish | Publish the site's draft header and footer. |
POST | /v1/websites/{websiteSimplyId}/campaign-chrome/publish | Validate and publish the V2 popup/banner draft, including current page references and allowed connected form components; capture a backup and refresh static artifacts without activating an unpublished site. |
POST | /v1/websites/{websiteSimplyId}/preview-sessions | Create a short-lived draft preview session. Open previewUrl with ?s360PreviewToken=<previewToken> appended to preview the draft outside Studio; the hosted site stores the token in a 15-minute preview cookie and drops it from the URL. Pass optional JSON body { "proposalSimplyId": "..." } to preview a pending proposal's page-design changes applied to the draft in memory. Only the caller's own pending (DRAFT) proposal from draft_patch_website_page_design or plan_website_release can be previewed. Other proposal kinds are refused with 400; a proposal that is no longer pending, or has no page-design changes, with 409. Style Kit, header/footer, announcements and popups, page metadata, brand asset, and publish changes are not previewed yet. The link stops working (409) if the proposal is edited or leaves DRAFT. The response adds proposalSimplyId, previewedChanges (page-design changes rendered), and notPreviewedChanges (other proposal changes). |
curl -s "https://api.simply360.app/v1/websites/WEBS-1234-ABCD/publish-readiness" \
-H "Authorization: Bearer $S360_ACCESS_TOKEN" \
-H "X-Team-Id: TEAM-1234-ABCD"
Readiness results are advisory checklists; publishing endpoints enforce the hard requirements themselves. Website detail responses expose campaignChromeHasUnpublishedChanges and campaignChromePublishedAt. Invalid or deleted page references block campaign publish. Campaign dismissal and audience markers are visitor-local functional storage and do not create campaign-specific analytics events.
publish-readiness's issues[] keeps its original string[] shape (the four legacy message kinds only) unchanged — changing a response field's type would be a breaking change under this API's versioning policy. The new, additive issueDetails[] field is an array of { code, severity: 'BLOCKING'|'WARNING', message, heuristic?, pageSimplyId?, fileSimplyId?, dataWizardSimplyId?, dataViewSimplyId?, pageBlockSimplyId?, family?, declaredIn?, viewportPx? } objects (the SDK's WebsitePublishReadinessResponse type) covering the same four kinds plus every content-check finding — prefer it over issues. This is a purely static, DB-only diagnostic — no headless browser and no network call — covering unpublished changes, the publish-activation billing quote, empty/placeholder photo slots, a missing favicon or per-page share image, non-loading Style Kit/design fonts (including one declared via a resolvable CSS var()), a labeled CSS-overflow heuristic for 320/390px phones (heuristic: true; never a rendered measurement), embedded Wizard/Data View resolution, and media files that would 403/404 for an anonymous visitor after publish (a file eligible for the standalone WEBSITE_MEDIA publish grant is never blocked for lacking a page reference it does not need). severity: 'BLOCKING' means publishing would visibly break the live site for a visitor; only BLOCKING issueDetails entries affect the response's ready field, and this endpoint never gates the actual publish calls above — it only informs. A new contentChecks: { truncated, pagesScanned, pagesTotal } field reports whether a large site's pages were fully covered by these checks (capped at 50; the unpublished-page count itself still covers every page). A page the calling actor cannot read is excluded from every part of this response. See the MCP Server reference's run_website_publish_readiness section for the full per-code breakdown.
To put an uploaded image, native browser video, or PDF on a page, reference its /api/website-media/{fileSimplyId} URL in the page design and publish the page; to publish an image standalone (not tied to a specific page/header/footer design), upload it with purpose: "WEBSITE_MEDIA" and a websiteSimplyId instead. See Files API: Uploads for both paths and the response fields that report whether a file is actually servable.
Website Import
Import an external site in three steps. These operations require the websites edit permission, and the import itself runs as a background task — poll it with the Background Tasks API.
| Method | Path | Description |
|---|---|---|
POST | /v1/websites/import/discover | Discover pages from a source URL. Body: { "sourceUrl" }. Returns site title, favicon, pages, and sitemap sections. |
POST | /v1/websites/import/start | Start the import job. Returns the queued task's backgroundTaskSimplyId. |
POST | /v1/websites/import/{backgroundTaskSimplyId}/review | Submit review decisions for the job's suggestions. |
start body fields: sourceUrl (required), targetMode (required: NEW_WEBSITE or EXISTING_WEBSITE), selectedPages (optional array of discovered page URLs), existingWebsiteSimplyId (for EXISTING_WEBSITE), styleSource (EXTRACTED, STYLE_KIT, or EXISTING_WEBSITE), and teamStyleKitSimplyId (for STYLE_KIT). The review body is { "responses": [ { "suggestionId", "action": "ACCEPT" | "SKIP" | "MODIFY", "modifications"? } ] }; pending suggestions surface on the import task's detail.
Backups and Private Recovery
The selected saved layer must contain at least one non-deleted page. Inspection reports WEBSITE_RECOVERY_LAYER_EMPTY as a blocker; recovery creation, preparation, and apply refuse with HTTP 409, the same stable code, and a message pointing to the saved draft layer or another backup with pages. A never-published Website has no published pages: select backupLayer: 'draft' to recover its saved authored pages. This also protects older empty recovery drafts and prepared plans. SDK, MCP, and Ask Simply preserve the code and guidance.
| Method | Path | Contract |
|---|---|---|
GET | /v1/websites/{websiteSimplyId}/backups | Cursor history: cursor, limit, source, search. Metadata items and nextCursor/retentionPolicy/retentionTelemetry in meta. |
POST | /v1/websites/{websiteSimplyId}/backups | Required backupLabel (1–200 characters, spaces allowed), idempotencyKey; optional summary (up to 2000). Returns 201 metadata. |
GET | /v1/website-backups/{websiteBackupSimplyId} | Metadata, immutable integrity digest, verified coverage, and layer availability; no snapshot JSON. |
PATCH | /v1/website-backups/{websiteBackupSimplyId} | Required backupLabel and expectedUpdatedAt; optional summary. Renames metadata without modifying the saved snapshot. |
GET | /v1/website-backups/{websiteBackupSimplyId}/inspection | Required backupLayer=draft|published. Scope, differences, linked-resource dependencies, digests, and typed blockers. |
POST | /v1/website-backups/{websiteBackupSimplyId}/preview-session | backupLayer and expectedSnapshotHash. Active authenticated Team User only; returns previewUrl and expiresAt. |
POST | /v1/website-backups/{websiteBackupSimplyId}/restore | contractVersion:2, backupLayer, expectedSnapshotHash, and idempotencyKey. Creates a private editable recovery only; returns 201 durable status. |
GET | /v1/website-recoveries/{websiteRecoverySimplyId} | Current authorized status, actual original/recovery site identities, scope/digests, safety backups, warnings/blockers, and nextActions. |
POST | /v1/website-recoveries/{websiteRecoverySimplyId}/preview-session | expectedRecoveryDigest. Active authenticated Team User only; preview reflects the edited private graph. |
POST | /v1/website-recoveries/{websiteRecoverySimplyId}/prepare | expectedRecoveryDigest. Returns exact prepared scope, immutable preparedPlanDigest, and fifteen-minute expiry. |
POST | /v1/website-recoveries/{websiteRecoverySimplyId}/apply | preparedPlanDigest, idempotencyKey, and nonempty reason up to 2000 characters. Separate explicit apply/publish approval. |
POST | /v1/website-recoveries/{websiteRecoverySimplyId}/retry-refresh | expectedAppliedDigest and idempotencyKey. Dispatches artifact refresh only; never reapplies authored changes. |
POST | /v1/website-recoveries/{websiteRecoverySimplyId}/discard | expectedRecoveryDigest and idempotencyKey. Archives only the private draft; rejects apply/refresh in flight. |
Unversioned restore requests return WEBSITE_RECOVERY_V2_REQUIRED. Creating, editing, and previewing a recovery leave the original site unchanged. A separately approved apply promotes the exact reviewed authored graph for a live original; an unpublished original remains unpublished. Identity, address/domain, availability, billing, and current protection remain under original-site custody. Managed configuration cannot be directly changed. Source, private draft, and dependency drift invalidate preparation rather than merging silently.
Whole-site inspection, preview, and recovery creation require Websites view access plus all settings/content/design rights and affected-page access. Metadata reads retain their existing read gate; capture/rename require settings management. Apply additionally checks every changed property and live publishing right. Every replay rechecks current authorization. API-key clients can inspect scope and status but receive no human browser capability. Preview URLs are short-lived principal-bound credentials: do not persist them, share them, or place them in AI summaries.
The TypeScript SDK exposes these operations under client.websites. Hosted MCP clients can complete recovery independently: inspect with inspect_website_backup, approve draft_restore_website_backup for private creation, read bounded get_website_recovery_edit_context, propose authored edits with draft_edit_website_recovery, call prepare_website_recovery, then separately review/approve/execute draft_apply_website_recovery. Discard and refresh-only retry have their own proposals. Approval of private creation never authorizes publication. Ask Simply exposes the same bounded inspection, edit, preparation, and separate approval workflow; authenticated browser preview URLs remain outside its model context because they are bearer credentials. Team Users open previews through the Website Studio surface.
Backup history includes meta.retentionTelemetry: scope:WEBSITE, the current public website identity, retained snapshot count, actual retainedSnapshotStorageBytes measured with MySQL JSON_STORAGE_SIZE for every V1/V2 snapshot, oldest creation time/age, and measurement time. Totals cover the authorized website independently of source/search/cursor filters. An empty history has zero count/bytes and null oldest time/age; unavailable measurement fails explicitly. Stored JSON bytes exclude indexes and other database overhead.
The ten durable statuses are CREATING, DRAFT, PREPARED, CUTOVER_PENDING, CUTOVER_REPAIR_PENDING, APPLIED_REFRESH_PENDING, COMPLETE, SUPERSEDED, DISCARDED, and FAILED. Both cutover states precede authored commit: resume only by explicitly submitting the unchanged apply envelope with current executing-actor authorization. After commit, retry refresh only. Status reads never submit writes. Unpublished/INACTIVE originals use the same serving fence, HTML purge, completed CloudFront invalidation barrier, atomic authored commit, and durable outbox/output proof as live originals; they remain unpublished. COMPLETE requires output completion proof before fence release.
The authored digest excludes capture time, the derived dependency manifest and constituent access-policy digest, while retaining authored bindings. Prepare separately fingerprints current dependency, protection, and template state; their drift blocks apply even when authored content is unchanged. New snapshots must fit 16 MiB (16,777,216 bytes) of serialized UTF-8 JSON. Retention is indefinite without count/storage quotas or eviction. Ordinary website deletion is soft deletion and preserves recoverable history; no permanent-site API is added. Canonical permanent Team SQL erasure removes backup, recovery operation, serving fence, and refresh outbox rows, retaining only minimal audit metadata without backup design, tokens, or receipt JSON.
Interactive manual capture and private recovery creation share a transaction-serialized limit of 60 successful snapshots per rolling 60 seconds for the current Team and canonical principal, across API credentials, MCP, and Ask Simply. 429 WEBSITE_BACKUP_INTERACTIVE_THROTTLED includes its retry window. Current authorization and same-request receipt replay run before admission; replay creates no additional snapshot. Required pre-mutation safety captures stay outside this interactive budget and still block their protected mutation if capture fails. This adds no retained-storage quota or eviction.
Studio Context and AI Drafts
These endpoints support editor and agent experiences on top of the site.
| Method | Path | Description |
|---|---|---|
GET | /v1/websites/{websiteSimplyId}/studio-context | Bounded Website Studio context (site, pages, theme, and the optional activePageSimplyId focus) sized for tool consumption. Returns every insertable Data Views/Wizards/block-preset/layout catalog and the full Style Kit source when the include query parameter is omitted entirely (unchanged default). Presence of include — even include= (empty), meaning explicitly no expansions — requests exactly the listed comma-separated values instead: insertableResources and/or styleKitFull. An unrecognized value is rejected with 400 VALIDATION_ERROR naming the bad value, never silently ignored. The TypeScript SDK's websites.studioContext(id, { include }) sends include (including an empty array) only when the caller passes it, so { include: [] } honestly requests the compact shape. The hosted MCP and TeamAgent/Ask Simply surfaces already default to that compact shape. |
GET | /v1/websites/{websiteSimplyId}/chrome | Read the whole website's header and footer designs, navigation menus (strict v2 navigationJson), site stylesheet, plus resolved page targets and unpublished-change flags. Query parameters: include (draft|published|both, default draft), mode (outline|full, default outline), limit (default 25, max 100), offset. In outline mode, returns bounded node outline with nodeId, component path, tag, classes, and first 80 content characters; in full mode, returns complete design JSON with attributes['data-s360-id'] node IDs. Same authorization gate as get_website_page_design: websites:read scope plus any of canEditDesign, canEditContent, or canPublish website permission. Read before draft_update_website_header/_footer/_navigation/_site_styles. |
GET | /v1/websites/{websiteSimplyId}/dataview-render/{dataViewSimplyId} | Resolve a Data View render payload for the Studio canvas. |
POST | /v1/websites/{websiteSimplyId}/page-drafts | Generate a website page draft. |
POST | /v1/websites/{websiteSimplyId}/site-plan-drafts | Generate a site-plan draft. |
POST | /v1/websites/{websiteSimplyId}/pages/{pageSimplyId}/block-drafts | Draft a page block. |
POST | /v1/websites/{websiteSimplyId}/pages/{pageSimplyId}/text-rewrite-drafts | Draft a rewrite of selected page text. |
Website Templates
Team website templates capture a source website as versioned releases. Sites created from a template can stay connected and receive template updates.
| Method | Path | Description |
|---|---|---|
GET | /v1/website-templates | List the team's templates. |
POST | /v1/website-templates | Create a template. Returns 201. |
GET | /v1/website-templates/{teamWebsiteTemplateSimplyId} | Get a template. |
PUT | /v1/website-templates/{teamWebsiteTemplateSimplyId} | Update a template. |
DELETE | /v1/website-templates/{teamWebsiteTemplateSimplyId} | Archive a template. |
POST | /v1/website-templates/{teamWebsiteTemplateSimplyId}/release | Release a template version (optional releaseNotes, applyAutoSites, managedPublish). Returns 201. |
POST | /v1/website-templates/{teamWebsiteTemplateSimplyId}/websites | Create a website from a released template. Returns 201. |
POST | /v1/websites/{websiteSimplyId}/template/apply | Apply the latest linked template version to a connected site. |
POST | /v1/websites/{websiteSimplyId}/template/disconnect | Disconnect a site from its template. |
Create body: name (required) plus optional description, sourceWebsiteSimplyId, connectSourceWebsite, defaultSyncMode (AUTO or REVIEW), managedPublishEnabled, and ownership flags ownsTheme / ownsHeaderFooter / ownsCampaignChrome / ownsNavigation controlling what the template governs on connected sites. Create-from-template body: name (required) plus optional slug, enumAppBrandId, defaultLanguageTagId, and templateSyncMode (AUTO or REVIEW).
curl -s -X POST "https://api.simply360.app/v1/website-templates/TMPL-1234-ABCD/websites" \
-H "Authorization: Bearer $S360_ACCESS_TOKEN" \
-H "X-Team-Id: TEAM-1234-ABCD" \
-H "Content-Type: application/json" \
-d '{ "name": "Spring Campaign Site", "templateSyncMode": "REVIEW" }'
Layout Catalog and Team-Saved Layouts
| Method | Path | Description |
|---|---|---|
GET | /v1/website-layouts/catalog | Get the platform layout catalog (reusable section designs). |
GET | /v1/websites/{websiteSimplyId}/saved-layouts | List team-saved layouts (optional designFormat filter: GRAPESJS_WEB or GRAPESJS_EMAIL). |
POST | /v1/websites/{websiteSimplyId}/saved-layouts | Save a layout. Body requires name, category, contentJson; optional description, designFormat, syncMode (SNAPSHOT or SYNCED). Returns 201. |
GET | /v1/websites/{websiteSimplyId}/saved-layouts/{savedLayoutSimplyId} | Get a saved layout. |
PATCH | /v1/websites/{websiteSimplyId}/saved-layouts/{savedLayoutSimplyId} | Update a synced saved layout's source. |
DELETE | /v1/websites/{websiteSimplyId}/saved-layouts/{savedLayoutSimplyId} | Archive a saved layout. |
SYNCED layouts keep pages that use them in sync with the saved source; a page can opt out with the synced-layout detach operation listed under Website Pages.
Review Comments
Comments are positioned annotations on a page used by the review workflow (submit-for-review / request-changes).
| Method | Path | Description |
|---|---|---|
GET | /v1/website-pages/{pageSimplyId}/comments | List a page's comments (optional resolved filter). |
POST | /v1/website-pages/{pageSimplyId}/comments | Create a comment. Body requires xPercent, yPixels, comment; optional targetDevice, grapesComponentId. Returns 201. |
GET | /v1/website-comments | List comments across the team's websites (resolved, websiteSimplyId, limit, offset). |
POST | /v1/website-comments/{commentSimplyId}/resolve | Resolve a comment. |
POST | /v1/website-comments/{commentSimplyId}/unresolve | Reopen a comment. |
DELETE | /v1/website-comments/{commentSimplyId} | Delete a comment. |
POST | /v1/website-comments/{commentSimplyId}/replies | Reply to a comment (body: { "comment" }). Returns 201. |
DELETE | /v1/website-comment-replies/{replySimplyId} | Delete a reply. |
Protected Areas
Protected areas gate parts of a website behind membership. A page inside a protected area inherits its gate; effective resolution walks the page tree.
| Method | Path | Description |
|---|---|---|
GET | /v1/websites/{websiteSimplyId}/access-areas | List the website's protected areas. |
POST | /v1/websites/{websiteSimplyId}/access-areas | Create a protected area. Returns 201. |
POST | /v1/websites/{websiteSimplyId}/access-areas/root-page | Create a protected area together with a new root page. |
GET | /v1/websites/{websiteSimplyId}/access-areas/effective/{pageSimplyId} | Resolve the effective inherited protected area for a page (or null if the page is public). |
PUT | /v1/website-access-areas/{accessAreaSimplyId} | Update a protected area. |
DELETE | /v1/website-access-areas/{accessAreaSimplyId} | Delete a protected area. |
GET | /v1/websites/{websiteSimplyId}/access-area-templates | List reusable protected area templates for the website. |
POST | /v1/websites/{websiteSimplyId}/access-area-templates/{templateSimplyId}/install | Install a protected area template into the website. |
Experiments, Permissions, and Widget Instances
| Method | Path | Description |
|---|---|---|
GET / POST | /v1/websites/{websiteSimplyId}/pages/{pageSimplyId}/experiments | List / create page experiments. |
GET / PUT | /v1/websites/{websiteSimplyId}/experiments/{experimentSimplyId} | Get / update an experiment. |
POST | .../experiments/{experimentSimplyId}/variants | Add a variant. |
POST | .../experiments/{experimentSimplyId}/start · /stop · /use-winner | Run lifecycle: start, stop, apply the winning variant. |
GET / PUT | /v1/websites/{websiteSimplyId}/permissions | List / replace website role permissions. Replacement is full: every entry must state canManagePathRedirects, canManageUrlHistory, and canManageHostRedirects as booleans. |
GET / PUT | /v1/websites/{websiteSimplyId}/pages/{pageSimplyId}/permissions | List / replace page-level role permissions. |
GET | /v1/website-widget-instances/by-entity | List website widget instances referencing an entity (for example where a Wizard is embedded). |
Privileged Operations
For completeness, the following adjacent operations are privileged tier (first-party admin surfaces; not part of the standard integration contract):
PUT /v1/websites/{websiteSimplyId}/custom-domainandGET .../custom-domain/status— set, clear, and monitor a website custom domain.GET/POST /v1/external-websites,DELETE /v1/external-websites/{teamWebsiteLinkSimplyId}, andGET .../widgets— link non-Simply360 websites to a team and inspect their embedded widget instances.POST /v1/website-team-user-auth/complete— completes the Team User protected area broker auth flow.GET /v1/data-records/{dataRecordSimplyId}/website-pages— lists published Dynamic Website pages generated for a data record.
Usage Notes
Website Team domains (source behavior until deployed): GET /v1/websites/{websiteSimplyId}/domains returns live primaryDomain and secondaryDomains, plus stagedSelection when a routing choice is prepared. PUT to the same path accepts primaryTeamDomainSimplyId, secondaryTeamDomainSimplyIds, and optional mode. Use mode: "stage" while DNS or HTTPS is pending; the live roles remain unchanged. Use mode: "activate" after every selected host is Active. Omitting mode retains immediate activation for existing clients. DELETE /v1/websites/{websiteSimplyId}/domains/staged cancels preparation. These writes require Website write authority and Team Admin Custom Domains edit permission. A prepared unused hostname can serve the same published Website under its existing access controls once its HTTPS provider is ready. For DNS-validated static ingress, test the prepared hostname before changing traffic DNS. CloudFront-managed HTTP validation may require the displayed traffic DNS records before HTTPS can become ready; follow the returned DNS instructions and test when HTTPS is ready.
- All identifiers are simplyIds; page paths and slugs are content, not identifiers.
- Edits always target the draft design; nothing is publicly visible until the page (or site) is published.
- Prefer
studio-contextandblocksfor bounded reads before pulling a full pagedesigndocument. - Take a backup (or create a page version checkpoint) before running bulk automated edits, and use
publish-readinessbefore flippingisPublished. - Website copy, template release, translation, and dynamic refresh jobs surface as background tasks — see Background Tasks.
- List endpoints follow the platform's standard paging conventions where offered — see Pagination, Sorting & Field Selection.
- Questions or gaps in this reference? Use the feedback page or email developers@simply360.app.