跳转到主要内容
POST
/
space
cURL
curl --request POST \
  --url http://127.0.0.1:3000/api/space \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>"
}
'
{
  "id": "<string>",
  "name": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
name
string

Response

201 - application/json

Returns information about a successfully created space.

id
string
required
name
string
required
Last modified on December 10, 2025