SnozeDevelopers
API referencePage publish

Unpublish a surface

Disables public access for the surface while keeping its slug and settings, so republishing later reuses the same URL. Requires full access to the surface and a signed-in session, and is a no-op when the surface was never published.

DELETE
/v1/workspaces/{workspaceId}/surfaces/{surfaceId}/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
surfaceId*string

Response Body

Success

application/json
  1. response
data*
Example Request
curl -X DELETE 'https://api.snoze.dev/v1/workspaces/string/surfaces/string/publish'
Example Response
{  "data": {    "surfaceId": "string"  }}