---
title: "Get Context Stats"
method: GET
path: "/api/v1/contexts/{context_id}/stats"
tags: ["contexts"]
---

# Get Context Stats

`GET /api/v1/contexts/{context_id}/stats`

## Request

- Base URL: `https://memory.kagura-ai.com` (the document declares no server; this is the origin it was published from)
- URL: `https://memory.kagura-ai.com/api/v1/contexts/{context_id}/stats`
- Auth: none declared

Get context statistics (memory count, storage).

Args:
    context_id: Context UUID

Returns:
    Context statistics

Raises:
    404: If project not found

## Path parameters

- `context_id` string, uuid, required

## Headers

- `authorization` string, nullable

## Response `200`

Successful Response

- ContextStatsResponse: Response model for context statistics. Single Collection Migration: Stats now from PostgreSQL (memory_count).
  - `context_id` string, uuid, required: Context UUID
  - `context_name` string, required: Context name
  - `memory_count` integer, required: Number of memories in context
  - `status` string, required: Context status

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/kagura-ai/apis/kagura-memory-cloud.md) · [All operations](https://skmtc.dev/kagura-ai/apis/kagura-memory-cloud/llms.txt) · [OpenAPI document](https://skmtc.dev/kagura-ai/apis/kagura-memory-cloud/revisions/09f17f5ada29?raw)
