Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
The unique identifier for the game.
"game123"
The unique identifier for the world.
"world456"
Query Parameters
The unique identifier for the region.
"region789"
The unique identifier for the location.
"location789"
(Optional) The player's session ID.
"60Z5aZjIuFlyYbjbZZKe"
Body
The character data required to create a new character.
The age category of the character.
infant
, child
, teenager
, youngAdult
, adult
, middleAged
, elderly
"adult"
A brief description of the character's background.
"A brave warrior with a mysterious past."
The gender of the character.
"Male"
The AI model used to power character interactions. Premium models are available only for some subscriptions.
standard
, premium
"standard"
A flag indicating whether to apply filters to the character's responses. Filters can be used to restrict certain types of content or language.
true
A list of items associated with the character. Each item must follow one of the predefined schemas based on its type.
- Option 1
- Option 2
A list of events associated with the character. Each event must adhere to the schema defined for its type.
- Option 1
- Option 2
The display name of the character.
"Aragorn"
A list of quests associated with the character.
The role of the character in the game. Determines how the character interacts with the story.
noRole
, protagonist
, antagonist
, secondaryCharacter
, tertiaryCharacter
, mentor
, enemy
, villain
, rival
, shopkeeper
, healer
, questGiver
, innkeeper
, guard
, familyMember
, loveInterest
, scientist
, politician
, criminal
, explorer
, wizard
, ghost
, animalCompanion
, artificialIntelligence
"protagonist"
The tone or style of the character's dialogue.
formal
, casual
, sarcastic
, mysterious
, emotive
"mysterious"
A list of personality traits describing the character.
Response
Character created successfully.
Confirmation message with character details.
"Character: character789 has been created with the following context."
UID of the character.
"character789"
The created character context.
{
"age": "adult",
"description": "A brave warrior with a mysterious past.",
"gender": "Male",
"items": [
{
"itemName": "sword",
"unit": "Piece",
"value": 100
}
],
"name": "Aragorn",
"quests": [
{
"description": "Retrieve the lost artifact.",
"objective": "Find and return the artifact.",
"reward": "500 gold coins"
}
],
"role": "protagonist",
"tone": "mysterious",
"traits": ["brave"]
}