Skip to main content
Create a workspace (an isolated tenant). The caller automatically becomes its owner and a membership row is written. Knowledge bases, memory, wiki, etc. all live under a workspace.

Endpoint

Authentication

Authorization: Bearer <jwt> or X-API-Key <sk_...> (auth only, no workspace role required).

Request body

string
Workspace name; defaults to “新工作空间” when omitted.

Response

string
Workspace id (ws_...).
string
Name.
string
The creator’s role in the workspace, always owner.

Example