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
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

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/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"            }          ]        }      ]    }  }'
{  "data": {    "headline": "string",    "databaseCount": 0,    "pageCount": 0  }}