---
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-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`
- **2026-02-28** `f6057f146ac6` — 2 info
  - the `created_at` response's property default value changed from `2026-02-26 23:57:12.151257+00:00` to `2026-02-28 03:08:53.382409+00:00` for the status `200`
  - the `updated_at` response's property default value changed from `2026-02-26 23:57:12.151295+00:00` to `2026-02-28 03:08:53.382442+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/c8917fecb5bf/schema)
