---
title: "Create a space"
method: POST
path: "/spaces/create"
tags: ["Organization"]
---

# Create a space

`POST /spaces/create`

## Request

- Base URL: `https://api.mymemory.dev/v1`
- URL: `https://api.mymemory.dev/v1/spaces/create`
- Auth: HTTP bearer

Create a space. (`POST /spaces` is not a route; use this one.)

## Request body

- object
  - `spaceName` string, required
  - `isPublic` boolean, required

## Response `200`

Space created

- object
  - `message` string
  - `space` object
    - `uuid` string: The new space's ID.
    - `name` string
    - `isPublic` boolean
    - `ownerId` integer
    - `createdAt` string, date-time

## Other responses

- `400`: Invalid request
- `401`: Missing or invalid API key
- `403`: Not allowed: someone else's memory or space, or a plan limit reached (`Memory limit reached`, `Space limit reached`)
- `429`: Too many requests. For a rate limit (`error`: `rate_limited`), wait the seconds in the `Retry-After` header; for an AI budget error, until the budget renews.

---

[API](https://skmtc.dev/mymemory/apis/mymemory-api.md) · [All operations](https://skmtc.dev/mymemory/apis/mymemory-api/llms.txt) · [OpenAPI document](https://skmtc.dev/mymemory/apis/mymemory-api/revisions/a6cdb469f9e8?raw)
