curl --request POST \
--url https://api.anam.ai/v1/personas \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Cara",
"description": "A helpful assistant",
"avatarId": "071b0286-4cce-4808-bee2-e642f1062de3",
"voiceId": "de23e340-1416-4dd8-977d-065a7ca11697",
"llmId": "a7cf662c-2ace-4de1-a21e-ef0fbf144bb7",
"systemPrompt": "You are a helpful assistant."
}
'import requests
url = "https://api.anam.ai/v1/personas"
payload = {
"name": "Cara",
"description": "A helpful assistant",
"avatarId": "071b0286-4cce-4808-bee2-e642f1062de3",
"voiceId": "de23e340-1416-4dd8-977d-065a7ca11697",
"llmId": "a7cf662c-2ace-4de1-a21e-ef0fbf144bb7",
"systemPrompt": "You are a helpful assistant."
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Cara',
description: 'A helpful assistant',
avatarId: '071b0286-4cce-4808-bee2-e642f1062de3',
voiceId: 'de23e340-1416-4dd8-977d-065a7ca11697',
llmId: 'a7cf662c-2ace-4de1-a21e-ef0fbf144bb7',
systemPrompt: 'You are a helpful assistant.'
})
};
fetch('https://api.anam.ai/v1/personas', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.anam.ai/v1/personas",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Cara',
'description' => 'A helpful assistant',
'avatarId' => '071b0286-4cce-4808-bee2-e642f1062de3',
'voiceId' => 'de23e340-1416-4dd8-977d-065a7ca11697',
'llmId' => 'a7cf662c-2ace-4de1-a21e-ef0fbf144bb7',
'systemPrompt' => 'You are a helpful assistant.'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.anam.ai/v1/personas"
payload := strings.NewReader("{\n \"name\": \"Cara\",\n \"description\": \"A helpful assistant\",\n \"avatarId\": \"071b0286-4cce-4808-bee2-e642f1062de3\",\n \"voiceId\": \"de23e340-1416-4dd8-977d-065a7ca11697\",\n \"llmId\": \"a7cf662c-2ace-4de1-a21e-ef0fbf144bb7\",\n \"systemPrompt\": \"You are a helpful assistant.\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.anam.ai/v1/personas")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Cara\",\n \"description\": \"A helpful assistant\",\n \"avatarId\": \"071b0286-4cce-4808-bee2-e642f1062de3\",\n \"voiceId\": \"de23e340-1416-4dd8-977d-065a7ca11697\",\n \"llmId\": \"a7cf662c-2ace-4de1-a21e-ef0fbf144bb7\",\n \"systemPrompt\": \"You are a helpful assistant.\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.anam.ai/v1/personas")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Cara\",\n \"description\": \"A helpful assistant\",\n \"avatarId\": \"071b0286-4cce-4808-bee2-e642f1062de3\",\n \"voiceId\": \"de23e340-1416-4dd8-977d-065a7ca11697\",\n \"llmId\": \"a7cf662c-2ace-4de1-a21e-ef0fbf144bb7\",\n \"systemPrompt\": \"You are a helpful assistant.\"\n}"
response = http.request(request)
puts response.read_body{
"id": "00000000-0000-0000-0000-000000000000",
"name": "Cara",
"description": "A helpful assistant",
"personaPreset": "",
"avatar": {
"id": "071b0286-4cce-4808-bee2-e642f1062de3",
"displayName": "Liv",
"variantName": "home",
"imageUrl": "https://lab.anam.ai/persona_thumbnails/liv_home.png",
"videoUrl": "https://example.com/avatar-preview.mp4?X-Amz-Signature=...",
"createdAt": "2026-04-20T10:00:00.000Z",
"updatedAt": "2026-04-20T10:00:00.000Z",
"createdByOrganizationId": null,
"availableVersions": [
"cara-3"
],
"activeVersion": "cara-3",
"description": "A friendly professional in a modern office setting, warm expression, business casual attire.",
"displayTags": [
"professional",
"friendly",
"office"
],
"renderStyle": "realistic"
},
"avatarModel": "cara-3",
"voice": {
"id": "de23e340-1416-4dd8-977d-065a7ca11697",
"displayName": "Lucy - Fresh & Casual",
"provider": "ELEVENLABS",
"providerVoiceId": "lcMyyd2HUfFzxdCaC4Ta",
"providerModelId": "eleven_flash_v2_5",
"sampleUrl": "https://newgxnc1uqs0jnqm.public.blob.vercel-storage.com/voice-samples/de23e340-1416-4dd8-977d-065a7ca11697/1760617899390.mp3",
"previewSampleUrl": "https://newgxnc1uqs0jnqm.public.blob.vercel-storage.com/voice-samples/de23e340-1416-4dd8-977d-065a7ca11697/1760617899390.mp3",
"gender": "FEMALE",
"country": "GB",
"description": "Energetic and youthful British voice, perfect for narrations and conversational agents.",
"displayTags": [
"fast"
],
"isZdr": true,
"createdByOrganizationId": null,
"createdAt": "2026-04-20T10:00:00.000Z",
"updatedAt": "2026-04-20T10:00:00.000Z"
},
"voiceSpeed": 1,
"llmId": "a7cf662c-2ace-4de1-a21e-ef0fbf144bb7",
"brain": {
"personality": null,
"systemPrompt": "You are a helpful assistant."
},
"tools": [],
"knowledge": [],
"shareLinks": null,
"primaryShareLink": null,
"enableAudioPassthrough": false,
"skipGreeting": false,
"zeroDataRetention": false,
"voiceDetectionOptions": null,
"voiceGenerationOptions": null,
"widgetConfig": {},
"createdAt": "2026-04-20T10:00:00.000Z",
"updatedAt": "2026-04-20T10:00:00.000Z"
}create persona
Create a new persona
curl --request POST \
--url https://api.anam.ai/v1/personas \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Cara",
"description": "A helpful assistant",
"avatarId": "071b0286-4cce-4808-bee2-e642f1062de3",
"voiceId": "de23e340-1416-4dd8-977d-065a7ca11697",
"llmId": "a7cf662c-2ace-4de1-a21e-ef0fbf144bb7",
"systemPrompt": "You are a helpful assistant."
}
'import requests
url = "https://api.anam.ai/v1/personas"
payload = {
"name": "Cara",
"description": "A helpful assistant",
"avatarId": "071b0286-4cce-4808-bee2-e642f1062de3",
"voiceId": "de23e340-1416-4dd8-977d-065a7ca11697",
"llmId": "a7cf662c-2ace-4de1-a21e-ef0fbf144bb7",
"systemPrompt": "You are a helpful assistant."
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Cara',
description: 'A helpful assistant',
avatarId: '071b0286-4cce-4808-bee2-e642f1062de3',
voiceId: 'de23e340-1416-4dd8-977d-065a7ca11697',
llmId: 'a7cf662c-2ace-4de1-a21e-ef0fbf144bb7',
systemPrompt: 'You are a helpful assistant.'
})
};
fetch('https://api.anam.ai/v1/personas', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.anam.ai/v1/personas",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Cara',
'description' => 'A helpful assistant',
'avatarId' => '071b0286-4cce-4808-bee2-e642f1062de3',
'voiceId' => 'de23e340-1416-4dd8-977d-065a7ca11697',
'llmId' => 'a7cf662c-2ace-4de1-a21e-ef0fbf144bb7',
'systemPrompt' => 'You are a helpful assistant.'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.anam.ai/v1/personas"
payload := strings.NewReader("{\n \"name\": \"Cara\",\n \"description\": \"A helpful assistant\",\n \"avatarId\": \"071b0286-4cce-4808-bee2-e642f1062de3\",\n \"voiceId\": \"de23e340-1416-4dd8-977d-065a7ca11697\",\n \"llmId\": \"a7cf662c-2ace-4de1-a21e-ef0fbf144bb7\",\n \"systemPrompt\": \"You are a helpful assistant.\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.anam.ai/v1/personas")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Cara\",\n \"description\": \"A helpful assistant\",\n \"avatarId\": \"071b0286-4cce-4808-bee2-e642f1062de3\",\n \"voiceId\": \"de23e340-1416-4dd8-977d-065a7ca11697\",\n \"llmId\": \"a7cf662c-2ace-4de1-a21e-ef0fbf144bb7\",\n \"systemPrompt\": \"You are a helpful assistant.\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.anam.ai/v1/personas")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Cara\",\n \"description\": \"A helpful assistant\",\n \"avatarId\": \"071b0286-4cce-4808-bee2-e642f1062de3\",\n \"voiceId\": \"de23e340-1416-4dd8-977d-065a7ca11697\",\n \"llmId\": \"a7cf662c-2ace-4de1-a21e-ef0fbf144bb7\",\n \"systemPrompt\": \"You are a helpful assistant.\"\n}"
response = http.request(request)
puts response.read_body{
"id": "00000000-0000-0000-0000-000000000000",
"name": "Cara",
"description": "A helpful assistant",
"personaPreset": "",
"avatar": {
"id": "071b0286-4cce-4808-bee2-e642f1062de3",
"displayName": "Liv",
"variantName": "home",
"imageUrl": "https://lab.anam.ai/persona_thumbnails/liv_home.png",
"videoUrl": "https://example.com/avatar-preview.mp4?X-Amz-Signature=...",
"createdAt": "2026-04-20T10:00:00.000Z",
"updatedAt": "2026-04-20T10:00:00.000Z",
"createdByOrganizationId": null,
"availableVersions": [
"cara-3"
],
"activeVersion": "cara-3",
"description": "A friendly professional in a modern office setting, warm expression, business casual attire.",
"displayTags": [
"professional",
"friendly",
"office"
],
"renderStyle": "realistic"
},
"avatarModel": "cara-3",
"voice": {
"id": "de23e340-1416-4dd8-977d-065a7ca11697",
"displayName": "Lucy - Fresh & Casual",
"provider": "ELEVENLABS",
"providerVoiceId": "lcMyyd2HUfFzxdCaC4Ta",
"providerModelId": "eleven_flash_v2_5",
"sampleUrl": "https://newgxnc1uqs0jnqm.public.blob.vercel-storage.com/voice-samples/de23e340-1416-4dd8-977d-065a7ca11697/1760617899390.mp3",
"previewSampleUrl": "https://newgxnc1uqs0jnqm.public.blob.vercel-storage.com/voice-samples/de23e340-1416-4dd8-977d-065a7ca11697/1760617899390.mp3",
"gender": "FEMALE",
"country": "GB",
"description": "Energetic and youthful British voice, perfect for narrations and conversational agents.",
"displayTags": [
"fast"
],
"isZdr": true,
"createdByOrganizationId": null,
"createdAt": "2026-04-20T10:00:00.000Z",
"updatedAt": "2026-04-20T10:00:00.000Z"
},
"voiceSpeed": 1,
"llmId": "a7cf662c-2ace-4de1-a21e-ef0fbf144bb7",
"brain": {
"personality": null,
"systemPrompt": "You are a helpful assistant."
},
"tools": [],
"knowledge": [],
"shareLinks": null,
"primaryShareLink": null,
"enableAudioPassthrough": false,
"skipGreeting": false,
"zeroDataRetention": false,
"voiceDetectionOptions": null,
"voiceGenerationOptions": null,
"widgetConfig": {},
"createdAt": "2026-04-20T10:00:00.000Z",
"updatedAt": "2026-04-20T10:00:00.000Z"
}Authorizations
Body
Configuration for the new persona. avatarId, voiceId, and llmId are references to existing resources in your organization. systemPrompt, if provided, is merged into the brain field server-side. Setting zeroDataRetention to true requires the voice, LLM and voiceDetectionOptions.sttProvider to be ZDR-compatible and an enterprise plan. To give an ElevenLabs agent a face, send avatarId and elevenLabsAgentId instead of voiceId and llmId.
ID of an ElevenLabs agent the persona runs on. The agent provides speech recognition, the LLM, the voice and turn-taking; Anam renders the face. Sessions started with personaId, share links, embeds and meeting invites all run on the agent. voiceId and llmId are optional with an agent. Needs the organization's ElevenLabs API key (PUT /v1/voices/elevenlabs-key, with ElevenLabs Agents access) or Sign in with ElevenLabs in the Lab. The agent must take PCM audio.
^agent_[A-Za-z0-9]{10,58}$"agent_0123456789abcdefghij"
Response
Successfully created persona
Full persona shape returned by the create, get, and update endpoints.

