SnozeDevelopers
API referenceWorkspaces

Seed a workspace from an approved AI draft plan

Seeds the workspace from the draft plan the user reviewed, and possibly edited, in the describe-your-work onboarding flow, re-normalizing the plan on the server before anything is created. Needs the same `databases:write` and `surfaces:write` permissions as applying a fixed starter. A plan that normalizes to nothing left to build is rejected as a validation error.

POST
/v1/workspaces/{workspaceId}/starter-draft

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

Request Body

application/json
  1. body
operationId?|null
plan*

Response Body

Success

application/json
  1. response
data*
Example Request
curl -X POST 'https://api.snoze.dev/v1/workspaces/string/starter-draft' \  -H 'Content-Type: application/json' \  -d '{  "plan": {    "headline": "string",    "nodes": [      {        "type": "database",        "ref": "string",        "label": "string",        "fields": [          {            "key": "string",            "label": "string",            "kind": "text"          }        ],        "records": [          {            "title": "string"          }        ]      }    ]  }}'
Example Response
{  "data": {    "itemIds": [      "string"    ],    "folderItemIds": [      "string"    ],    "headline": "string",    "databaseCount": 0,    "pageCount": 0  }}