SnozeDevelopers
API referenceDatabase publish

Read the publish-to-web settings of a database

Returns the database's public configuration: whether it is published, its `/wp` slug, whether search engines may index it, and when it was first published. Reads `enabled: false` for a database that has never been published. Requires a signed-in workspace session with `databases:read` on the database; API keys are not accepted on this surface. An unknown database returns a not-publishable error.

GET
/v1/workspaces/{workspaceId}/databases/{databaseId}/publish
AuthorizationBearer <token>

Workspace API key created in Workspace settings → API keys. Scopes on the key bound what it can read and write.

In: header

Path Parameters

workspaceId*string
databaseId*string

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/v1/workspaces/string/databases/string/publish"
{  "data": {    "enabled": true,    "slug": "string",    "seoIndexed": true,    "publishedAt": "string"  }}