---
title: "Get full POT knowledge graph for visualization"
method: GET
path: "/pots/{pot_id}/graph"
tags: ["pots"]
---

# Get full POT knowledge graph for visualization

`GET /pots/{pot_id}/graph`

Get the complete knowledge graph of a POT for visualization.

Returns all facts (as nodes), edges, and documents in a single response.
Optimized for graph rendering in KB2B Knowledge Graph.

M19: KB2B v1.0 Enablers.

## Path parameters

- `pot_id` string, uuid, required

## Query parameters

- `max_nodes` integer — Max nodes to return
- `include_content` boolean — Include full fact content (increases payload)

## Response `200`

Graph retrieved successfully

- PotGraphResponse — Full graph response for GET /pots/{pot_id}/graph.
  - `pot_id` string, uuid, required
  - `pot_name` string, required
  - `nodes` GraphNode[], required
    - `id` string, required — Fact UUID
    - `title` string, nullable — Short label for graph node (max 80 chars)
    - `content` string, nullable — Full fact content (only if include_content=true)
    - `pot_score` number, required
    - `original_pot_score` number, nullable — Pre-propagation score (null if not propagated)
    - `level` string, required
    - `node_type` string, required — constitution | extracted | inferred | manual
    - `document_id` string, nullable — Source document UUID (null for constitution/manual)
    - `provenance_type` string, nullable — extracted | inferred | manual | imported
    - `tags` string[]
    - `created_at` string, date-time, nullable
  - `edges` GraphEdge[], required
    - `id` string, required
    - `from_id` string, required
    - `to_id` string, required
    - `type` string, required
    - `weight` number, required
    - `confidence` number
    - `rationale` string
    - `created_at` string, date-time, nullable
  - `documents` GraphDocument[], required
    - `id` string, required
    - `filename` string, required
    - `type` string, required
    - `facts_count` integer
    - `created_at` string, date-time, nullable
  - `stats` GraphStats, required — Aggregate stats for the POT graph.
    - `total_nodes` integer
    - `total_edges` integer
    - `by_level` object
    - `by_edge_type` object
    - `contradictions_count` integer
    - `avg_pot_score` number
    - `propagation_applied` boolean

## Other responses

- `404` — POT not found
- `422` — Validation Error

---

[API](https://skmtc.dev/scipot/apis/scipot-core-api.md) · [All operations](https://skmtc.dev/scipot/apis/scipot-core-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/scipot/scipot-core-api/revisions/e8712e9ffeae/schema)
