Websites & pages
Sites, pages, forms, domains, themes and menus — the Website Builder's API surface.
Scope: website:read · website:write
Building a theme, not an integration?
If you want to author templates, layouts and widgets, the toolchain is what you want: Build themes with the CLI, Template language, Widget fields.
Sites
/websitesList the organization's sites.Try it/websitesCreate a site.Try it/websites/{id}One site with its settings.Try it/websites/{id}Replace site settings.Try it/websites/{id}Delete the site — pages, domains, forms and media links go with it.Try it/websites/{id}/analyticsTraffic figures for the site.Try it/websites/{id}/apply-themeApply a theme to the site.Try it/websites/{id}/apply-brandApply brand tokens (colours, fonts) across the site.Try itPages
A page's source of truth is its code. The editor edits that code; so can you.
/websites/{id}/pagesPages of a site.Try it/websites/{id}/pagesCreate a page.Try it/websites/{id}/data-pagesCreate a data-driven page bound to a Data Object.Try it/pages/{pageId}The page, including its code.Try it/pages/{pageId}Replace the page.Try it/pages/{pageId}Delete the page.Try it/pages/{pageId}/elementsThe parsed element tree, for tooling that walks structure rather than text.Try it/pages/{pageId}/opsApply structural edit operations. Concurrency-checked — a stale base returns 409.Try it/pages/{pageId}/renderRender the page server-side.Try it/pages/{pageId}/preview-linkMint a shareable preview URL for an unpublished page.Try itPublishing and revisions
/pages/{pageId}/publishPublish now.Try it/pages/{pageId}/unpublishTake the page down.Try it/pages/{pageId}/schedulePublish at a future time.Try it/pages/{pageId}/revisionsRevision history.Try it/pages/{pageId}/checkpointSave a named checkpoint.Try it/pages/{pageId}/revert/{revisionId}Revert to a revision.Try it/pages/{pageId}/translationsPer-locale versions of the page.Try it/pages/{pageId}/translationsWrite a per-locale version.Try itForms
/websites/{id}/formsForms on a site.Try it/websites/{id}/formsCreate a form.Try it/forms/{id}One form.Try it/forms/{id}Replace the form.Try it/forms/{id}Delete the form.Try it/forms/{id}/submissionsPaged submissions.Try itTwo public endpoints serve and accept the form from a visitor's browser — no API key:
/public/sites/{siteId}/forms/{id}The form definition, as a visitor browser fetches it.no keyTry it/public/sites/{siteId}/forms/{id}/submitSubmit the form.no keyTry itDomains and redirects
/websites/{id}/domainsDomains attached to the site.Try it/websites/{id}/domainsAttach a domain. Re-read it afterwards — the verification token is minted here.Try it/domains/{id}/verifyCheck the DNS record and mark the domain verified.Try it/domains/{id}/primaryMake it the canonical domain.Try it/domains/{id}/sslUpload a custom certificate.Try it/domains/{id}/sslDrop the custom certificate.Try it/domains/{id}Detach the domain.Try it/websites/{id}/redirectsRedirects on the site.Try it/websites/{id}/redirectsCreate a redirect.Try it/redirects/{id}Update a redirect.Try it/redirects/{id}Remove a redirect.Try itRe-adding a domain regenerates its verification token
The previously published DNS record stops being valid. Re-read the domain after adding it and publish the token it returns then.
Themes
/themesThemes available to the organization.Try it/themes/{id}Theme metadata.Try it/themes/{id}/templatesIts templates.Try it/themes/{id}/previewA preview rendering.Try it/themes/{id}/usageWhich sites use it.Try it/themesCreate a theme.Try it/themes/{id}Replace a theme.Try it/themes/{id}Delete a theme.Try it/themes/{id}/versionsVersion history.Try it/themes/{id}/versionsPublish a new version.Try it/themes/{id}/fsThe theme's whole file tree.Try it/themes/{id}/fs/fileRead one file.Try it/themes/{id}/fs/fileWrite one file.Try it/themes/{id}/fs/batchWrite several files at once.Try it/themes/{id}/fs/mvMove or rename a file.Try it/themes/{id}/fs/exportExport the theme as an archive.Try it/websites/{id}/fsThe same tree, for one site — where site-level overrides live.Try it/websites/{id}/fs/fileRead one site-level file.Try it/websites/{id}/fs/fileWrite one site-level file.Try it/websites/{id}/fs/batchWrite several site-level files at once.Try it/websites/{id}/fs/mvMove or rename a site-level file.Try itThe same file endpoints exist per site (/websites/{id}/fs…) for site-level overrides. The CLI drives exactly these — see Build themes with the CLI.
Menus, global sections and blocks
/websites/{id}/global-sectionsHeader/footer and other shared sections.Try it/websites/{id}/global-sections/{kind}/opsEdit a global section.Try it/websites/{id}/global-modulesCreate a reusable module.Try it/global-modules/{id}Update module metadata.Try it/global-modules/{id}/codeReplace module code.Try it/global-modules/{id}Delete a module.Try it/websites/{id}/section-presetsSaved section presets.Try it/websites/{id}/section-presetsSave a preset.Try it/section-presets/{presetId}Delete a preset.Try itControllers
Server-side handlers that run for a route on your site — the escape hatch for custom request logic.
/websites/{id}/controllersRoute handlers on the site.Try it/websites/{id}/controllersCreate a controller.Try it/controllers/{id}Replace a controller.Try it/controllers/{id}Delete a controller.Try it/controllers/{id}/testExecute it against a sample request.Try itMarketplace
/marketplace/listingsBrowse published listings.Try it/marketplace/listings/{id}One listing.Try it/marketplace/listings/{id}/installInstall into the organization.Try it/marketplace/listings/{id}/purchaseBuy a paid listing.Try it/marketplace/installsWhat is installed.Try it/marketplace/installs/{id}/updateUpdate an install to a newer version.Try it/marketplace/listingsPublisher: create a listing.Try it/marketplace/listings/{id}Publisher: update a listing.Try it/marketplace/listings/{id}Publisher: delete a listing.Try it/marketplace/listings/{id}/submitPublisher: submit for review.Try it/marketplace/listings/{id}/publish-versionPublisher: ship a version.Try it/marketplace/my-listingsPublisher: your listings.Try it/marketplace/earningsPublisher: your revenue.Try itAI endpoints
These sit in the website group but spend AI credits and are rate-limited accordingly.
/website/ai/generate-siteGenerate a site from a brief.Try it/website/ai/generate-themeGenerate a theme.Try it/website/ai/generate-blockGenerate a block.Try it/pages/{pageId}/ai/generate-codeGenerate page code.Try it/pages/{pageId}/ai/edit-codePropose an edit to the page code.Try it/pages/{pageId}/ai/edit-code/applyApply a proposed edit.Try it/pages/{pageId}/ai/edit-nodeEdit one node.Try it/pages/{pageId}/ai/sectionGenerate a new section.Try itRelated
- Blog content — articles live in their own group.
- Media files — images and assets.
- Writing templates — the product-side guide.