---
title: "Get full detail for one knowledge-graph node."
method: GET
path: "/graph/{collection_id}/node"
tags: ["GraphRAG"]
---

# Get full detail for one knowledge-graph node.

`GET /graph/{collection_id}/node`

## Request

- Base URL: `https://h2ogpte.genai.h2o.ai/api/v1`
- URL: `https://h2ogpte.genai.h2o.ai/api/v1/graph/{collection_id}/node`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/h2o/apis/h2ogpte-rest-api/docs/graph/:collection_id/node/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns a node's properties, its incident edges, and the source
chunks (text and origin filename) that produced it, for the graph
viewer's detail panel. Source chunks are the graph's own provenance
records captured at build time.

## Path parameters

- `collection_id` string, uuid, required

## Query parameters

- `name` string, required

## Response `200`

Successful operation

- KnowledgeGraphNodeDetail: Full detail for one knowledge-graph node (viewer detail panel).
  - `node` KnowledgeGraphVizNode, required: One knowledge-graph node in the visualizer contract (issue
    - `id` string, required: The entity name -- the graph's stable primary key for the node, and the address a future edit API mutates.
    - `entity_type` string: Extracted entity type (e.g. organization, person). Empty if unknown.
    - `description` string: LLM-extracted description of the entity, as newline-joined text. The graph store keeps one fragment per contributing source chunk; description_parts exposes them individually.
    - `description_parts` string[]: The entity's description fragments, one per contributing source chunk (the store's internal separator is not exposed).
    - `source_chunk_count` integer: How many source chunks contributed to this node.
    - `file_paths` string[]: Deduplicated source document filenames that contributed to this node.
    - `created_at` unknown
  - `edges` KnowledgeGraphVizEdge[], required: All edges incident to this node.
    - `id` string: Render key (order-normalized "src-tgt").
    - `source` string, required: Entity name of one endpoint.
    - `target` string, required: Entity name of the other endpoint.
    - `description` string: LLM-extracted description of the relationship, as newline-joined text. See description_parts for the per-chunk fragments.
    - `description_parts` string[]: The relationship's description fragments, one per contributing source chunk.
    - `keywords` string: Relationship keywords captured at extraction.
    - `weight` number, double, nullable: Relationship strength assigned at extraction.
    - `source_chunk_count` integer: How many source chunks contributed to this edge.
  - `source_chunks` KnowledgeGraphSourceChunk[], required: Source chunks that produced this node (capped server-side).
    - `id` string, required: The graph's internal chunk id.
    - `content` string, required: Chunk text (server-truncated for preview).
    - `content_truncated` boolean: True when content was truncated to the preview cap.
    - `file_path` string: Source document filename the chunk came from.

## Other responses

- `401`: Unauthorized - Invalid or missing API key
- `403`: Forbidden
- `404`: No knowledge graph exists for this collection, or the node was not found.
- `default`: Unexpected error

---

[API](https://skmtc.dev/h2o/apis/h2ogpte-rest-api.md) - [All operations](https://skmtc.dev/h2o/apis/h2ogpte-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/h2o/apis/h2ogpte-rest-api/revisions/a82a117320f4?raw)
