API User Memories: Get Memories
curl --request GET \
--url https://api.example.com/v0/api-user/memoriesimport requests
url = "https://api.example.com/v0/api-user/memories"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v0/api-user/memories', 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/v0/api-user/memories",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v0/api-user/memories"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/v0/api-user/memories")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v0/api-user/memories")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"entity_id": "<string>",
"layers": {}
}API User Memories
API User Memories: Get Memories
List/search memories for one of your end-users (tenant-scoped, server-derived entity_id)
GET
/
v0
/
api-user
/
memories
API User Memories: Get Memories
curl --request GET \
--url https://api.example.com/v0/api-user/memoriesimport requests
url = "https://api.example.com/v0/api-user/memories"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v0/api-user/memories', 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/v0/api-user/memories",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v0/api-user/memories"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/v0/api-user/memories")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v0/api-user/memories")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"entity_id": "<string>",
"layers": {}
}Overview
Fetch memories for one of your app’s end-users. The backend derives the storage namespace from:- your authenticated tenant (API key / token)
- the provided
end_user_id - the provided
expert_id
entity_id.
Authentication
Send your API key:string
Your BBOT API key
string
Alias header for your BBOT API key
Query Parameters
integer
required
Expert id (scopes memories per expert)
string
required
Your own end-user identifier (string)
string[]
Memory layers to fetch. Allowed: core, mid, long
string
Optional semantic query (applies to Store search)
integer
default:"50"
Max items per layer
integer
default:"0"
Pagination offset
Response
string
Server-derived namespace id (for debugging only)
object
Per-layer results
Example Request
cURL
curl --location 'https://api.b-bot.space/api/v0/api-user/memories?expert_id=42&end_user_id=user-123&layers=core&layers=long&layers=mid&limit=50' \
--header 'BBOT-API-Key: <your-bbot-api-key>'