POST
/api/v11/character
curl \
-X POST https://chat-api.aurora-interactive.online:8443/api/v11/character \
-H "Content-Type: application/json" \
-H "x-access-token: wcdE8dGPZEshG6B8E5uGpgALr5LzwPX5AqZFKAZsfcvzuHVf" \
-d '{"name":"string","description":"string","aiPrompt":"string","initialResponse":"string","banner":"AAAAbx","icon":"AAAAbx","isPrivate":true,"specialMessages":[{"startsWith":"string","endsWith":["string"],"prompt":"string"}]}'
Request examples
# Headers
x-access-token: wcdE8dGPZEshG6B8E5uGpgALr5LzwPX5AqZFKAZsfcvzuHVf
# Payload
{
"name": "string",
"description": "string",
"aiPrompt": "string",
"initialResponse": "string",
"banner": "AAAAbx",
"icon": "AAAAbx",
"isPrivate": true,
"specialMessages": [
{
"startsWith": "string",
"endsWith": [
"string"
],
"prompt": "string"
}
]
}
Response examples (200)
{
"success": true,
"characterId": 42
}
Response examples (400)
{
"success": false,
"error": "One or more API parameters are malformed. Please check your request and try again"
}
Response examples (401)
{
"success": false,
"error": "Invalid username, password, or access token"
}
Response examples (429)
Object-2
{
"success": false,
"error": "You have exceeded your Message/TTS quota. To send more messages, please upgrade your plan or wait until your subscription renews."
}
{
"statusCode": 42,
"error": "string",
"message": "string"
}