Create a memory
curl --request POST \
--url https://chatatp-agent-builder-backend.onrender.com/v1/agents/{agent_id}/memories/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"content": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({title: '<string>', content: '<string>'})
};
fetch('https://chatatp-agent-builder-backend.onrender.com/v1/agents/{agent_id}/memories/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://chatatp-agent-builder-backend.onrender.com/v1/agents/{agent_id}/memories/"
payload = {
"title": "<string>",
"content": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Memories
Create a memory
Store a memory on an agent
POST
/
v1
/
agents
/
{agent_id}
/
memories
/
Create a memory
curl --request POST \
--url https://chatatp-agent-builder-backend.onrender.com/v1/agents/{agent_id}/memories/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"content": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({title: '<string>', content: '<string>'})
};
fetch('https://chatatp-agent-builder-backend.onrender.com/v1/agents/{agent_id}/memories/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://chatatp-agent-builder-backend.onrender.com/v1/agents/{agent_id}/memories/"
payload = {
"title": "<string>",
"content": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)integer
required
Agent ID.
string
required
Short title.
string
required
Memory body.
integer
Scope the memory to one user. Omit for agent-level memory.
SDK
await client.memories.create(7, {
title: "Preferred language",
content: "Jane prefers English.",
agent_user_id: 42,
});
await client.memories.create(
7,
title="Preferred language",
content="Jane prefers English.",
agent_user_id=42,
)

