/api/spaces (not under /api/kiwi/).
Per-space file APIs remain at
/api/kiwi/... or /api/kiwi/{space}/.... See Multi-space for routing rules.List spaces
Response
string
Unique space identifier.
string
Filesystem path for this space.
integer
Number of markdown files.
integer
Total size on disk.
string
Most recent file modification.
Get one space
404 if the name is unknown.
List init templates
Response
id when creating a space with POST /api/spaces.
Create a space
string
required
Unique identifier for the new space.
string
required
Filesystem path for the space’s knowledge root.
string
Init template to scaffold the space with (e.g.
knowledge, wiki, tasks). Use GET /api/init-templates to list available templates.201 with space metadata. Returns 409 if the name already exists.
KiwiFS creates the root directory, initializes git and indexes, and persists the entry to
.kiwi/spaces.json.Delete a space
Response
Auth
Related documentation
Multi-space
Routing and configuration.
Configuration
[[spaces]] config syntax.