---
title: "Create Child Workspace"
method: POST
path: "/api/v1/workspaces"
tags: ["Workspaces"]
---

# Create Child Workspace

`POST /api/v1/workspaces`

## Request

- Base URL: `https://api.dialogbrain.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.dialogbrain.com/api/v1/workspaces`
- Auth: none declared

Create a customer workspace. Returns 201 if new, 200 if external_id already existed.

Nesting is one level: the customer workspace is created against the caller's own workspace,
and a header cannot be used to create a second-level child.
Requires Idempotency-Key header for retry safety.

## Headers

- `Idempotency-Key` string, nullable

## Request body

- CreateWorkspaceRequest: Request to create a customer workspace.
  - `name` string, required: Display name for the workspace
  - `external_id` string, nullable: Idempotency key from the partner's system

## Response `200`

Workspace with this external_id already existed

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway.md) · [All operations](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/llms.txt) · [OpenAPI document](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/revisions/77bef09a9209?raw)
