molroo docs
WorldAPI ReferenceWorlds

Create a new world

POST
/worlds

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://api.molroo.io/worlds" \  -H "Content-Type: application/json" \  -d '{    "definition": {      "identity": {        "name": "string",        "property1": null,        "property2": null      },      "rules": {        "physics": {          "property1": true,          "property2": true        }      },      "property1": null,      "property2": null    },    "entities": [      {        "name": "string",        "type": "persona"      }    ],    "personaConfigs": {      "property1": {        "property1": null,        "property2": null      },      "property2": {        "property1": null,        "property2": null      }    }  }'
{
  "result": {
    "worldId": "string",
    "createdAt": 0
  }
}
{
  "error": {
    "code": "string",
    "message": "string"
  }
}