---
title: "Get context graph"
method: GET
path: "/context/graph"
tags: ["Context - Graph"]
---

# Get context graph

`GET /context/graph`

Get the knowledge graph of the workspace context repository: nodes for markdown files and edges for links between them.

## Response `200`

Successful response

- object
  - `graph` object, required
    - `nodes` object[], required
      - `id` string, required
      - `title` string, required
      - `summary` string
      - `cluster` string, required
    - `edges` object[], required
      - `source` string, required
      - `target` string, required
      - `origin` 'frontmatter' | 'wikilink' | 'mdlink', required
    - `broken` object[], required
      - `source` string, required
      - `target` string, required
      - `origin` 'frontmatter' | 'wikilink' | 'mdlink', required
    - `computedAt` string, required

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `404` — Not found
- `500` — Internal server error

---

[API](https://skmtc.net/getcargo/apis/cargo-api.md) · [All operations](https://skmtc.net/getcargo/apis/cargo-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/getcargo/cargo-api/revisions/1d5a19e01d83/schema)
