Character Base API
All the relevant APIs needed to create your own intelligent AI characters with Convai.
Create Character
Headers
Name
Type
Description
Request Body
Name
Type
Description
{
"charID": "<character id for new character>"
}{
"INTERNAL_ERROR": "Error in creating the character. Check if all the input data is valid. Contact support for more info."
}{
"API_ERROR": "Invalid API key provided." / "api_key not found."
}import requests
import json
url = "https://api.convai.com/character/create"
payload = json.dumps({
"charName": "Raymond",
"voiceType": "MALE",
"backstory": "Raymond Reddington is a main character in the NBC series The Blacklist. Reddington is a criminal mastermind, making it to #4 and later to #1 on the FBI's Ten Most Wanted Fugitives, who suddenly turns himself in after 20+ years of evading the FBI."
})
headers = {
'CONVAI-API-KEY': '<your api key>',
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)curl --location --request POST 'https://api.convai.com/character/create' \
--header 'CONVAI-API-KEY: <your api key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"charName": "Raymond",
"voiceType": "MALE",
"backstory": "Raymond Reddington is a main character in the NBC series The Blacklist. Reddington is a criminal mastermind, making it to #4 and later to #1 on the FBI'\''s Ten Most Wanted Fugitives, who suddenly turns himself in after 20+ years of evading the FBI."
}'Update Character
Headers
Name
Type
Description
Request Body
Name
Type
Description
Get Details
Headers
Name
Type
Description
Request Body
Name
Type
Description
Clone Character
Headers
Name
Type
Description
Request Body
Name
Type
Description
Delete Character
Headers
Name
Type
Description
Request Body
Name
Type
Description
Last updated
Was this helpful?