curl --request PUT \
--url https://api.anam.ai/v1/personas/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"systemPrompt": "You are a helpful assistant who speaks concisely."
}
'import requests
url = "https://api.anam.ai/v1/personas/{id}"
payload = { "systemPrompt": "You are a helpful assistant who speaks concisely." }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({systemPrompt: 'You are a helpful assistant who speaks concisely.'})
};
fetch('https://api.anam.ai/v1/personas/{id}', 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/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'systemPrompt' => 'You are a helpful assistant who speaks concisely.'
]),
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/{id}"
payload := strings.NewReader("{\n \"systemPrompt\": \"You are a helpful assistant who speaks concisely.\"\n}")
req, _ := http.NewRequest("PUT", 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.put("https://api.anam.ai/v1/personas/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"systemPrompt\": \"You are a helpful assistant who speaks concisely.\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.anam.ai/v1/personas/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"systemPrompt\": \"You are a helpful assistant who speaks concisely.\"\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"
}update persona
Update a persona by id
curl --request PUT \
--url https://api.anam.ai/v1/personas/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"systemPrompt": "You are a helpful assistant who speaks concisely."
}
'import requests
url = "https://api.anam.ai/v1/personas/{id}"
payload = { "systemPrompt": "You are a helpful assistant who speaks concisely." }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({systemPrompt: 'You are a helpful assistant who speaks concisely.'})
};
fetch('https://api.anam.ai/v1/personas/{id}', 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/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'systemPrompt' => 'You are a helpful assistant who speaks concisely.'
]),
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/{id}"
payload := strings.NewReader("{\n \"systemPrompt\": \"You are a helpful assistant who speaks concisely.\"\n}")
req, _ := http.NewRequest("PUT", 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.put("https://api.anam.ai/v1/personas/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"systemPrompt\": \"You are a helpful assistant who speaks concisely.\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.anam.ai/v1/personas/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"systemPrompt\": \"You are a helpful assistant who speaks concisely.\"\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
Partial persona update; fields left out keep their values. A new avatarId may reset avatarModel if the avatar doesn't support it, and a new voiceId resets voiceGenerationOptions unless new ones are sent. voiceGenerationOptions sent with the current voiceId are merged into the saved ones (so a key can't be removed that way), sent without voiceId replace them, and null clears them. They must suit the voice's model, or the model override when set.
ID of an ElevenLabs agent the persona runs on, or null to run it on its own voice and LLM again (it must have an llmId or brainType, and a voiceId to start sessions; send any it lacks with the null). The agent provides speech recognition, the LLM, the voice and turn-taking; Anam renders the face. 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 updated persona
Full persona shape returned by the create, get, and update endpoints.

