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

# 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' | 'admin' | 'developer' | 'editor' | 'annotator' | 'viewer', required
      - `role_description` string, nullable
      - `permissions` Permission[], nullable

## Other responses

- `422` — Validation Error

## Changes

- **2026-05-02** `6e37373d45fe` — 1 info
  - api tag `Organizations` added
- **2026-04-01** `6d5b448e6a4f` — 3 warning, 3 info
  - added the new `admin` enum value to the `members/anyOf[subschema #1]/items/roles/items/role_name` response property for the response status `200`
  - added the new `annotator` enum value to the `members/anyOf[subschema #1]/items/roles/items/role_name` response property for the response status `200`
  - added the new `developer` enum value to the `members/anyOf[subschema #1]/items/roles/items/role_name` response property for the response status `200`
  - removed the `deployment_manager` enum value from the `members/anyOf[subschema #1]/items/roles/items/role_name` response property for the response status `200`
  - …2 more
- **2026-03-04** `c8917fecb5bf` — 2 warning, 2 info
  - added the new `edit_webhooks` 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_webhooks` 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 `2026-02-28 03:08:53.382409+00:00` was removed for the status `200`
  - the `updated_at` response's property default value `2026-02-28 03:08:53.382442+00:00` was removed 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/4c92d005b4cf/schema)
