> ## 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.

# Upload manifest file and subscribe to dependencies

> Upload a package manifest file and subscribe to documentation for all dependencies.



## OpenAPI

````yaml /openapi-docs.yaml post /dependencies/upload
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:
  /dependencies/upload:
    post:
      tags:
        - Dependencies
      summary: Upload manifest file and subscribe to dependencies
      description: >-
        Upload a package manifest file and subscribe to documentation for all
        dependencies.
      operationId: upload_and_subscribe_v2_dependencies_upload_post
      requestBody:
        content:
          multipart/form-data:
            schema:
              $ref: >-
                #/components/schemas/Body_upload_and_subscribe_v2_dependencies_upload_post
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/routes__v2__dependencies__SubscribeResponse
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    Body_upload_and_subscribe_v2_dependencies_upload_post:
      properties:
        file:
          type: string
          format: binary
          title: File
          description: Manifest file to upload
        include_dev_dependencies:
          type: boolean
          title: Include Dev Dependencies
          description: Include dev dependencies
          default: false
        max_new_indexes:
          type: integer
          maximum: 500
          minimum: 0
          title: Max New Indexes
          description: Max new indexes to start
          default: 150
      type: object
      required:
        - file
      title: Body_upload_and_subscribe_v2_dependencies_upload_post
    routes__v2__dependencies__SubscribeResponse:
      properties:
        manifest_type:
          type: string
          title: Manifest Type
        total_dependencies:
          type: integer
          title: Total Dependencies
        results:
          $ref: '#/components/schemas/SubscriptionResults'
        summary:
          $ref: '#/components/schemas/SubscriptionSummary'
      type: object
      required:
        - manifest_type
        - total_dependencies
        - results
        - summary
      title: SubscribeResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    SubscriptionResults:
      properties:
        instant_access:
          items:
            $ref: '#/components/schemas/SubscriptionResultItem'
          type: array
          title: Instant Access
        wait_for_indexing:
          items:
            $ref: '#/components/schemas/SubscriptionResultItem'
          type: array
          title: Wait For Indexing
        started_indexing:
          items:
            $ref: '#/components/schemas/SubscriptionResultItem'
          type: array
          title: Started Indexing
        not_found:
          items:
            $ref: '#/components/schemas/SubscriptionResultItem'
          type: array
          title: Not Found
        errors:
          items:
            $ref: '#/components/schemas/SubscriptionResultItem'
          type: array
          title: Errors
        skipped:
          items:
            $ref: '#/components/schemas/SubscriptionResultItem'
          type: array
          title: Skipped
      type: object
      required:
        - instant_access
        - wait_for_indexing
        - started_indexing
        - not_found
        - errors
        - skipped
      title: SubscriptionResults
    SubscriptionSummary:
      properties:
        instant_access:
          type: integer
          title: Instant Access
        wait_for_indexing:
          type: integer
          title: Wait For Indexing
        started_indexing:
          type: integer
          title: Started Indexing
        not_found:
          type: integer
          title: Not Found
        errors:
          type: integer
          title: Errors
        skipped:
          type: integer
          title: Skipped
      type: object
      required:
        - instant_access
        - wait_for_indexing
        - started_indexing
        - not_found
        - errors
        - skipped
      title: SubscriptionSummary
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    SubscriptionResultItem:
      properties:
        name:
          type: string
          title: Name
        action:
          type: string
          title: Action
        docs_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Docs Url
        global_source_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Global Source Id
        namespace:
          anyOf:
            - type: string
            - type: 'null'
          title: Namespace
        message:
          type: string
          title: Message
      type: object
      required:
        - name
        - action
        - docs_url
        - global_source_id
        - namespace
        - message
      title: SubscriptionResultItem
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: API key must be provided in the Authorization header

````