---
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

> 359 revisions in range; 44 could not be searched.

- **2025-06-27** `e3e84db47198` — 2 breaking, 15 warning, 37 info
  - the request property `name` became required
  - request property `name` list-of-types was narrowed by removing types `null` from media type `application/json`
  - removed the optional property `detail/items/ctx` from the response with the `422` status
  - removed the optional property `detail/items/input` from the response with the `422` status
  - …50 more

[Change 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/713e4f3b7519/schema)
