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

# List file types the configured parsers can ingest

> Advertise the union of media types and filename extensions every
registered parser accepts.

Used by the front-end to populate the document picker's ``accept``
attribute and to reject drag-dropped files whose extension lies
outside the supported set before the upload starts.  Routing on
upload still goes through the media type — this endpoint is a
capability hint, not authoritative dispatch.

Args:
    _ (`str`):
        Injected authenticated user ID; only used to gate the
        endpoint behind authentication.
    parsers (`list[ParserBase] | dict[str, ParserBase]`):
        Injected parser registry — the same value the index worker
        uses to dispatch uploads.

Returns:
    `ListSupportedContentTypesResponse`:
        Deduplicated, sorted unions of ``media_types`` and
        ``extensions``.



## OpenAPI

````yaml /versions/2.0.4dev/en/deploy/openapi.json get /knowledge_bases/supported_content_types
openapi: 3.1.0
info:
  title: AgentScope
  version: 2.0.3
servers: []
security: []
paths:
  /knowledge_bases/supported_content_types:
    get:
      tags:
        - knowledge_bases
      summary: List file types the configured parsers can ingest
      description: |-
        Advertise the union of media types and filename extensions every
        registered parser accepts.

        Used by the front-end to populate the document picker's ``accept``
        attribute and to reject drag-dropped files whose extension lies
        outside the supported set before the upload starts.  Routing on
        upload still goes through the media type — this endpoint is a
        capability hint, not authoritative dispatch.

        Args:
            _ (`str`):
                Injected authenticated user ID; only used to gate the
                endpoint behind authentication.
            parsers (`list[ParserBase] | dict[str, ParserBase]`):
                Injected parser registry — the same value the index worker
                uses to dispatch uploads.

        Returns:
            `ListSupportedContentTypesResponse`:
                Deduplicated, sorted unions of ``media_types`` and
                ``extensions``.
      operationId: list_supported_content_types_knowledge_bases_supported_content_types_get
      parameters:
        - name: x-user-id
          in: header
          required: true
          schema:
            type: string
            description: >-
              Caller's user ID. Temporary header-based identity; will be
              replaced by JWT auth.
            title: X-User-Id
          description: >-
            Caller's user ID. Temporary header-based identity; will be replaced
            by JWT auth.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListSupportedContentTypesResponse'
        '404':
          description: Not found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ListSupportedContentTypesResponse:
      properties:
        media_types:
          items:
            type: string
          type: array
          title: Media Types
          description: >-
            Union of IANA media types every registered parser claims to handle. 
            Deduplicated and sorted.
        extensions:
          items:
            type: string
          type: array
          title: Extensions
          description: >-
            Filename extensions (each starting with `.`) every registered parser
            claims to handle.  Deduplicated and sorted.  Derived from
            `mimetypes` by the base parser; subclasses may override the default.
      type: object
      required:
        - media_types
        - extensions
      title: ListSupportedContentTypesResponse
      description: |-
        Response body advertising the parser-supported upload types.

        Aggregated across every parser registered on the app — the union of
        each parser's :attr:`supported_media_types` and
        :meth:`supported_extensions`.  The front-end uses this to populate
        ``<input accept>`` and to reject unsupported drops on the client
        before the file leaves the browser.
    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

````