---
title: "Create My Space"
method: POST
path: "/me/spaces"
tags: ["auth", "auth"]
---

# Create My Space

`POST /me/spaces`

## Request

- Base URL: `https://api.agent4.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.agent4.io/me/spaces`
- Auth: none declared

## Request body

- SpaceIn
  - `name` string, required

## Response `201`

Successful Response

- MySpaceOut
  - `id` string, required
  - `name` string, required
  - `is_default` boolean, required
  - `agents` string[]
  - `session_count` integer

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/agent4/apis/chatagent-platform.md) · [All operations](https://skmtc.dev/agent4/apis/chatagent-platform/llms.txt) · [OpenAPI document](https://skmtc.dev/agent4/apis/chatagent-platform/revisions/18e58f082ce3?raw)
