Skip to main content
When KiwiFS runs with a space manager, space administration lives at /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

Returns 404 if the name is unknown.

List init templates

Response
Use the template 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.
Returns 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
Removes the space from the manager but does not delete files on disk. Clean up the root directory separately if needed.

Auth

Protect /api/spaces in production. Creation and deletion are administrative operations. Per-space API keys (auth.type = perspace) apply to /api/kiwi routes after routing.

Multi-space

Routing and configuration.

Configuration

[[spaces]] config syntax.
Last modified on May 31, 2026