---
title: "Create a new Space"
method: POST
path: "/api/v1/createSpace"
tags: ["Space"]
---

# Create a new Space

`POST /api/v1/createSpace`

## Request body

- object
  - `name` string — The name of the space
  - `isPublic` boolean — Whether the space is public
  - `img` string — Image URL for the space

## Response `201`

Space created successfully

- object
  - `id` string — The ID of the created space
  - `shareable_link` string — Shareable link if the space is public
  - `online_editor` string — Link to the online editor for the space
  - `space` object
    - `id` string
    - `createdAt` string, date-time
    - `img` string
    - `name` string
    - `slug` string
    - `isOwner` boolean

## Other responses

- `400` — Bad Request
- `500` — Internal Server Error

---

[API](https://skmtc.net/hero-page/apis/hero-api.md) · [All operations](https://skmtc.net/hero-page/apis/hero-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hero-page/hero-api/versions/f44af6e313d8/schema)
