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_tokenRBAC Permission Matrix
| Permission | Scope |
|---|---|
| seo:metadata | Read and upsert per-path & per-page SEO metadata and JSON-LD |
| seo:sitemap | Trigger dynamic sitemap generation |
| seo:robots | Read and update robots.txt directives |
| seo:redirects | Manage 301/302/307/308 redirect rules |
| seo:audit | Run automated technical SEO audits |
| cms:preview | Read drafts, collections, navigation, media, and generate preview tokens |
| cms:draft | Create/update/delete drafts, collections, navigation, and media uploads |
| cms:publish / cms:unpublish / cms:rollback / cms:schedule | Control page publication lifecycle and version rollbacks |

