List facts
List your own or an app user’s saved facts, newest first.
GET
https://api.atlaso.ai/v1
/
memory
/
facts
List facts
curl --request GET \
--url https://api.atlaso.ai/v1/memory/facts \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.atlaso.ai/v1/memory/facts"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.atlaso.ai/v1/memory/facts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.atlaso.ai/v1/memory/facts"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.atlaso.ai/v1/memory/facts")
.header("Authorization", "Bearer <token>")
.asString();using RestSharp;
var options = new RestClientOptions("https://api.atlaso.ai/v1/memory/facts");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);
{
"object": "list",
"data": [
{
"id": "0b6f3c1e-2a4d-4e8f-9c1b-5d7e6f8a9b0c",
"object": "memory.fact",
"created": 1763366400,
"text": "Prefers oat-milk lattes.",
"source": "api",
"app_user": "3f9a1c7e5b2d"
}
],
"first_id": "<string>",
"last_id": "<string>",
"has_more": true
}{
"error": {
"message": "This key keeps memory for each user of your app. Use atlaso.for_user(id).memory.",
"type": "invalid_request_error",
"param": "x-atlaso-user",
"code": "memory_scope_per_user",
"doc_url": "https://docs.atlaso.ai/gateway/errors#memory_scope_per_user"
}
}{
"error": {
"message": "Your Atlaso API key is missing, invalid or revoked. Set Authorization: Bearer to an active key from the API keys page.",
"type": "authentication_error",
"param": null,
"code": "invalid_api_key",
"doc_url": "https://docs.atlaso.ai/gateway/errors#invalid_api_key"
}
}{
"error": {
"message": "This key uses your own memory. Use atlaso.memory, without a user id.",
"type": "permission_error",
"param": "x-atlaso-user",
"code": "memory_scope_owner",
"doc_url": "https://docs.atlaso.ai/gateway/errors#memory_scope_owner"
}
}{
"error": {
"message": "Too many requests. Try again shortly.",
"type": "rate_limit_error",
"param": null,
"code": "rate_limited",
"doc_url": "https://docs.atlaso.ai/gateway/errors#rate_limited"
}
}{
"error": {
"message": "A deletion for this user has not finished yet. Retry the same request in a few seconds; retrying is safe.",
"type": "api_error",
"param": null,
"code": "delete_pending",
"doc_url": "https://docs.atlaso.ai/gateway/errors#delete_pending"
}
}A key set to memory for each user of your app must send the user’s id in
x-atlaso-user; without it the call gets 400 memory_scope_per_user. A key
whose Memory for is Me reaches your own memory and sends no
x-atlaso-user; with it, the call gets 403 memory_scope_owner.
Page through the list with limit and after. See Memory API.Authorizations
Headers
Your app user's id, set by your server. A key set to memory for each user of your app must send it on every call; without it the call gets 400 memory_scope_per_user, and an empty value gets 400 missing_user_id. A key whose Memory for is Me reaches your own memory and must not send it: with it, the call gets 403 memory_scope_owner and nothing is read or written. 1 to 256 printable characters, not only spaces, with no API key or token in it. Send it once. Used exactly as sent.
Required string length:
1 - 256Query Parameters
List facts
curl --request GET \
--url https://api.atlaso.ai/v1/memory/facts \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.atlaso.ai/v1/memory/facts"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.atlaso.ai/v1/memory/facts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.atlaso.ai/v1/memory/facts"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.atlaso.ai/v1/memory/facts")
.header("Authorization", "Bearer <token>")
.asString();using RestSharp;
var options = new RestClientOptions("https://api.atlaso.ai/v1/memory/facts");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);
{
"object": "list",
"data": [
{
"id": "0b6f3c1e-2a4d-4e8f-9c1b-5d7e6f8a9b0c",
"object": "memory.fact",
"created": 1763366400,
"text": "Prefers oat-milk lattes.",
"source": "api",
"app_user": "3f9a1c7e5b2d"
}
],
"first_id": "<string>",
"last_id": "<string>",
"has_more": true
}{
"error": {
"message": "This key keeps memory for each user of your app. Use atlaso.for_user(id).memory.",
"type": "invalid_request_error",
"param": "x-atlaso-user",
"code": "memory_scope_per_user",
"doc_url": "https://docs.atlaso.ai/gateway/errors#memory_scope_per_user"
}
}{
"error": {
"message": "Your Atlaso API key is missing, invalid or revoked. Set Authorization: Bearer to an active key from the API keys page.",
"type": "authentication_error",
"param": null,
"code": "invalid_api_key",
"doc_url": "https://docs.atlaso.ai/gateway/errors#invalid_api_key"
}
}{
"error": {
"message": "This key uses your own memory. Use atlaso.memory, without a user id.",
"type": "permission_error",
"param": "x-atlaso-user",
"code": "memory_scope_owner",
"doc_url": "https://docs.atlaso.ai/gateway/errors#memory_scope_owner"
}
}{
"error": {
"message": "Too many requests. Try again shortly.",
"type": "rate_limit_error",
"param": null,
"code": "rate_limited",
"doc_url": "https://docs.atlaso.ai/gateway/errors#rate_limited"
}
}{
"error": {
"message": "A deletion for this user has not finished yet. Retry the same request in a few seconds; retrying is safe.",
"type": "api_error",
"param": null,
"code": "delete_pending",
"doc_url": "https://docs.atlaso.ai/gateway/errors#delete_pending"
}
}