Skip to main content
GET
Returns row counts for a database: one for the knowledge store (data.knowledge_collection) and one for memories (data.memory_collection), each summed across every collection in the database.

Behavior notes

row_count is chunks, not sources. One ingested document typically becomes many chunks (e.g., a 30-page PDF can produce 100+ rows). To count distinct sources, use List Documents with page_size=1 and read pagination.total.
  • Both stores always report: even if you’ve only ingested knowledge (or only memories), both counts are returned. An empty store reports row_count: 0.
  • Stats are eventually consistent: immediately after ingestion or deletion, counts may lag until background processing completes. Check Ingestion Status for recently ingested IDs before treating counts as final.
Related Resources

Authorizations

Authorization
string
header
required

API key sent as a Bearer token: "Bearer prefix.secret"

Query Parameters

database
string
required

Database identifier

Example:

"acme_corp"

Response

OK

data
object
Example:
error
object | null

Null on success; an object with code and message on failure.

Example:

null

meta
object
Example:
success
boolean

Whether the request succeeded.

Example:

true