---
title: "Create Workspace"
method: POST
path: "/api/v1/workspaces"
tags: ["workspaces"]
---

# Create Workspace

`POST /api/v1/workspaces`

## Request

- Base URL: `https://memory.kagura-ai.com` (the document declares no server; this is the origin it was published from)
- URL: `https://memory.kagura-ai.com/api/v1/workspaces`
- Auth: none declared

Create a new workspace.

The authenticated user becomes the workspace owner.

Issue #149: Plan tier enforcement - check multi-workspace restrictions.

## Request body

- WorkspaceCreate: Request model for creating workspace. Issue #146: OpenAI API key is now optional (can be added later). Issue #169: Default context settings (summary, usage_guide, embedding_model). Issue #276: Slug removed - not used for routing, simplified UX.
  - `name` string, required
  - `openai_api_key` string, nullable
  - `description` string, nullable
  - `default_context_name` string, nullable
  - `default_context_summary` string, nullable
  - `default_context_usage_guide` string, nullable
  - `default_context_embedding_model` string, nullable

## Response `201`

Successful Response

- WorkspaceResponse: Response model for workspace. Issue #276: Slug removed.
  - `id` string, uuid, required
  - `name` string, required
  - `description` string, nullable, required
  - `owner_user_id` string, required
  - `plan_name` string, required
  - `member_count` integer, required
  - `context_count` integer, required
  - `max_contexts` integer, required
  - `created_at` string, required
  - `current_user_role` string, nullable
  - `analyses_enabled` boolean

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/kagura-ai/apis/kagura-memory-cloud.md) · [All operations](https://skmtc.dev/kagura-ai/apis/kagura-memory-cloud/llms.txt) · [OpenAPI document](https://skmtc.dev/kagura-ai/apis/kagura-memory-cloud/revisions/09f17f5ada29?raw)
