Get Community Subgraph
Return the actual subgraph for a community.
Cross-space; reads the global graph regardless of active space lens (Louvain ids are global). Returns the entities in this community plus their RELATES_TO edges to each other, and optionally the highest-mentioned memories that touch any of these entities, so the Library wiki community panel can render the cluster's true shape — not a 30-node live-preview sample.
Output shape matches GraphData (nodes carry node_type and
metadata; edges carry edge_type) so the same MiniGraph
component used in the Feed Timeline can render it without an
extra adapter.
Path Parameters
community_id*Community Id
Query Parameters
max_entities?Max Entities
include_top_memories?Include Top Memories
Response Body
application/json
application/json
curl -X GET "https://example.com/library/community/0/subgraph"null{ "detail": [ { "loc": [ "string" ], "msg": "string", "type": "string", "input": null, "ctx": {} } ]}