---
title: "Create Workspace"
method: POST
path: "/organizations/{organization_id}/workspaces"
---

# Create Workspace

`POST /organizations/{organization_id}/workspaces`

## Path parameters

- `organization_id` string, required

## Request body

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

## Response `200`

Successful Response

- WorkspaceResponse
  - `created_at` string
  - `updated_at` string
  - `id` string, required
  - `name` string, nullable
  - `description` string, nullable
  - `type` string, nullable, required
  - `organization` string, required
  - `members` WorkspaceMemberResponse[], nullable
    - `user` object, required
    - `roles` WorkspacePermission[], required
      - `role_name` 'owner' | 'viewer' | 'editor' | 'evaluator' | 'workspace_admin' | 'deployment_manager', required
      - `role_description` string, nullable
      - `permissions` Permission[], nullable

## Other responses

- `422` — Validation Error

## Changes

- **2026-02-27** `8fcd55a5a656` — 3 warning, 2 info
  - added the new `edit_tools` 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 `run_tools` 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 `view_tools` enum value to the `members/anyOf[subschema #1]/items/roles/items/permissions/anyOf[subschema #1]/items/` response property for the response status `200`
  - the `created_at` response's property default value changed from `2026-02-24 11:45:58.846992+00:00` to `2026-02-26 23:57:12.151257+00:00` for the status `200`
  - …1 more
- **2026-02-24** `42bb75a1c2e6` — 2 info
  - the `created_at` response's property default value changed from `2026-02-13 09:15:36.019875+00:00` to `2026-02-24 11:45:58.846992+00:00` for the status `200`
  - the `updated_at` response's property default value changed from `2026-02-13 09:15:36.019935+00:00` to `2026-02-24 11:45:58.847026+00:00` for the status `200`
- …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/8fcd55a5a656/schema)
