Authentication & Permissions

SiteFabric separates zero-auth public delivery endpoints from RBAC-protected management endpoints.

Strict API Authentication

While docs.sitefabric.space is publicly readable, all SiteFabric data endpoints — including SEO runtime, Content (CMS) delivery, Lead Capture, and management endpoints — enforce strict Bearer authentication via Authorization: Bearer sf_tok_... (personal auth token) or a rotated JWT access token. Unauthenticated requests return 401 Unauthorized.

Personal Auth Tokens (sf_tok_...)

Generate a personal auth token in SiteFabric CRM under /admin/users or /admin/dashboard. Tokens are hashed with SHA-256 at rest, inherit live RBAC permissions, and can be revoked instantly.

Using an Auth Tokenbash
curl -X GET "https://api.sitefabric.space/api/v1/cms/pages" \
  -H "Authorization: Bearer sf_tok_your_auth_token"
~/.sitefabric/config.yml (0600)yaml
version: 1
api_url: https://api.sitefabric.space
authtoken: sf_tok_your_auth_token

RBAC Permission Matrix

PermissionScope
seo:metadataRead and upsert per-path & per-page SEO metadata and JSON-LD
seo:sitemapTrigger dynamic sitemap generation
seo:robotsRead and update robots.txt directives
seo:redirectsManage 301/302/307/308 redirect rules
seo:auditRun automated technical SEO audits
cms:previewRead drafts, collections, navigation, media, and generate preview tokens
cms:draftCreate/update/delete drafts, collections, navigation, and media uploads
cms:publish / cms:unpublish / cms:rollback / cms:scheduleControl page publication lifecycle and version rollbacks