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

Authorization

apiKey
headerAuthorizationBearer <snoze_sk_…>

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

Path Parameters

workspaceId*string
databaseId*string

Response Body

Success

application/json
  1. response
data*
Example Request
curl -X GET 'https://api.snoze.dev/v1/workspaces/string/databases/string/publish'
Example Response
{  "data": {    "enabled": true,    "slug": "string",    "seoIndexed": true,    "publishedAt": "string",    "updateMode": "snapshot"  }}