---
title: "Get a condensed app model index for an application's Knowledge Graph"
method: GET
path: "/knowledgeGraph/appModelIndex"
tags: ["KnowledgeGraph"]
---

# Get a condensed app model index for an application's Knowledge Graph

`GET /knowledgeGraph/appModelIndex`

Internal read-only aggregate for agent context injection (not part of the public API): the active Page/Workflow/Feature concepts for one application, each with its linked-test counts by role, plus graph-wide edge counts. Assembled from three Spanner reads so a caller does not need to compose nodes + edges + external refs itself. Node summaries and names are agent-authored from customer test content — the same trust class as every other Knowledge Graph read.

## Query parameters

- `workspace_id` string, required
- `application_id` string, required

## Response `200`

The application's app model index

- AppModelIndexResponse — Condensed app model index for one application: its active Page/Workflow/Feature concepts with per-concept test-linkage counts, plus graph-wide edge counts.
  - `nodes` AppModelIndexNode[]
    - `node_id` string — The node's identifier
    - `label` 'Page' | 'Workflow' | 'Feature' | 'KnowledgeDoc' | 'Pattern' — Label for a knowledge graph node indicating its concept type
    - `name` string — The name of the concept
    - `summary` string — A short summary of the concept
    - `ref_counts` object — Linked-test counts by relationship (e.g. validates, uses)
  - `edge_counts` object — Edge counts by label across the application's node set
  - `truncated` boolean — True when the node list hit the server's row cap and may be incomplete
  - `last_modeled_at` string, date-time — Latest node updated_at in this application's graph; absent when the graph has no nodes

## Other responses

- `400` — Invalid or missing parameter
- `401` — User not authenticated
- `403` — User not authorized
- `404` — Entity not found
- `default` — Unknown error

## Changes

- **2026-09-03** `f230f5cc86cb` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/mabl/apis/mabl-api/changes/knowledgeGraph/appModelIndex/get.md)

---

[API](https://skmtc.dev/mabl/apis/mabl-api.md) · [All operations](https://skmtc.dev/mabl/apis/mabl-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/mabl/mabl-api/revisions/f230f5cc86cb/schema)
