SnozeDevelopers
API referenceDatabases

Ensure a record has a content surface

Returns the page-like description surface attached to the record, creating it on the first call. Responds 201 with `created` true when it minted the surface and 200 when one already existed, so repeated calls are safe. Requires the `records:write` permission.

POST
/v1/workspaces/{workspaceId}/databases/{databaseId}/records/{recordId}/content-surface

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
recordId*string

Response Body

Success

application/json
  1. response
data*
Example Request
curl -X POST 'https://api.snoze.dev/v1/workspaces/string/databases/string/records/string/content-surface'
Example Response
{  "data": {    "workspaceId": "string",    "databaseId": "string",    "recordId": "string",    "surfaceId": "string",    "created": true  }}