---
title: "Get Graph"
method: GET
path: "/api/admin/memory/{user_id}/graph"
tags: ["v2", "admin", "admin", "memory"]
---

# Get Graph

`GET /api/admin/memory/{user_id}/graph`

Single-shot graph payload for the visualizer canvas.

Returns nodes + edges in one round-trip so the frontend can hand
the whole thing to a force-directed layout without N+1 fetches.

Defaults to entities + communities (the "what does my memory know
about" view). ``include_episodes=True`` adds the temporal
:Episodic nodes — useful for debugging extraction but noisy for the
typical inspector view.

## Path parameters

- `user_id` string, required — User id or 'me'

## Query parameters

- `node_limit` integer
- `edge_limit` integer
- `include_episodes` boolean
- `include_communities` boolean

## Response `200`

Successful Response

- GraphResponse
  - `user_id` string, required
  - `group_id` string, required
  - `nodes` GraphNode[], required
    - `uuid` string, required
    - `label` string, required
    - `type` string, nullable
    - `name` string, nullable
    - `summary` string, nullable
  - `edges` GraphEdge[], required
    - `uuid` string, required
    - `label` string, required
    - `source` string, required
    - `target` string, required
    - `name` string, nullable
    - `fact` string, nullable
    - `status` string, nullable
    - `scope` string, nullable
  - `truncated` boolean — True when the result was capped by ``node_limit`` / ``edge_limit``. Frontend should surface this so the user knows they're not seeing the full graph.

## Other responses

- `401` — Authentication required
- `422` — Validation Error

---

[API](https://skmtc.net/significant-gravitas/apis/autogpt-agent-server.md) · [All operations](https://skmtc.net/significant-gravitas/apis/autogpt-agent-server/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/significant-gravitas/autogpt-agent-server/versions/382041c7ecb2/schema)
