MemorySync
API Reference

Knowledge Stats

Read counts and coverage for the stored knowledge base.

Endpoint

GET/memory/knowledge/stats
200 OK

Takes no parameters. Scope comes from the API key, project header and end-user header.

Read the stats

import os
from memorysync import MemorySyncClient
client = MemorySyncClient(
api_key=os.environ["MEMORYSYNC_API_KEY"],
base_url="https://api.memorysync.io",
project_id=os.environ["MEMORYSYNC_PROJECT_ID"],
end_user_id="usr_7f3a9c2e",
)
stats = client.knowledge_stats()

Result handling

Returns totals and coverage indicators for the scoped set. Useful for a dashboard tile or a health check; not a billing source — use the billing API for usage against a plan.

Errors and next action

For 5xx, show the previous value rather than zero: zero and unavailable look identical in a chart and mean opposite things.

Safety notes