Get User Memory Statistics
Database and user
Use a registered memory-capable database, such as the SQLite database in the example API server. Supply db_id when several database IDs are available. A table selector requires db_id and selects a configured adapter; it does not create arbitrary storage.
Scoped identity overrides a supplied user_id. JWT user isolation is opt-in; non-admin service-account PAT callers always self-scope. When authorization is enforced, use the appropriate memories:read, memories:write or memories:delete scope.
The full response has both data and meta; the generated example abbreviates that envelope. Each data item describes a visible user's total_memories and last_memory_updated_at.
/user_memory_statsRetrieve paginated statistics about memory usage by user. Provides insights into user engagement and memory distribution across users.
Authorization
HTTPBearer In: header
Query Parameters
Number of user statistics to return per page
20Page number for pagination
1User ID to filter statistics for
Database ID to query statistics from
Table to query statistics from
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl --request GET 'https://example.com/user_memory_stats'{ "data": [ { "user_id": "123", "total_memories": 3, "last_memory_updated_at": "2025-09-01T07:53:17Z" } ]}{ "detail": "string", "error_id": "string", "error_type": "string"}{ "detail": "string", "error_id": "string", "error_type": "string"}{ "detail": "string", "error_id": "string", "error_type": "string"}{ "detail": "string"}{ "detail": "string", "error_id": "string", "error_type": "string"}