Skip to content
Spacefolder Docs
Esc
↑↓navigate↵open⌘Jpreview

Create a world

Create a workspace-scoped World to receive events and support predictions.

POST/worlds
Authorization
AuthorizationBearer token · headerrequired

Workspace API key (sf-…). Keep it server-side.

Request body
requiredapplication/json
idWorldIdrequired
min length 1 · matches ^\S+$
namestring | null
Responses
200

Success

created_atstring<date-time> | null

Creation time, when recorded.

idWorldIdrequired
min length 1 · matches ^\S+$
namestringrequired
Request
curl -X POST 'https://api.spacefolder.com/v1/worlds' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "id": "string",
  "name": "My application"
}'
Response
{
  "created_at": "2019-08-24T14:15:22Z",
  "id": "string",
  "name": "string"
}