Create a worldbook
POST
/worldbook
const url = 'https://api.harperharbor.com/open/v1/worldbook';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"example","description":"example","iconUrl":"example","tags":["example"],"visibility":"example","language":"example","format":"tavern"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.harperharbor.com/open/v1/worldbook \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "description": "example", "iconUrl": "example", "tags": [ "example" ], "visibility": "example", "language": "example", "format": "tavern" }'Authorizations
Section titled “Authorizations”Request Body
Section titled “Request Body”Media typeapplication/json
object
name
required
string
description
string
iconUrl
string
tags
Array<string>
visibility
string
language
string
format
string
Responses
Section titled “Responses”Created.
Media typeapplication/json
object
worldbookId
string
name
string
visibility
string
Examplegenerated
{ "worldbookId": "example", "name": "example", "visibility": "example"}