Sambodh IAS Documents API

The documents API from Sambodh IAS — 8 operation(s) for documents.

GitHub OpenAPI

Operations 8

GET /api/documents/topics List Topics #
GET /api/documents/syllabus-topics List Syllabus Topics #
GET /api/documents/books List Books #
GET /api/documents/subtopics List Subtopics #
POST /api/documents/index Trigger Indexing #
GET /api/documents List Documents #
GET /api/documents/{document_id} Get Document #
GET /api/documents/coverage/{subject} Get Coverage #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/sambodh-ias-in:sambodh-ias-in-documents-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

sambodh-ias-in-documents-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SambodhIAS v2 Documents API
  version: 2.0.0
tags:
- name: Documents
paths:
  /api/documents/topics:
    get:
      tags:
      - Documents
      summary: List Topics
      description: 'Auto-discover subjects and topics from indexed documents.

        Returns a tree structure for the assessment creation wizard.'
      operationId: list_topics_api_documents_topics_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /api/documents/syllabus-topics:
    get:
      tags:
      - Documents
      summary: List Syllabus Topics
      description: 'The closed topic list for a subject (app/core/syllabus_topics.py) with

        live counts: serving pool questions and in-syllabus content chunks that

        carry each slug. Topics with no questions are left out, so the wizard

        never offers an empty set. The counts are the tags the topic tagging loop

        writes, so they grow while a backfill is running.'
      operationId: list_syllabus_topics_api_documents_syllabus_topics_get
      parameters:
      - name: subject
        in: query
        required: true
        schema:
          type: string
          title: Subject
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/documents/books:
    get:
      tags:
      - Documents
      summary: List Books
      description: Return indexed books (documents) for book-level filtering in assessment configure.
      operationId: list_books_api_documents_books_get
      parameters:
      - name: subject
        in: query
        required: true
        schema:
          type: string
          title: Subject
      - name: topic
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Topic
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/documents/subtopics:
    get:
      tags:
      - Documents
      summary: List Subtopics
      description: '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.'
      operationId: list_subtopics_api_documents_subtopics_get
      parameters:
      - name: subject
        in: query
        required: true
        schema:
          type: string
          title: Subject
      - name: topic
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Topic
      - name: document_id
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            format: uuid
          - type: 'null'
          title: Document Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/documents/index:
    post:
      tags:
      - Documents
      summary: Trigger Indexing
      description: 'Trigger indexing of all documents in the data/ folder.

        Skips already-indexed documents with unchanged file hash.'
      operationId: trigger_indexing_api_documents_index_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /api/documents:
    get:
      tags:
      - Documents
      summary: List Documents
      description: List all indexed documents, optionally filtered by subject/topic.
      operationId: list_documents_api_documents_get
      parameters:
      - name: subject
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Subject
      - name: topic
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Topic
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/documents/{document_id}:
    get:
      tags:
      - Documents
      summary: Get Document
      description: Get document detail with its chunks.
      operationId: get_document_api_documents__document_id__get
      parameters:
      - name: document_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Document Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/documents/coverage/{subject}:
    get:
      tags:
      - Documents
      summary: Get Coverage
      description: 'Get the user''s coverage data for a subject (and optionally topic).

        Returns per-document, per-page coverage with performance scores.'
      operationId: get_coverage_api_documents_coverage__subject__get
      parameters:
      - name: subject
        in: path
        required: true
        schema:
          type: string
          title: Subject
      - name: topic
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Topic
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError