Overview
Personas represent AI characters with specific personality traits, backgrounds, and voice characteristics. They are reusable across multiple scenarios.
Get All Personas
Retrieve all personas for the authenticated user.
curl -X GET https://api.waterrai.com/personas \
-H "Authorization: Bearer YOUR_API_TOKEN"
{
"status": "success",
"data": [
{
"id": 123,
"name": "Sarah Chen",
"job_title": "Senior Product Manager",
"demeanor": "friendly",
"background": "Experienced product manager...",
"voice_id": 1,
"avatar": "https://example.com/avatar.jpg",
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T10:30:00Z"
}
]
}
Get Persona by ID
Retrieve a specific persona by its ID.
curl -X GET https://api.waterrai.com/personas/123 \
-H "Authorization: Bearer YOUR_API_TOKEN"
{
"status": "success",
"data": {
"id": 123,
"name": "Sarah Chen",
"job_title": "Senior Product Manager",
"demeanor": "friendly",
"background": "Experienced product manager with 10 years in tech...",
"voice_id": 1,
"avatar": "https://example.com/avatar.jpg",
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T10:30:00Z"
}
}
Create Persona
Create a new persona with specified characteristics.
Name of the persona (max 100 characters)
Job title of the persona (max 100 characters)
Personality style. Options: friendly, analytical, empathetic, curious, enthusiastic, critical, casual, blunt, assertive, neutral
Detailed background information about the persona
ID of the voice associated with the persona
URL or path to the persona’s avatar image (max 255 characters)
curl -X POST https://api.waterrai.com/personas \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "Sarah Chen",
"job_title": "Senior Product Manager",
"demeanor": "friendly",
"background": "Experienced product manager with 10 years in tech, specializing in user experience and product strategy.",
"voice_id": 1
}'
{
"status": "success",
"data": {
"id": 123,
"name": "Sarah Chen",
"job_title": "Senior Product Manager",
"demeanor": "friendly",
"background": "Experienced product manager...",
"voice_id": 1,
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T10:30:00Z"
}
}
Update Persona
Update an existing persona.
Name of the persona (max 100 characters)
Job title of the persona (max 100 characters)
Detailed background information
ID of the voice associated with the persona
URL or path to the persona’s avatar image
curl -X PUT https://api.waterrai.com/personas/123 \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "Sarah Chen",
"job_title": "VP of Product",
"demeanor": "analytical"
}'
{
"status": "success",
"data": {
"id": 123,
"name": "Sarah Chen",
"job_title": "VP of Product",
"demeanor": "analytical",
"updated_at": "2024-01-15T11:00:00Z"
}
}
Delete Persona
Delete a persona by ID.
curl -X DELETE https://api.waterrai.com/personas/123 \
-H "Authorization: Bearer YOUR_API_TOKEN"