Create a new knowledge base document or folder.
API key (sk_xxx) from Developer Settings. No X-Account-ID needed.
Document title
255'folder' (no content) or 'page' (has content)
20URL-friendly slug (auto-generated if not provided)
255BlockNote block structure (JSON); null for folders
Rendered markdown for AI context; null for folders
Document visibility: 'private' or 'public'
Parent document ID for hierarchy
Position for ordering
Successful Response
Document title
255URL-friendly slug (auto-generated if not provided)
255BlockNote block structure (JSON); null for folders
Rendered markdown for AI context; null for folders
Document visibility: 'private' or 'public'
Position for ordering
For folders, number of direct children (only in list/get)