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

# Create a space

`POST /spaces`

## Request

- Base URL: `https://telescope.ac/api`
- URL: `https://telescope.ac/api/spaces`
- Auth: none declared

Creates a new space. Allows to also specify space categories and custom domains.

**API credit cost:** 3

## Headers

- `Authorization` string

## Request body

- PostSpaceWithExtrasInputBody
  - `$schema` string, uri: A URL to the JSON Schema for this object.
  - `custom_domains` NewCustomDomain[], nullable
    - `host` string, hostname, required: Domain hostname (e.g. blog.example.com).
    - `is_set_as_default` boolean: Set as the default domain for this space.
  - `space` NewSpace, required
    - `alt` string, required: URL slug for the space.
    - `title` string, required: Display title.
    - `topic_ids` string[], nullable: Optional list of topic IDs.
  - `space_categories` NewSpaceCategory[], nullable
    - `alt` string, required: URL slug for the category.
    - `title` string, required: Display title.

## Response `201`

Created

- PostSpaceOutputBody
  - `$schema` string, uri: A URL to the JSON Schema for this object.
  - `space` Space, required
    - `alt` string, required
    - `created_at` string, date-time, nullable, required
    - `customization` Jsonb, required
    - `deleted_at` string, date-time
    - `featured_at` string, date-time
    - `footer_text` string, required
    - `id` string, uuid, required
    - `language` string, required
    - `metadata` Jsonb, required
    - `subscriptions_enabled` boolean, required
    - `text` string, required
    - `theme_id` string, uuid
    - `title` string, required
    - `topic_ids` Jsonb
    - `updated_at` string, date-time, nullable, required
    - `user_id` string, uuid

## Other responses

- `default`: Error

---

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