---
title: "Get Graphiti-backed topology for agent Scenes"
method: GET
path: "/api/agent/topology"
tags: ["Agent"]
---

# Get Graphiti-backed topology for agent Scenes

`GET /api/agent/topology`

## Query parameters

- `query` string
- `maxNodes` integer
- `maxEdges` integer

## Headers

- `X-Grafana-Org-Id` string

## Response `200`

Topology graph

- AgentTopology
  - `enabled` boolean, required
  - `source` string, required
  - `nodes` TopologyNode[], required
    - `id` string, required
    - `label` string, required
    - `type` string, required
  - `edges` TopologyEdge[], required
    - `id` string, required
    - `source` string, required
    - `target` string, required
    - `label` string
  - `rawFactCount` integer
  - `warnings` string[]

---

[API](https://skmtc.net/consensys/apis/ask-o11y-ai-powered-observability-assistant-api.md) · [All operations](https://skmtc.net/consensys/apis/ask-o11y-ai-powered-observability-assistant-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/consensys/ask-o11y-ai-powered-observability-assistant-api/versions/3ccc03eccaef/schema)
