---
title: "Get report ontology graph"
description: "Returns the report's bounded ontology graph: report-local nodes, edges, incident anchors, citations, and counts. Reports created before graph extraction return `graph: null` with zero counts. Requires the `reports:read` scope. Accepts a bearer API key or [x402 payment](https://y2.dev/docs/api/x402). Without a key, read the `402` challenge in `PAYMENT-REQUIRED`. Retry with `PAYMENT-SIGNATURE`."
canonical: https://y2.dev/docs/api/reference/reports/getReportGraph/
---

Endpoint Reference[Reports](https://y2.dev/docs/api/reference/reports)

# Get report ontology graph

Returns the report's bounded ontology graph: report-local nodes, edges, incident anchors, citations, and counts. Reports created before graph extraction return \`graph: null\` with zero counts. Requires the \`reports:read\` scope. Accepts a bearer API key or \[x402 payment]\(https\://y2.dev/docs/api/x402). Without a key, read the \`402\` challenge in \`PAYMENT-REQUIRED\`. Retry with \`PAYMENT-SIGNATURE\`.

`GET https://api.y2.dev/api/v1/reports/{reportId}/graph`

- Operation ID: `getReportGraph`
- Required scopes: `reports:read`
- Accepts x402 pay-per-request payment
- Contract: https://y2.dev/openapi.json

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `reportId` | path | string | Yes | Stable Y2 public report ID (`rpt_...`). Legacy IDs are accepted during migration. |

## Responses

| Status | Description | Body |
| --- | --- | --- |
| 200 | Report ontology graph snapshot | `ReportGraphResponse` |
| 400 | Invalid request parameters |  |
| 401 | Missing or invalid API key |  |
| 402 | x402 payment required | `X402PaymentRequiredResponse` |
| 403 | Insufficient permissions or access denied |  |
| 404 | Resource not found |  |
| 429 | Rate limit exceeded (per-key or per-account aggregate) |  |
| 500 | Internal server error |  |

### 200 response fields

| Field | Type | Description |
| --- | --- | --- |
| `data` | object |  |
| `data.reportId` | string |  |
| `data.profileId` | string |  |
| `data.reportGeneratedAt` | integer (int64) |  |
| `data.reportGeneratedAtISO` | string (date-time) |  |
| `data.topic` | string or null |  |
| `data.graph` | `PublicReportGraph` or null |  |
| `meta` | object |  |
| `meta.nodeCount` | integer |  |
| `meta.edgeCount` | integer |  |
| `meta.incidentCount` | integer |  |
