Overview
POST
/persona-memory/recallpersonaSemantic recall of a persona’s memories (KNN)
Create a record in recall.
Auth: bearerAuth — calls run as the authenticated user.
Request body
application/json · optional
- personaIdstring
- querystring
- limitoptionalinteger
- memoryTypeoptional"user" | "feedback" | "project" | "reference"
Example
{
"personaId": "string",
"query": "string",
"limit": 0,
"memoryType": "user"
}Responses
200
Ranked memory matches
- memoriesPersonaMemoryMatch[]
Example
{
"memories": [
{
"id": "string",
"personaId": "string",
"scope": "user",
"slug": "string",
"memoryType": "user",
"description": "string",
"body": "string",
"confidence": 0,
"tags": [
"string"
],
"similarity": 0
}
]
}400
Error
- erroroptionalobject
Example
{
"error": {
"message": "string",
"code": "string"
}
}401
Error
- erroroptionalobject
Example
{
"error": {
"message": "string",
"code": "string"
}
}502
Error
- erroroptionalobject
Example
{
"error": {
"message": "string",
"code": "string"
}
}Code examples
cURL
curl -X POST "https://api.agenticdeveloperhub.com/persona-memory/recall" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"personaId": "string",
"query": "string",
"limit": 0,
"memoryType": "user"
}'JavaScript
const res = await fetch("https://api.agenticdeveloperhub.com/persona-memory/recall", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json"
},
body: "{\n \"personaId\": \"string\",\n \"query\": \"string\",\n \"limit\": 0,\n \"memoryType\": \"user\"\n}",
});
const data = await res.json();