---
title: "List Subtopics"
method: GET
path: "/api/documents/subtopics"
tags: ["documents"]
---

# List Subtopics

`GET /api/documents/subtopics`

## Request

- Base URL: `https://api.sambodh-ias.in` (the document declares no server; this is the origin it was published from)
- URL: `https://api.sambodh-ias.in/api/documents/subtopics`
- Auth: none declared

Return the browsable subtopic glossary for a subject/topic.
Always derives from chapter names in heading_hierarchy (level 1 then 0),
with a section_title fallback when hierarchy is sparse.
The Subtopic table is intentionally skipped — it often contains low-quality
data (sentence fragments from section_titles) rather than clean chapter names.

## Query parameters

- `subject` string, required
- `topic` string, nullable
- `document_id` string, uuid, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/sambodh-ias/apis/sambodhias-v2.md) · [All operations](https://skmtc.dev/sambodh-ias/apis/sambodhias-v2/llms.txt) · [OpenAPI document](https://skmtc.dev/sambodh-ias/apis/sambodhias-v2/revisions/258843d1f806?raw)
