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

# List Data Sources

> Use this endpoint to retrieve a complete list of data sources connected to the plugin, including all information stored in the database.



## OpenAPI

````yaml /en/openapi/v3-current/reporter.yaml get /v1/data-sources
openapi: 3.1.0
info:
  title: Reporter
  description: ''
  version: 1.2.0
servers:
  - url: https://reporter.sandbox.lerian.net
security: []
tags: []
paths:
  /v1/data-sources:
    get:
      tags:
        - Database Mapping API
      summary: List Data Sources
      description: >-
        Use this endpoint to retrieve a complete list of data sources connected
        to the plugin, including all information stored in the database.
      parameters:
        - $ref: '#/components/parameters/Authorization'
        - $ref: '#/components/parameters/XOrganizationId'
      responses:
        '200':
          description: >-
            If the result is successful, you will receive a list with all data
            sources.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DatabaseFilters2'
              example:
                - data:
                    - id: midaz_onboarding
                      externalName: onboarding
                      type: postgresql
                    - id: midaz_transaction
                      externalName: transaction
                      type: postgresql
                    - id: fees
                      externalName: fees
                      type: mongodb
          headers: {}
        '400':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                Error0018:
                  $ref: '#/components/examples/Error0018'
                Error0024:
                  $ref: '#/components/examples/Error0024'
                Error0025:
                  $ref: '#/components/examples/Error0025'
          headers: {}
      security: []
components:
  parameters:
    Authorization:
      name: Authorization
      in: header
      description: >-
        The authorization token in the 'Bearer <token>' format.  


        **Important:** This header is required if your environment has Access
        Manager enabled. For more information, refer to the [Access
        Manager](/en/access-manager) documentation.
      required: false
      schema:
        type: string
    XOrganizationId:
      name: X-Organization-id
      in: header
      description: The unique identifier of the Organization associated with the request.
      required: true
      example: 019c96a0-0a98-7287-9a31-786e0809c769
      schema:
        type: string
  schemas:
    DatabaseFilters2:
      type: object
      description: Information about the data sources.
      required:
        - data
      properties:
        data:
          type: array
          description: List of data sources currently available in the system.
          items:
            type: object
            required:
              - id
              - externalName
              - type
            properties:
              id:
                type: string
                description: >-
                  Unique internal identifier of the data source, used across API
                  operations.
              externalName:
                type: string
                description: >-
                  Name of the database or collection defined in the
                  infrastructure setup.
              type:
                type: string
                description: >-
                  Type of database management system (e.g., PostgreSQL, MongoDB,
                  MySQL).
    Error:
      type: object
      properties:
        code:
          type: string
          description: A unique, stable identifier for the error.
        title:
          type: string
          description: A brief summary of the issue.
        message:
          type: string
          description: Detailed guidance for resolving the error.
      description: Response message error.
      required:
        - code
        - title
        - message
  examples:
    Error0018:
      summary: Internal Server Error
      value:
        code: TPL-0018
        title: Internal Server Error
        message: >-
          The server encountered an unexpected error. Please try again later or
          contact support.
    Error0024:
      summary: Pagination Limit Exceeded
      value:
        code: TPL-0024
        title: Pagination Limit Exceeded
        message: >-
          The pagination limit exceeds the maximum allowed of %v items per page.
          Please verify the limit and try again.
    Error0025:
      summary: Invalid Sort Order
      value:
        code: TPL-0025
        title: Invalid Sort Order
        message: >-
          The 'sort_order' field must be 'asc' or 'desc'. Please provide a valid
          sort order and try again.

````