Public
The Public operations of the Hub REST API (5 operations).
Generated from Synap-core/backend main at 24fabe7, which can be newer than the stable release self-hosters install.
workspace*stringTarget workspace id (uuid).
q?stringOptional keyword filter (matched on title + preview).
role?stringOptional single facet role slug to narrow to. Ignored unless it is within the workspace's configured public role allowlist.
limit?stringPage size. Default 20, hard-capped at 50.
Field-whitelisted projection items
application/json- response
items*array<>count*numbercurl -X GET 'https://pod.example.com/api/hub/public/projection?workspace=string'{ "items": [ { "id": "string", "title": "string", "role": "string", "properties": { "property1": null, "property2": null } } ], "count": 0}token*stringThe public share token (the capability). Stored hashed; every miss is the same 404.
The published share
application/json- response
resourceType*"entity""entity"title?stringPresent only when the publisher allowlisted title.
properties*The publish-time snapshot of allowlisted values (plain values only; internal ids removed).
body*|The pinned published revision's text in its real format, or null (none pinned, or not a text body).
publishedOn*stringPublication day, YYYY-MM-DD.
curl -X GET 'https://pod.example.com/api/hub/public/shares/string'{ "resourceType": "entity", "title": "string", "properties": { "property1": "string", "property2": "string" }, "body": { "format": "markdown", "content": "string" }, "publishedOn": "string"}siteToken*stringThe site token (the capability). Stored hashed; every miss is the same 404.
The site manifest
application/json- response
title?stringPresent only when the owner's policy publishes title.
description?stringPresent only when the owner's policy publishes description.
publishedOn*stringDay the site went live, YYYY-MM-DD.
collections*array<>curl -X GET 'https://pod.example.com/api/hub/public/sites/string'{ "title": "string", "description": "string", "publishedOn": "string", "collections": [ { "key": "string", "count": 0, "sort": [ "string" ], "pageSize": 0, "addressing": "slug" } ]}siteToken*stringThe site token (the capability).
key*stringA configured collection key.
offset?string0..10000 (default 0); beyond → 400 offset too large.
limit?stringClamped to 1..100 (default: the collection's page size).
sort?string≤ 3 comma-separated keys, - = descending, out of the collection's configured sort keys and publishedAt (default: the configured sort, else -publishedAt). Anything else → 400.
A page
application/json- response
items*array<>total*integerLive published records in the collection.
offset*integerlimit*integercurl -X GET 'https://pod.example.com/api/hub/public/sites/string/collections/string'{ "items": [ { "collection": "string", "publicId": "string", "slug": "string", "title": "string", "properties": { "property1": "string", "property2": "string" }, "publishedOn": "string" } ], "total": 0, "offset": 0, "limit": 0}siteToken*stringThe site token (the capability).
key*stringA configured collection key.
slugOrPublicId*stringA record's public id (p_ + 16 base62 chars) or its slug (lowercase words joined by -).
The record
application/json- response
collection*stringThe collection key.
publicId*stringThe stable public address: p_ + 16 random base62 chars.
slug*|The record's slug in its collection, or null.
title?stringPresent only when the owner's policy publishes title.
properties*The publish-time snapshot of allowlisted values (plain values only; internal ids removed).
publishedOn*stringPublication day, YYYY-MM-DD.
body*|The pinned published revision's text, or null.
curl -X GET 'https://pod.example.com/api/hub/public/sites/string/collections/string/string'{ "collection": "string", "publicId": "string", "slug": "string", "title": "string", "properties": { "property1": "string", "property2": "string" }, "publishedOn": "string", "body": { "format": "markdown", "content": "string" }}