curl --request POST \
--url https://api.example.com/api/v1/memory/get \
--header 'Content-Type: application/json' \
--data '
{
"user_id": "<string>",
"agent_id": "<string>",
"app_id": "default",
"project_id": "default",
"page": 1,
"page_size": 20,
"sort_by": "timestamp",
"sort_order": "desc",
"filters": {
"AND": [
"<unknown>"
],
"OR": [
"<unknown>"
]
}
}
'import requests
url = "https://api.example.com/api/v1/memory/get"
payload = {
"user_id": "<string>",
"agent_id": "<string>",
"app_id": "default",
"project_id": "default",
"page": 1,
"page_size": 20,
"sort_by": "timestamp",
"sort_order": "desc",
"filters": {
"AND": ["<unknown>"],
"OR": ["<unknown>"]
}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
user_id: '<string>',
agent_id: '<string>',
app_id: 'default',
project_id: 'default',
page: 1,
page_size: 20,
sort_by: 'timestamp',
sort_order: 'desc',
filters: {AND: ['<unknown>'], OR: ['<unknown>']}
})
};
fetch('https://api.example.com/api/v1/memory/get', 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.example.com/api/v1/memory/get",
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([
'user_id' => '<string>',
'agent_id' => '<string>',
'app_id' => 'default',
'project_id' => 'default',
'page' => 1,
'page_size' => 20,
'sort_by' => 'timestamp',
'sort_order' => 'desc',
'filters' => [
'AND' => [
'<unknown>'
],
'OR' => [
'<unknown>'
]
]
]),
CURLOPT_HTTPHEADER => [
"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.example.com/api/v1/memory/get"
payload := strings.NewReader("{\n \"user_id\": \"<string>\",\n \"agent_id\": \"<string>\",\n \"app_id\": \"default\",\n \"project_id\": \"default\",\n \"page\": 1,\n \"page_size\": 20,\n \"sort_by\": \"timestamp\",\n \"sort_order\": \"desc\",\n \"filters\": {\n \"AND\": [\n \"<unknown>\"\n ],\n \"OR\": [\n \"<unknown>\"\n ]\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
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.example.com/api/v1/memory/get")
.header("Content-Type", "application/json")
.body("{\n \"user_id\": \"<string>\",\n \"agent_id\": \"<string>\",\n \"app_id\": \"default\",\n \"project_id\": \"default\",\n \"page\": 1,\n \"page_size\": 20,\n \"sort_by\": \"timestamp\",\n \"sort_order\": \"desc\",\n \"filters\": {\n \"AND\": [\n \"<unknown>\"\n ],\n \"OR\": [\n \"<unknown>\"\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v1/memory/get")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"user_id\": \"<string>\",\n \"agent_id\": \"<string>\",\n \"app_id\": \"default\",\n \"project_id\": \"default\",\n \"page\": 1,\n \"page_size\": 20,\n \"sort_by\": \"timestamp\",\n \"sort_order\": \"desc\",\n \"filters\": {\n \"AND\": [\n \"<unknown>\"\n ],\n \"OR\": [\n \"<unknown>\"\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"request_id": "<string>",
"data": {
"episodes": [
{
"id": "<string>",
"user_id": "<string>",
"session_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"summary": "<string>",
"subject": "<string>",
"episode": "<string>",
"type": "<string>",
"app_id": "default",
"project_id": "default",
"sender_ids": [
"<string>"
]
}
],
"profiles": [
{
"id": "<string>",
"user_id": "<string>",
"profile_data": {},
"app_id": "default",
"project_id": "default"
}
],
"agent_cases": [
{
"id": "<string>",
"agent_id": "<string>",
"session_id": "<string>",
"task_intent": "<string>",
"approach": "<string>",
"quality_score": 123,
"timestamp": "2023-11-07T05:31:56Z",
"app_id": "default",
"project_id": "default",
"key_insight": "<string>"
}
],
"agent_skills": [
{
"id": "<string>",
"agent_id": "<string>",
"name": "<string>",
"description": "<string>",
"content": "<string>",
"confidence": 123,
"maturity_score": 123,
"app_id": "default",
"project_id": "default",
"source_case_ids": [
"<string>"
]
}
],
"total_count": 0,
"count": 0
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Get Memory
Paginated listing over the requested memory_type.
curl --request POST \
--url https://api.example.com/api/v1/memory/get \
--header 'Content-Type: application/json' \
--data '
{
"user_id": "<string>",
"agent_id": "<string>",
"app_id": "default",
"project_id": "default",
"page": 1,
"page_size": 20,
"sort_by": "timestamp",
"sort_order": "desc",
"filters": {
"AND": [
"<unknown>"
],
"OR": [
"<unknown>"
]
}
}
'import requests
url = "https://api.example.com/api/v1/memory/get"
payload = {
"user_id": "<string>",
"agent_id": "<string>",
"app_id": "default",
"project_id": "default",
"page": 1,
"page_size": 20,
"sort_by": "timestamp",
"sort_order": "desc",
"filters": {
"AND": ["<unknown>"],
"OR": ["<unknown>"]
}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
user_id: '<string>',
agent_id: '<string>',
app_id: 'default',
project_id: 'default',
page: 1,
page_size: 20,
sort_by: 'timestamp',
sort_order: 'desc',
filters: {AND: ['<unknown>'], OR: ['<unknown>']}
})
};
fetch('https://api.example.com/api/v1/memory/get', 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.example.com/api/v1/memory/get",
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([
'user_id' => '<string>',
'agent_id' => '<string>',
'app_id' => 'default',
'project_id' => 'default',
'page' => 1,
'page_size' => 20,
'sort_by' => 'timestamp',
'sort_order' => 'desc',
'filters' => [
'AND' => [
'<unknown>'
],
'OR' => [
'<unknown>'
]
]
]),
CURLOPT_HTTPHEADER => [
"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.example.com/api/v1/memory/get"
payload := strings.NewReader("{\n \"user_id\": \"<string>\",\n \"agent_id\": \"<string>\",\n \"app_id\": \"default\",\n \"project_id\": \"default\",\n \"page\": 1,\n \"page_size\": 20,\n \"sort_by\": \"timestamp\",\n \"sort_order\": \"desc\",\n \"filters\": {\n \"AND\": [\n \"<unknown>\"\n ],\n \"OR\": [\n \"<unknown>\"\n ]\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
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.example.com/api/v1/memory/get")
.header("Content-Type", "application/json")
.body("{\n \"user_id\": \"<string>\",\n \"agent_id\": \"<string>\",\n \"app_id\": \"default\",\n \"project_id\": \"default\",\n \"page\": 1,\n \"page_size\": 20,\n \"sort_by\": \"timestamp\",\n \"sort_order\": \"desc\",\n \"filters\": {\n \"AND\": [\n \"<unknown>\"\n ],\n \"OR\": [\n \"<unknown>\"\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v1/memory/get")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"user_id\": \"<string>\",\n \"agent_id\": \"<string>\",\n \"app_id\": \"default\",\n \"project_id\": \"default\",\n \"page\": 1,\n \"page_size\": 20,\n \"sort_by\": \"timestamp\",\n \"sort_order\": \"desc\",\n \"filters\": {\n \"AND\": [\n \"<unknown>\"\n ],\n \"OR\": [\n \"<unknown>\"\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"request_id": "<string>",
"data": {
"episodes": [
{
"id": "<string>",
"user_id": "<string>",
"session_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"summary": "<string>",
"subject": "<string>",
"episode": "<string>",
"type": "<string>",
"app_id": "default",
"project_id": "default",
"sender_ids": [
"<string>"
]
}
],
"profiles": [
{
"id": "<string>",
"user_id": "<string>",
"profile_data": {},
"app_id": "default",
"project_id": "default"
}
],
"agent_cases": [
{
"id": "<string>",
"agent_id": "<string>",
"session_id": "<string>",
"task_intent": "<string>",
"approach": "<string>",
"quality_score": 123,
"timestamp": "2023-11-07T05:31:56Z",
"app_id": "default",
"project_id": "default",
"key_insight": "<string>"
}
],
"agent_skills": [
{
"id": "<string>",
"agent_id": "<string>",
"name": "<string>",
"description": "<string>",
"content": "<string>",
"confidence": 123,
"maturity_score": 123,
"app_id": "default",
"project_id": "default",
"source_case_ids": [
"<string>"
]
}
],
"total_count": 0,
"count": 0
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Body
Request body for POST /api/v1/memory/get.
Callers identify the memory owner via user_id XOR agent_id —
exactly one must be set. Internally the manager keeps using
owner_id / owner_type (the storage tables' columns); those
are exposed as derived properties so the rename only affects the
wire contract.
The four kinds enumerated by /get.
episode and profile are user-owned; agent_case and
agent_skill are agent-owned. Cross-pairs are rejected by
:meth:GetRequest._validate_owner_memory_type_pair.
Naming note: all four values use the bare kind name (no
_memory suffix) and match the LanceDB table name + everalgo
type name for that kind.
episode, profile, agent_case, agent_skill 11x >= 11 <= x <= 100timestamp, updated_at asc, desc One Filters DSL node.
Recursive AND / OR arrays mix with arbitrary scalar fields at
the same level. Pydantic only checks the combinators; field-level
safety is enforced when compiling the node to a LanceDB where
string in :mod:everos.memory.search.filters.
Show child attributes
Show child attributes
Was this page helpful?

