---
raw: true
search:
  tags:
    - Spaces
    - POST
seo:
  description: >-
    Creates a space under a team with a chosen or generated slug. Pass source to
    create… Reference for the POST /v1/spaces endpoint in the Spacefast Partner
    API.
sidebar:
  label: Create a space
  badge: POST
title: Create a space
type: openapi-operation
---
Creates a space under a team with a chosen or generated slug. Pass `source` to create it from a GitHub repository and start its first build. Use POST /v1/publish to create a space and publish content in one call.

`POST /v1/spaces`
