> ## Documentation Index
> Fetch the complete documentation index at: https://docs.trynia.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Get sources summary

> Get counts and recent names for all source types. Designed for quick inventory checks.



## OpenAPI

````yaml /openapi-docs.yaml get /sources-summary
openapi: 3.1.0
info:
  title: Nia AI API
  version: 1.1.0
  description: >-
    Nia AI API provides a single, consistent `sources` resource for all indexed
    content.


    ## Core Resources


    **Sources** (`/sources`)

    - `repository`

    - `documentation`

    - `research_paper`

    - `huggingface_dataset`

    - `local_folder`


    **Search** (`/search`)

    - `mode`: query | web | deep | universal


    Legacy endpoints are deprecated and will be removed in a future version.
    Prefer `/sources` and `/search` for new integrations.
servers:
  - url: https://apigcp.trynia.ai/v2
    description: Production API
  - url: http://localhost:8000/v2
    description: Local development
security:
  - ApiKeyAuth: []
tags:
  - name: Auth
    description: API-first signup, login, and API key bootstrapping
  - name: Sources
    description: >-
      Unified source management (repositories, documentation, papers, datasets,
      local folders)
  - name: Search
    description: Unified search endpoint with mode discriminator
  - name: Context Sharing
    description: Cross-agent context management and retrieval
  - name: Categories
    description: Category management for organizing indexed sources
  - name: GitHub Search
    description: Live GitHub search and repository exploration
  - name: Advisor
    description: Context-aware code advisor against indexed documentation
  - name: Dependencies
    description: Dependency analysis and documentation subscription
  - name: Usage
    description: Usage tracking and bulk operations
paths:
  /sources-summary:
    get:
      tags:
        - Usage
      summary: Get sources summary
      description: >-
        Get counts and recent names for all source types. Designed for quick
        inventory checks.
      operationId: get_sources_summary_v2_sources_summary_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SourcesSummaryResponse'
components:
  schemas:
    SourcesSummaryResponse:
      properties:
        repositories:
          $ref: '#/components/schemas/SourceTypeSummary'
        documentation:
          $ref: '#/components/schemas/SourceTypeSummary'
        research_papers:
          $ref: '#/components/schemas/SourceTypeSummary'
        huggingface_datasets:
          $ref: '#/components/schemas/SourceTypeSummary'
        local_folders:
          $ref: '#/components/schemas/SourceTypeSummary'
        slack:
          $ref: '#/components/schemas/SourceTypeSummary'
        google_drive:
          $ref: '#/components/schemas/SourceTypeSummary'
        x:
          $ref: '#/components/schemas/SourceTypeSummary'
      type: object
      required:
        - repositories
        - documentation
        - research_papers
        - huggingface_datasets
        - local_folders
        - slack
        - google_drive
        - x
      title: SourcesSummaryResponse
    SourceTypeSummary:
      properties:
        count:
          type: integer
          title: Count
          description: Total number of sources of this type
          default: 0
        names:
          items:
            type: string
          type: array
          title: Names
          description: Names of most recent sources (up to 5)
      type: object
      title: SourceTypeSummary
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: API key must be provided in the Authorization header

````