GraphAnalytics
GraphAnalytics
Section titled “GraphAnalytics”Perform analytics on the graph
Endpoint: /api/graph/graphanalytics
Tags: Graph
API Details
GET /api/graph/graphanalytics
Request
Section titled “Request”schema: z.object({ tenantId: Str({ description: "ID of the tenant" }), analytics: z.object({ type: z.enum([ "centrality", "community_detection", "shortest_path", "connected_components", "degree_distribution", "entity_count_by_type", "relationship_count_by_type" ]), parameters: z.record(z.any()).optional(), }), }),Responses
Section titled “Responses”Status Code: 200
Section titled “Status Code: 200”Returns the analytics results
schema: z.object({ success: Bool(), results: z.any(), }),Status Code: 400
Section titled “Status Code: 400”Bad request
schema: z.object({ success: Bool(), error: Str(), }),Status Code: 401
Section titled “Status Code: 401”Unauthorized
schema: z.object({ success: Bool(), error: Str(), }),