Get memory analytics summary
curl --request GET \
--url https://{host}/v2/workspaces/slug:ai-insights-v2/webhooks/v1/analytics/memories \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{host}/v2/workspaces/slug:ai-insights-v2/webhooks/v1/analytics/memories', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{host}/v2/workspaces/slug:ai-insights-v2/webhooks/v1/analytics/memories"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"summary": {
"total_memories": 123,
"avg_daily": 123,
"change_vs_previous": 123
},
"type_breakdown": {},
"daily_series": [
{
"date": "2023-11-07T05:31:56Z",
"total": 123,
"fact": 123,
"preference": 123,
"relationship": 123,
"instruction": 123,
"unique_users": 123
}
],
"metadata": {
"orgSlug": "<string>",
"period": "<string>",
"start_date": "2023-11-07T05:31:56Z",
"end_date": "2023-11-07T05:31:56Z",
"generated_at": "2023-11-07T05:31:56Z"
}
}{
"error": "InvalidArgumentsError",
"message": "Invalid arguments",
"details": {
"errors": []
}
}{
"error": "UNAUTHORIZED",
"message": "Authentication required"
}{
"error": "FORBIDDEN",
"message": "Access denied: missing permission 'ai-insights-v2:analytics:read'"
}{
"error": "TooManyRequests",
"message": "Too many requests for 'Insights'",
"details": {
"name": "Insights",
"ok": false,
"retryAfter": 42.5,
"limit": 100,
"window": 60,
"remaining": 0
}
}Memories
Get memory analytics summary
Returns how many memories were created over the period, broken down
by type (fact, preference, relationship, instruction), with a
daily series (most recent first) and the change versus the previous
period of the same length.
Requires ai-insights-v2:analytics (read). Rate limit: 100
requests per minute.
GET
/
v1
/
analytics
/
memories
Get memory analytics summary
curl --request GET \
--url https://{host}/v2/workspaces/slug:ai-insights-v2/webhooks/v1/analytics/memories \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{host}/v2/workspaces/slug:ai-insights-v2/webhooks/v1/analytics/memories', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{host}/v2/workspaces/slug:ai-insights-v2/webhooks/v1/analytics/memories"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"summary": {
"total_memories": 123,
"avg_daily": 123,
"change_vs_previous": 123
},
"type_breakdown": {},
"daily_series": [
{
"date": "2023-11-07T05:31:56Z",
"total": 123,
"fact": 123,
"preference": 123,
"relationship": 123,
"instruction": 123,
"unique_users": 123
}
],
"metadata": {
"orgSlug": "<string>",
"period": "<string>",
"start_date": "2023-11-07T05:31:56Z",
"end_date": "2023-11-07T05:31:56Z",
"generated_at": "2023-11-07T05:31:56Z"
}
}{
"error": "InvalidArgumentsError",
"message": "Invalid arguments",
"details": {
"errors": []
}
}{
"error": "UNAUTHORIZED",
"message": "Authentication required"
}{
"error": "FORBIDDEN",
"message": "Access denied: missing permission 'ai-insights-v2:analytics:read'"
}{
"error": "TooManyRequests",
"message": "Too many requests for 'Insights'",
"details": {
"name": "Insights",
"ok": false,
"retryAfter": 42.5,
"limit": 100,
"window": 60,
"remaining": 0
}
}Authorizations
BearerAuthOrgApiKeyAuth
Query Parameters
Response
Memory analytics.
Was this page helpful?