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

> Returns a page of the tenant's file sources. Paginated by page and limit; cursor is refused.



## OpenAPI

````yaml /es/openapi/v3-current/reporter.yaml get /v1/file-sources
openapi: 3.1.0
info:
  contact:
    email: contact@lerian.studio
    name: Lerian Studio
    url: https://lerian.studio
  description: >-
    Reporter generates regulatory, accounting and operational reports from
    templates over your data sources.
  license:
    name: Lerian Studio General License
  title: Reporter API
  version: 4.0.0
servers:
  - url: https://reporter.sandbox.lerian.net
security:
  - BearerAuth: []
tags:
  - description: Generated report instances and their lifecycle.
    name: Reports
  - description: Reusable report definitions.
    name: Templates
  - description: Interactive construction of report templates.
    name: Template Builder
  - description: Scheduled report due-date tracking.
    name: Deadlines
  - description: Configured inputs that feed report data.
    name: Data Sources
  - description: Configured file transports that deliver datasets.
    name: File Sources
  - description: Datasets read from file sources and the schedule of their days.
    name: File Datasets
  - description: Aggregated reporting metrics.
    name: Metrics
  - description: Published business event catalog and delivery policies.
    name: Streaming
paths:
  /v1/file-sources:
    get:
      tags:
        - File Sources
      summary: List file sources
      description: >-
        Returns a page of the tenant's file sources. Paginated by page and
        limit; cursor is refused.
      operationId: listFileSources
      parameters:
        - description: >-
            Sort order by creation time, asc or desc; sortOrder is also
            accepted.
          example: desc
          explode: false
          in: query
          name: sort_order
          schema:
            description: >-
              Sort order by creation time, asc or desc; sortOrder is also
              accepted.
            type: string
        - description: Maximum number of items in the page.
          example: 10
          explode: false
          in: query
          name: limit
          schema:
            default: 10
            description: Maximum number of items in the page.
            minimum: 1
            type: integer
        - description: One-based page number.
          example: 1
          explode: false
          in: query
          name: page
          schema:
            default: 1
            description: One-based page number.
            minimum: 1
            type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FileSourceListHumaBody'
          description: OK
        '400':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Detail'
          description: Bad Request
        '401':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Detail'
          description: Unauthorized
        '403':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Detail'
          description: Forbidden
        '500':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Detail'
          description: Internal Server Error
components:
  schemas:
    FileSourceListHumaBody:
      additionalProperties: false
      properties:
        items:
          description: File sources in the requested page.
          items:
            $ref: '#/components/schemas/FileSource'
          type:
            - array
            - 'null'
        limit:
          description: Maximum number of file sources in the page.
          examples:
            - 10
          format: int64
          type: integer
        page:
          description: Current one-based page number.
          examples:
            - 1
          format: int64
          type: integer
        total:
          description: Total number of registered file sources.
          examples:
            - 2
          format: int64
          type: integer
      required:
        - items
        - page
        - limit
        - total
      type: object
    Detail:
      properties:
        code:
          description: >-
            Stable, machine-readable domain error code scoped to the emitting
            service (format: <SERVICE>-NNNN).
          type: string
        detail:
          description: >-
            A human-readable explanation specific to this occurrence of the
            problem.
          examples:
            - Property foo is required but is missing.
          type: string
        errors:
          description: Optional list of individual error details
          examples:
            - - location: body.templateId
                message: expected string to match 'uuid' format
                value: not-a-uuid
          items:
            $ref: '#/components/schemas/ErrorDetail'
          type:
            - array
            - 'null'
        instance:
          description: >-
            A URI reference that identifies the specific occurrence of the
            problem.
          examples:
            - https://example.com/error-log/abc123
          format: uri
          type: string
        status:
          description: HTTP status code
          examples:
            - 400
          format: int64
          type: integer
        title:
          description: >-
            A short, human-readable summary of the problem type. This value
            should not change between occurrences of the error.
          examples:
            - Bad Request
          type: string
        type:
          default: about:blank
          description: A URI reference to human-readable documentation for the error.
          examples:
            - https://example.com/errors/example
          format: uri
          type: string
        upstream:
          $ref: '#/components/schemas/Upstream'
          description: >-
            RFC 9457 extension member: the error a proxied third-party provider
            reported. Absent unless the emitting service explicitly surfaced
            one.
      type: object
    FileSource:
      additionalProperties: false
      properties:
        createdAt:
          description: When the file source was created, in UTC
          examples:
            - '2026-01-01T00:00:00Z'
          format: date-time
          type: string
        ftp:
          $ref: '#/components/schemas/FTP'
          description: FTP settings, set only when kind is ftp
        id:
          description: File source identifier
          examples:
            - 00000000-0000-0000-0000-000000000000
          type: string
        kind:
          description: 'Transport: s3, sftp or ftp'
          examples:
            - sftp
          type: string
        lastConnection:
          $ref: '#/components/schemas/DataSourceConnection'
          description: Outcome of the most recent connection test
        name:
          description: Unique name of the file source within the tenant
          examples:
            - daily-deliveries
          type: string
        s3:
          $ref: '#/components/schemas/S3'
          description: S3 settings, set only when kind is s3
        sftp:
          $ref: '#/components/schemas/SFTP'
          description: SFTP settings, set only when kind is sftp
        updatedAt:
          description: When the file source was last edited, in UTC
          examples:
            - '2026-01-01T00:00:00Z'
          format: date-time
          type: string
      required:
        - id
        - name
        - kind
        - createdAt
        - updatedAt
      type: object
    ErrorDetail:
      properties:
        location:
          description: >-
            Where the error occurred, e.g. 'body.items[3].tags' or
            'path.thing-id'
          examples:
            - body.templateId
          type: string
        message:
          description: Error message text
          examples:
            - expected string to match 'uuid' format
          type: string
        value:
          description: The value at the given location
          examples:
            - not-a-uuid
      type: object
    Upstream:
      additionalProperties: false
      properties:
        code:
          description: The upstream provider's own error code, verbatim.
          examples:
            - E4001
          type: string
        message:
          description: >-
            The upstream provider's own error message, verbatim (bounded, never
            its raw response body).
          examples:
            - account not found at provider
          type: string
      type: object
    FTP:
      additionalProperties: false
      properties:
        caCertPem:
          description: CA that signed the server certificate, when it is not a public one
          examples:
            - '-----BEGIN CERTIFICATE-----'
          type: string
        host:
          description: Server host name
          examples:
            - ftp.example.com
          type: string
        port:
          description: Server port
          examples:
            - 21
          format: int64
          type: integer
        tls:
          description: 'TLS mode: none, explicit or implicit'
          examples:
            - explicit
          type: string
        user:
          description: Login name
          examples:
            - reporter
          type: string
      required:
        - host
        - port
        - user
        - tls
      type: object
    DataSourceConnection:
      additionalProperties: false
      properties:
        checkedAt:
          description: >-
            When the last probe ran, in UTC. Distinct from updatedAt, which
            records configuration edits
          examples:
            - '2026-01-01T00:00:00Z'
          format: date-time
          type: string
        latencyMs:
          description: Full dial+ping round trip of the last probe, in milliseconds
          examples:
            - 42
          format: int64
          type: integer
        message:
          description: >-
            Client-safe classification of the last probe; raw driver errors
            never appear here
          examples:
            - connection successful
          type: string
        status:
          description: 'Outcome of the last probe: connected or failed'
          examples:
            - connected
          type: string
      required:
        - status
        - message
        - latencyMs
        - checkedAt
      type: object
    S3:
      additionalProperties: false
      properties:
        accessKeyId:
          description: Access key id of a static credential
          examples:
            - AKIAEXAMPLE
          type: string
        bucket:
          description: Bucket name
          examples:
            - deliveries
          type: string
        endpoint:
          description: Endpoint URL, set only for storage outside AWS
          examples:
            - https://storage.example.com
          type: string
        externalId:
          description: >-
            External id the role trust policy must require; minted by the
            service on create
          examples:
            - 3f2c9a1e
          type: string
        region:
          description: Bucket region
          examples:
            - us-east-1
          type: string
        roleArn:
          description: Role the service assumes to read the bucket
          examples:
            - arn:aws:iam::123456789012:role/reader
          type: string
        trustPrincipal:
          description: >-
            AWS identity the role trust policy must trust; computed on read,
            never stored
          examples:
            - arn:aws:iam::123456789012:role/reporter
          type: string
        usePathStyle:
          description: Address the bucket by path instead of by host name
          examples:
            - false
          type: boolean
      required:
        - bucket
        - region
      type: object
    SFTP:
      additionalProperties: false
      properties:
        auth:
          description: 'Credential kind: password or privateKey'
          examples:
            - password
          type: string
        host:
          description: Server host name
          examples:
            - sftp.example.com
          type: string
        knownHosts:
          description: The server's public keys, one per line
          examples:
            - sftp.example.com ssh-ed25519 AAAAC3Nza
          type: string
        port:
          description: Server port
          examples:
            - 22
          format: int64
          type: integer
        user:
          description: Login name
          examples:
            - reporter
          type: string
      required:
        - host
        - port
        - user
        - auth
        - knownHosts
      type: object
  securitySchemes:
    BearerAuth:
      bearerFormat: JWT
      description: JWT bearer token issued by the identity provider.
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.