> ## 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 reconciliation sources

> Use this endpoint to retrieve all reconciliation sources under a specific context. You can filter the results by source type. The response uses cursor-based pagination.



## OpenAPI

````yaml /en/openapi/v3-current/matcher.yaml get /v1/contexts/{contextId}/sources
openapi: 3.1.0
info:
  title: Matcher APIs
  description: >-
    Complete API reference for the Matcher reconciliation engine, providing
    automated transaction matching between Midaz Ledger and external systems.
  version: v2.1.1
  license:
    name: Elastic License 2.0
    url: https://www.elastic.co/licensing/elastic-license
servers:
  - url: https://matcher.sandbox.lerian.net
security: []
paths:
  /v1/contexts/{contextId}/sources:
    get:
      tags:
        - Configuration Sources
      summary: List reconciliation sources
      description: >-
        Use this endpoint to retrieve all reconciliation sources under a
        specific context. You can filter the results by source type. The
        response uses cursor-based pagination.
      operationId: listSources
      parameters:
        - description: A unique identifier for tracing the request across services.
          in: header
          name: X-Request-Id
          schema:
            type: string
        - description: The unique identifier of the reconciliation context.
          in: path
          name: contextId
          required: true
          schema:
            type: string
        - description: The maximum number of items to include in the response.
          in: query
          name: limit
          schema:
            type: integer
            minimum: 1
            maximum: 200
            default: 20
        - description: The cursor value for retrieving the next page of results.
          in: query
          name: cursor
          schema:
            type: string
        - description: Filter by source type
          in: query
          name: type
          schema:
            type: string
            enum:
              - LEDGER
              - BANK
              - GATEWAY
              - CUSTOM
      responses:
        '200':
          description: List of sources with cursor pagination
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListSourcesResponse'
        '400':
          description: Invalid query parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: The request lacks valid authentication credentials.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: You do not have permission to access this resource.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Context not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - BearerAuth: []
components:
  schemas:
    ListSourcesResponse:
      description: Cursor-paginated list of reconciliation sources
      properties:
        hasMore:
          example: true
          type: boolean
        items:
          description: List of reconciliation sources with field map status
          items:
            $ref: '#/components/schemas/SourceWithFieldMapStatusResponse'
          type: array
        limit:
          example: 20
          maximum: 200
          minimum: 1
          type: integer
        nextCursor:
          example: eyJpZCI6IjEyMyJ9
          type: string
        prevCursor:
          example: eyJpZCI6IjEyMiJ9
          type: string
      type: object
    ErrorResponse:
      description: Standard error response returned by all API endpoints
      type: object
      required:
        - code
        - title
        - message
      properties:
        code:
          type: string
          description: HTTP status code as a string.
          example: '404'
        title:
          type: string
          description: Error type identifier.
          example: not_found
        message:
          type: string
          description: Human-readable error message with details.
          example: context not found
        error:
          type: string
          description: Deprecated. Error message for backward compatibility.
          deprecated: true
        details:
          description: Additional error context as key-value pairs
          additionalProperties: {}
          type: object
    SourceWithFieldMapStatusResponse:
      description: Source with field map availability information
      properties:
        id:
          description: Unique identifier for the source
          example: 019c96a0-108c-7a74-8e31-3789daffe1ed
          type: string
        contextId:
          description: Context ID this source belongs to
          example: 019c96a0-10a0-72d2-9fb0-2b7de8093182
          type: string
        name:
          description: Name of the source
          example: Primary Bank Account
          type: string
        type:
          description: Type of the source
          enum:
            - LEDGER
            - BANK
            - GATEWAY
            - CUSTOM
          example: BANK
          type: string
        config:
          additionalProperties: {}
          description: Source configuration
          type: object
        feeScheduleId:
          description: Fee schedule identifier associated with this source
          example: 019c96a0-2b20-7123-9a1b-2c3d4e5f6a7b
          format: uuid
          type: string
        hasFieldMaps:
          description: Indicates if field maps are configured for this source
          example: true
          type: boolean
        createdAt:
          description: Creation timestamp in RFC3339 format
          example: '2025-01-15T10:30:00.000Z'
          type: string
        updatedAt:
          description: Last update timestamp in RFC3339 format
          example: '2025-01-15T10:30:00.000Z'
          type: string
      type: object
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: 'Bearer token authentication (format: "Bearer {token}")'

````