---
title: "Get Graph Visualization"
method: GET
path: "/graph/{name}/visualization"
tags: ["Graph"]
---

# Get Graph Visualization

`GET /graph/{name}/visualization`

Get graph visualization data.

This endpoint retrieves the nodes and links data needed for graph visualization.
It works with both local and API-based graph services.

## Path parameters

- `name` string, required

## Query parameters

- `folder_name` union
  - string
  - string[]
- `folder_depth` integer, nullable — Folder scope depth: 0/None exact, -1 all descendants, n>0 include descendants up to n levels.
- `end_user_id` string, nullable

## Headers

- `authorization` string

## Response `200`

Successful Response

- object

## Other responses

- `422` — Validation Error

## Changes

- **2025-12-06** `e185c542e939` — 1 info
  - added the new optional `query` request parameter `folder_depth`

[Change history](https://skmtc.dev/morphik-org/apis/fastapi/changes/graph/:name/visualization/get.md)

---

[API](https://skmtc.dev/morphik-org/apis/fastapi.md) · [All operations](https://skmtc.dev/morphik-org/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/morphik-org/fastapi/revisions/40c31e73d375/schema)
