---
title: "Get GraphRAG statistics"
method: GET
path: "/vault/{id}/graphrag/stats"
tags: ["Vaults"]
---

# Get GraphRAG statistics

`GET /vault/{id}/graphrag/stats`

Retrieve GraphRAG (Graph Retrieval-Augmented Generation) statistics for a specific vault. This includes metrics about the knowledge graph structure, entity relationships, and processing status that enable advanced semantic search and AI-powered document analysis.

## Path parameters

- `id` string, required

## Response `200`

GraphRAG statistics retrieved successfully

- object
  - `entities` integer — Total number of entities extracted from documents
  - `relationships` integer — Total number of relationships between entities
  - `communities` integer — Number of entity communities identified
  - `documents` integer — Number of processed documents
  - `lastProcessed` string, date-time — Timestamp of last GraphRAG processing
  - `status` 'processing' | 'completed' | 'error' — Current processing status

## Other responses

- `400` — Bad request - Vault ID is required
- `401` — Unauthorized - Invalid API key
- `404` — Vault not found or access denied

---

[API](https://skmtc.net/casemark/apis/case-dev-api.md) · [All operations](https://skmtc.net/casemark/apis/case-dev-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/casemark/case-dev-api/versions/5b7e64e6d6f9/schema)
