---
title: "Get graph schema"
method: GET
path: "/api/schema"
---

# Get graph schema

`GET /api/schema`

Returns the full schema of the graph database including node types with
property keys/types, edge types with source/target labels, indexes,
constraints, and basic statistics.

## Response `200`

Graph schema

- SchemaResponse
  - `node_types` object[]
    - `label` string
    - `count` integer
    - `properties` object
  - `edge_types` object[]
    - `type` string
    - `count` integer
    - `source_labels` string[]
    - `target_labels` string[]
    - `properties` object
  - `indexes` object[]
    - `label` string
    - `property` string
    - `type` string
  - `constraints` object[]
    - `label` string
    - `property` string
    - `type` string
  - `statistics` object
    - `total_nodes` integer
    - `total_edges` integer
    - `avg_out_degree` number

## Changes

- **2026-03-09** `412861a58f2c` — 1 info
  - endpoint added
- **2026-02-21** `5b9d1ed71ed1` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/samyama-ai/apis/samyama-graph-database-api/changes/api/schema/get.md)

---

[API](https://skmtc.dev/samyama-ai/apis/samyama-graph-database-api.md) · [All operations](https://skmtc.dev/samyama-ai/apis/samyama-graph-database-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/samyama-ai/samyama-graph-database-api/revisions/7f3d37bbc2cd/schema)
