curl --request POST \
--url https://tavusapi.com/v2/memory-stores \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"pal_id": "p123456789ab",
"participant_tag": "user_12345",
"pinned_memories": [
"Prefers concise answers",
"Uses the Pro plan"
]
}
'import requests
url = "https://tavusapi.com/v2/memory-stores"
payload = {
"pal_id": "p123456789ab",
"participant_tag": "user_12345",
"pinned_memories": ["Prefers concise answers", "Uses the Pro plan"]
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
pal_id: 'p123456789ab',
participant_tag: 'user_12345',
pinned_memories: ['Prefers concise answers', 'Uses the Pro plan']
})
};
fetch('https://tavusapi.com/v2/memory-stores', 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://tavusapi.com/v2/memory-stores",
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([
'pal_id' => 'p123456789ab',
'participant_tag' => 'user_12345',
'pinned_memories' => [
'Prefers concise answers',
'Uses the Pro plan'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$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://tavusapi.com/v2/memory-stores"
payload := strings.NewReader("{\n \"pal_id\": \"p123456789ab\",\n \"participant_tag\": \"user_12345\",\n \"pinned_memories\": [\n \"Prefers concise answers\",\n \"Uses the Pro plan\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
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://tavusapi.com/v2/memory-stores")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"pal_id\": \"p123456789ab\",\n \"participant_tag\": \"user_12345\",\n \"pinned_memories\": [\n \"Prefers concise answers\",\n \"Uses the Pro plan\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://tavusapi.com/v2/memory-stores")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"pal_id\": \"p123456789ab\",\n \"participant_tag\": \"user_12345\",\n \"pinned_memories\": [\n \"Prefers concise answers\",\n \"Uses the Pro plan\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"memory_store_id": "m123456789abc",
"pal_id": "p123456789ab",
"participant_tag": "user_12345",
"pinned_memories": [
{
"memory_id": "pm123456789abc",
"memory": "Prefers concise answers",
"created_at": "2026-08-24 12:00:00",
"updated_at": "2026-08-24 12:00:00"
}
],
"learned": {
"profile": {
"preferences": {
"communication_style": "concise"
}
},
"timeline": {
"recent_conversations": [
{
"timestamp": "2026-08-24T19:00:00Z",
"summary": "Discussed onboarding progress and next steps."
}
]
}
},
"created_at": "2026-08-24 12:00:00",
"updated_at": "2026-08-24 12:00:00"
}Create Memory Store
Creates a persistent memory store for one PAL and participant. This is useful when you need to add pinned memories before the participant’s first conversation. Otherwise, passing one tag in participant_tags to Create Conversation creates the store automatically.
Only one active store may exist for a given pal_id and participant_tag.
curl --request POST \
--url https://tavusapi.com/v2/memory-stores \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"pal_id": "p123456789ab",
"participant_tag": "user_12345",
"pinned_memories": [
"Prefers concise answers",
"Uses the Pro plan"
]
}
'import requests
url = "https://tavusapi.com/v2/memory-stores"
payload = {
"pal_id": "p123456789ab",
"participant_tag": "user_12345",
"pinned_memories": ["Prefers concise answers", "Uses the Pro plan"]
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
pal_id: 'p123456789ab',
participant_tag: 'user_12345',
pinned_memories: ['Prefers concise answers', 'Uses the Pro plan']
})
};
fetch('https://tavusapi.com/v2/memory-stores', 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://tavusapi.com/v2/memory-stores",
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([
'pal_id' => 'p123456789ab',
'participant_tag' => 'user_12345',
'pinned_memories' => [
'Prefers concise answers',
'Uses the Pro plan'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$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://tavusapi.com/v2/memory-stores"
payload := strings.NewReader("{\n \"pal_id\": \"p123456789ab\",\n \"participant_tag\": \"user_12345\",\n \"pinned_memories\": [\n \"Prefers concise answers\",\n \"Uses the Pro plan\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
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://tavusapi.com/v2/memory-stores")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"pal_id\": \"p123456789ab\",\n \"participant_tag\": \"user_12345\",\n \"pinned_memories\": [\n \"Prefers concise answers\",\n \"Uses the Pro plan\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://tavusapi.com/v2/memory-stores")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"pal_id\": \"p123456789ab\",\n \"participant_tag\": \"user_12345\",\n \"pinned_memories\": [\n \"Prefers concise answers\",\n \"Uses the Pro plan\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"memory_store_id": "m123456789abc",
"pal_id": "p123456789ab",
"participant_tag": "user_12345",
"pinned_memories": [
{
"memory_id": "pm123456789abc",
"memory": "Prefers concise answers",
"created_at": "2026-08-24 12:00:00",
"updated_at": "2026-08-24 12:00:00"
}
],
"learned": {
"profile": {
"preferences": {
"communication_style": "concise"
}
},
"timeline": {
"recent_conversations": [
{
"timestamp": "2026-08-24T19:00:00Z",
"summary": "Discussed onboarding progress and next steps."
}
]
}
},
"created_at": "2026-08-24 12:00:00",
"updated_at": "2026-08-24 12:00:00"
}participant_tags to Create Conversation, and Tavus creates the store automatically.Authorizations
Body
PAL that will use this memory store.
"p123456789ab"
Stable identifier for the participant in your application.
"user_12345"
Optional static facts to seed into the store. Up to 30 facts, each with up to 500 characters.
301 - 500[
"Prefers concise answers",
"Uses the Pro plan"
]
Response
Memory store created
Unique identifier for the memory store.
"m123456789abc"
PAL this store belongs to.
"p123456789ab"
Developer-provided participant identifier.
"user_12345"
Pinned facts in this store.
30Show child attributes
Show child attributes
Memory learned from prior conversations. A filtered request may return only profile or timeline.
Show child attributes
Show child attributes
When the store was created.
"2026-08-24 12:00:00"
When the store was last updated.
"2026-08-24 12:00:00"

