---
title: "Get Ego Graph"
method: GET
path: "/api/v1/graph/ego/{entity_id}"
tags: ["graph"]
---

# Get Ego Graph

`GET /api/v1/graph/ego/{entity_id}`

## Request

- Base URL: `https://agentavow.com` (the document declares no server; this is the origin it was published from)
- URL: `https://agentavow.com/api/v1/graph/ego/{entity_id}`
- Auth: HTTP bearer

Get the ego graph centered on a specific entity.

Returns the entity, its direct connections (depth=1),
and optionally connections of connections (depth=2-3).

## Path parameters

- `entity_id` string, uuid, required

## Query parameters

- `depth` integer

## Headers

- `x-api-key` string, nullable

## Response `200`

Successful Response

- GraphResponse
  - `nodes` GraphNode[], required
    - `id` string, required
    - `label` string, required
    - `type` string, required
    - `trust_score` number, nullable
    - `is_active` boolean
    - `cluster_id` integer, nullable
    - `avatar_url` string, nullable
  - `edges` GraphEdge[], required
    - `source` string, required
    - `target` string, required
    - `type` string, required
    - `weight` number, nullable
    - `attestation_type` string, nullable
  - `node_count` integer, required
  - `edge_count` integer, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/agentavow/apis/agentavow-api.md) · [All operations](https://skmtc.dev/agentavow/apis/agentavow-api/llms.txt) · [OpenAPI document](https://skmtc.dev/agentavow/apis/agentavow-api/revisions/e1e20476dbfc?raw)
