REST — /api/sites
5 route handlers under /api/sites · 5 public (auth-optional).
Public flags are cross-referenced against
PUBLIC_API_PREFIXESinsrc/lib/route-access.ts. Routes without a public prefix require an authenticated session (or, where applicable, a signed federation request). See Auth models.
| Route | Methods | Access | Description |
|---|---|---|---|
/api/sites/[publicationId]/blocks | GET POST OPTIONS | Public | and what a visitor does to it. |
/api/sites/[publicationId]/config | GET OPTIONS | Public | site's browser client needs to sign a visitor in. |
/api/sites/[publicationId]/content | GET OPTIONS | Public | No token. Returns the SITE OWNER's published, publicly visible resources for |
/api/sites/[publicationId]/forms | GET POST OPTIONS | Public | published page, without an account. |
/api/sites/[publicationId]/visitor | GET POST OPTIONS | Public | The visitor's OWN token, the visitor's OWN data, and the small set of things |