Skip to main content
POST
/
api
/
spaces
cURL
curl --request POST \
  --url https://api.kazzle.app/api/spaces \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "userId": "<string>",
  "identifier": "<string>",
  "migrateOrphans": true
}
'
{
  "id": "<string>",
  "identifier": "<string>"
}

Authorizations

Authorization
string
header
required

Better Auth JWT token

Body

application/json
name
string
required
userId
string
required
identifier
string
migrateOrphans
boolean

Response

200 - application/json

Successful response

id
string
required
identifier
string
required