curl --request POST \ --url https://app.npcbuilder.com/api/context/world/{game_id} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "lore": "A world where magic and technology coexist.", "name": "Eldoria", "creatures": "Dragons, Elves", "similarWorlds": [ "Middle Earth" ]}'
Copy
{ "message": "World: world456 has been created with the following context.", "world_id": "world456", "world_context": { "lore": "A world where magic and technology coexist.", "name": "Eldoria", "creatures": "Dragons, Elves", "similarWorlds": [ "Middle Earth" ] }}
Worlds
Create a new world
Create a new world within the game. Provide world details such as lore, name, creatures, and similar worlds for reference.
POST
/
context
/
world
/
{game_id}
Create a new world
Copy
curl --request POST \ --url https://app.npcbuilder.com/api/context/world/{game_id} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "lore": "A world where magic and technology coexist.", "name": "Eldoria", "creatures": "Dragons, Elves", "similarWorlds": [ "Middle Earth" ]}'
Copy
{ "message": "World: world456 has been created with the following context.", "world_id": "world456", "world_context": { "lore": "A world where magic and technology coexist.", "name": "Eldoria", "creatures": "Dragons, Elves", "similarWorlds": [ "Middle Earth" ] }}