Return distribution of memory origins, optionally filtered and grouped.
Requires authentication and operates on user-scoped data.
Query Parameters
prefix?|
Filter by origin prefix
group_by?Group By
Group by: origin, prefix, or tier
Response Body
application/json
application/json
curl -X GET "https://example.com/memory/analytics/origins"null{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}Get Ontology Type
Resolve a single type by iri/qid/name (follows supersede/merge redirects). 404 if absent. Enriches with `instance_count` — the number of `(:Entity)-[:INSTANCE_OF]->` this type — via `OntologyService.count_type_instances` (ONTO-CRUD-1 follow-up). The count is best-effort enrichment: a failure logs a WARNING and leaves it null rather than sinking the type read (null means "not computed", never a fabricated 0).
Get Pack Audit
Full append-only audit trail for a pack (oldest-first), optionally version-scoped.