---
title: "Get Graph Data"
method: GET
path: "/api/v1/graph/data"
tags: ["graph"]
---

# Get Graph Data

`GET /api/v1/graph/data`

## 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/graph/data`
- Auth: none declared

Get Neural Memory graph data for visualization (context-scoped).

Args:
    context_id: Context ID for scoping (required for proper isolation)
    limit_nodes: Maximum nodes to return (default: 100, max: 500)
    min_weight: Minimum edge weight threshold
    memory_types: Optional list of memory types to include

Returns:
    Graph data with nodes and edges

## Query parameters

- `context_id` string, uuid, required: Context ID (required for isolation)
- `limit_nodes` integer: Maximum number of nodes to return
- `min_weight` number: Minimum edge weight to include
- `memory_types` string[], nullable: Filter by memory types (e.g., code, note)

## Headers

- `authorization` string, nullable

## Response `200`

Successful Response

- GraphDataResponse: Graph data for visualization.
  - `nodes` GraphNode[], required
    - `id` string, required
    - `summary` string, required
    - `type` string, required
    - `importance` number, required
    - `degree` integer, required
    - `created_at` string, nullable
  - `edges` GraphEdge[], required
    - `source` string, required
    - `target` string, required
    - `weight` number, required
    - `type` string, required
    - `created_at` string, nullable
    - `confidence` number, nullable
  - `stats` object, required

## 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)
