Read a published database or view by its public slug
Returns the viewer payload for a database or standalone view that has been published to the web: title, icon, workspace name, indexing preference, the visible fields, and the first page of records (capped, with `hasMore` set when more exist). No authentication; the `slug` in the path is the credential. A slug that is unknown, unpublished, or not readable returns the same opaque not-found response, and time-tracking data is stripped from the payload.
curl -X GET 'https://api.snoze.dev/v1/public/databases/string'{ "data": { "type": "published_database", "members": [ { "id": "string", "workspaceId": "string", "userId": "string", "effectiveRoleId": "string", "clerkUserId": "string", "role": "owner", "primaryEmail": "string", "displayName": "string", "avatarUrl": "string", "createdAt": "string", "updatedAt": "string" } ], "meta": { "title": "string", "icon": "string", "description": "string", "workspaceName": "string", "workspaceImageUrl": "string", "seoIndexed": true, "liveUpdates": true }, "databaseId": "string", "view": { "id": "string", "workspaceId": "string", "databaseId": "string", "key": "string", "label": "string", "kind": "table", "placement": "database", "manifest": {}, "relationFieldId": "string", "ownerUserId": "string", "scope": "shared", "locked": true, "definitionVersion": 0, "createdAt": "string", "updatedAt": "string" }, "views": [ { "id": "string", "workspaceId": "string", "databaseId": "string", "key": "string", "label": "string", "kind": "table", "placement": "database", "manifest": {}, "relationFieldId": "string", "ownerUserId": "string", "scope": "shared", "locked": true, "definitionVersion": 0, "createdAt": "string", "updatedAt": "string" } ], "fields": [ { "id": "string", "workspaceId": "string", "databaseId": "string", "key": "string", "label": "string", "kind": "text", "required": true, "defaultValue": "string", "options": [ { "id": "string", "key": "string", "name": "string", "color": "string", "order": 0 } ], "settings": {}, "order": 0, "createdAt": "string", "updatedAt": "string" } ], "records": [ { "id": "1d8a44e0-7c93-4f21-b60a-3e8d2f5a9c14", "workspaceId": "4b81aa0c-6d2f-4b19-9f0e-1a7c3d5e8b02", "databaseId": "9f2c1e7a-3b58-4d0c-8e27-6a1f9d4b3c85", "contentSurfaceId": "string", "title": "Ship the desktop app", "data": { "status": "in_progress", "due": "2026-08-01" }, "relations": {}, "computed": {}, "system": {}, "related": {}, "archived": false, "externalId": "string", "createdByUserId": "string", "updatedByUserId": "string", "createdAt": "2026-07-10T08:00:00.000Z", "updatedAt": "2026-07-14T11:26:02.000Z" } ], "hasMore": true }}Publish a standalone view to the web
Turns a standalone database view into a public read-only page and returns the resulting configuration, deriving the slug from `slug` or the view label and de-duplicating it against every published page, database, and view in the one global `/wp` address space. Requires a signed-in workspace session with full (`views:write`) access to the view and `records:read` on its source database; a personal view can only be published by its owner, and non-standalone or unknown views are rejected. Send an `Idempotency-Key` header to make retries safe; a replay within the window returns the original response.
Mint a read-only realtime ticket for a published database
Issues a short-lived, single-use ticket that lets an anonymous reader open a receive-only realtime connection scoped to exactly this published database, so its rows reflect changes without polling. No authentication; the slug is the only credential, and the ticket carries the scope the server resolved rather than anything the caller asked for. Rate limited per client address. A slug that does not exist, is unpublished, or is published in snapshot mode returns the same opaque not-found.