Skip to main content
POST
/
api
/
v1
/
spaces
Create Space
curl --request POST \
  --url https://api.example.com/api/v1/spaces \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>"
}
'

Create Space

Create a new 2D tile-based space.

Authentication

Requires a valid user JWT token.

Request Body

name
string
required
Name for the space.

Example

curl -X POST https://api.ama2.me/api/v1/spaces \
  -H "Authorization: Bearer YOUR_JWT_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name": "My Space"}'