---
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, 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` 'owner' | 'viewer' | 'editor' | 'evaluator' | 'workspace_admin' | 'deployment_manager', required
      - `role_description` string, nullable
      - `permissions` Permission[], nullable

## Other responses

- `422` — Validation Error

## Changes

- **2026-01-14** `53da4c9de2b7` — 2 info
  - the `created_at` response's property default value changed from `2025-11-02 12:26:46.318197+00:00` to `2026-01-14 19:03:43.179847+00:00` for the status `200`
  - the `updated_at` response's property default value changed from `2025-11-02 12:26:46.318231+00:00` to `2026-01-14 19:03:43.179882+00:00` for the status `200`
- **2025-11-05** `e62506c24377` — 16 warning, 6 info
  - added the new `edit_evaluation_metrics` 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_evaluation_queues` 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_evaluation_results` 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_evaluation_runs` enum value to the `members/anyOf[subschema #1]/items/roles/items/permissions/anyOf[subschema #1]/items/` response property for the response status `200`
  - …18 more
- …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.dev/agenta-ai/apis/agenta-api/revisions/53da4c9de2b7?raw)
