Brain stats

Aggregate counts for a single brain — pages, sources, connections, and unacknowledged changes. Useful for dashboard headline numbers.

Authentication

x-api-keystring

Your Living Brain API key. Create one from the dashboard; keys are scoped to an organization and carry the role of the member they were issued to.

Path parameters

brainIdstringRequired
Brain id

Headers

x-subject-idstringRequired
Identifies the end user the request is made on behalf of. Brains are owned by a subject, so this determines which brains the caller can see.

Response

pageCountinteger

Active (non-deprecated, non-archived) pages

deprecatedPageCountinteger

Deprecated/stale pages awaiting review or recovery

archivedPageCountinteger
Archived pages
sourceCountinteger
Ingest sources ever pushed to the brain
connectionCountinteger
Connections between active pages
agentCountinteger

Host concept; always 0 here (the host may merge its own count)

estimatedBytesinteger
Approximate size of all page bodies in bytes
bucketCountsmap from strings to doubles
Active page count per bucket
lastActivityAtstring or null

ISO timestamp of the last compile/read activity

Errors

400
Bad Request Error
401
Unauthorized Error
404
Not Found Error