---
title: "Create Workspace"
method: POST
path: "/organizations/{organization_id}/workspaces"
tags: ["Organizations"]
---

# Create Workspace

`POST /organizations/{organization_id}/workspaces`

Create a new workspace in an organization (owner only).

## Path parameters

- `organization_id` string, required

## Request body

- CreateWorkspace
  - `name` string, required
  - `description` string, nullable
  - `type` string, nullable

## Response `200`

Successful Response

- WorkspaceResponse
  - `created_at` string
  - `updated_at` string
  - `id` string, required
  - `name` string, required
  - `description` string, nullable
  - `type` string, nullable, required
  - `organization` string, required
  - `members` WorkspaceMemberResponse[], nullable
    - `user` object, required
    - `roles` WorkspacePermission[], required
      - `role_name` string, required
      - `role_description` string, nullable
      - `permissions` Permission[], nullable

## Other responses

- `422` — Validation Error

## Changes

- **2026-07-25** `5a14788d939f` — 2 breaking, 9 warning, 20 info
  - the request property `name` became required
  - request property `name` list-of-types was narrowed by removing types `null` from media type `application/json`
  - added the new `edit_mounts` enum value to the `members/anyOf[subschema #1]/items/roles/items/permissions/anyOf[subschema #1]/items/` response property for the response status `200`
  - added the new `edit_sessions` enum value to the `members/anyOf[subschema #1]/items/roles/items/permissions/anyOf[subschema #1]/items/` response property for the response status `200`
  - …27 more
- **2026-05-19** `a7f9a6823230` — 1 warning, 6 info
  - added the new `view_events` enum value to the `members/anyOf[subschema #1]/items/roles/items/permissions/anyOf[subschema #1]/items/` response property for the response status `200`
  - removed the `admin` enum value from the `members/anyOf[subschema #1]/items/roles/items/role_name` response property for the response status `200`
  - removed the `annotator` enum value from the `members/anyOf[subschema #1]/items/roles/items/role_name` response property for the response status `200`
  - removed the `developer` enum value from the `members/anyOf[subschema #1]/items/roles/items/role_name` response property for the response status `200`
  - …3 more
- **2026-05-02** `6e37373d45fe` — 1 info
  - api tag `Organizations` added
- …earlier changes not shown

[Full history](https://skmtc.dev/agenta-ai/apis/agenta-api/changes/organizations/:organization_id/workspaces/post.md)

---

[API](https://skmtc.dev/agenta-ai/apis/agenta-api.md) · [All operations](https://skmtc.dev/agenta-ai/apis/agenta-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/agenta-ai/agenta-api/revisions/f2a08eaed8b1/schema)
