Back to docs

API reference

Sites (beta)

Beta: Sites websites, theme packages, versions, and publish.

Beta. Sites and first-party theme packages are in beta. Paths and package ids may change before general availability.

REST routes for multi-page websites on styrar.site. Product overview: Sites.

Permissions: Sites uses the workspace Links capabilities (links:read, links:write). The same scopes also cover short links and bio. Analytics routes need analytics:read. See Authentication.

Pass companyId for company workspaces. Omit it for personal Sites (account username required for the public slug).

Plan requirement: API access requires Team or Agency. See pricing.

Base URL: https://api.styrar.com/v1

Routes

MethodPathScope
GET/v1/siteslinks:read
POST/v1/siteslinks:write
GET/PATCH/DELETE/v1/sites/:idlinks:read / links:write
GET/v1/sites/templateslinks:read
GET/v1/sites/section-cataloglinks:read
GET/v1/sites/theme-packageslinks:read
GET/v1/sites/theme-packages/:packageIdlinks:read
GET/POST/v1/sites/theme-presetslinks:read / links:write
DELETE/v1/sites/theme-presets/:idlinks:write
CRUD/v1/sites/:id/versions/*links:read / links:write
POST/v1/sites/:id/versions/:versionId/install-theme-packagelinks:write
POST/v1/sites/:id/versions/:versionId/publishlinks:write
GET/v1/analytics/sitesanalytics:read
GET/v1/analytics/sites/:idanalytics:read

POST /v1/sites accepts templateId from structural starters (blank, portfolio, booking, store) or first-party theme packages (styrar.studio, styrar.midnight, styrar.soft, styrar.contrast).

install-theme-package body: { "packageId", "mode": "theme" | "full" }. Use theme to merge colors and fonts only; use full to replace the draft layout with the package sample (pages, sections, and chrome).

Create a site from a theme package

RequestPOST
Authorization: Bearer sty_live_your_api_key
Content-Type: application/json

{
  "companyId": "clxyz_company",
  "title": "Studio site",
  "templateId": "styrar.studio"
}

Install theme tokens on a draft version

RequestPOST
Authorization: Bearer sty_live_your_api_key
Content-Type: application/json

{
  "packageId": "styrar.midnight",
  "mode": "theme"
}

Join the beta waitlist

By signing up you agree to receive marketing email. See our Privacy Policy.