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

# List or retrieve sources

> Unified endpoint to list document and web sources with filtering.



## OpenAPI

````yaml /api-reference/openapi-v3.yaml get /api/v3/sources
openapi: 3.0.3
info:
  title: Paradigm API
  version: xenial-xerus (v3)
  description: >-
    A versatile and adaptable tool designed to integrate Generative AI into your
    applications
servers:
  - url: https://paradigm.lighton.ai
security: []
tags:
  - name: Agents
    description: Operations about agents
  - name: Threads
    description: Operations about agents conversation threads
  - name: Tools
    description: Operations about native tools
  - name: Models
    description: Operations about AI models
  - name: MCP
    description: Operations about MCP servers
  - name: Sources
    description: Operations about sources used by agents conversation threads
  - name: Artifacts
    description: Operations about artifacts generated by agents conversation threads
  - name: Agent
    description: >-
      Operations about agents (deprecated). Please use the 'Agents' API
      component instead.
  - name: Files
    description: Operations about files
  - name: Files Processing
    description: Operations about files processing
  - name: Tags
    description: Operations about tags
  - name: Workspaces
    description: Operations about workspaces
  - name: Users
    description: Operations about users
  - name: User Groups
    description: Operations about user groups
  - name: Companies
    description: Operations about companies
  - name: SCIM
    description: Operations about SCIM
paths:
  /api/v3/sources:
    get:
      tags:
        - Sources
      summary: List or retrieve sources
      description: Unified endpoint to list document and web sources with filtering.
      operationId: api_v3_sources_retrieve
      parameters:
        - in: query
          name: id
          schema:
            type: string
          description: Unique identifier of the source
        - in: query
          name: page
          schema:
            type: integer
          description: Page number for pagination
        - in: query
          name: per_page
          schema:
            type: integer
          description: 'Items per page (default: 20, max: 100)'
        - in: query
          name: source_type
          schema:
            type: string
          description: 'Filter by source type: "document" or "web"'
        - in: query
          name: thread_id
          schema:
            type: string
          description: Filter by thread ID; verifies the source belongs to the thread
        - in: query
          name: tool_call_id
          schema:
            type: string
          description: Filter by tool call ID; verifies the source belongs to the tool call
        - in: query
          name: turn_id
          schema:
            type: string
          description: Filter by turn ID; verifies the source belongs to the turn
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SourcesResponse'
          description: ''
        '401':
          description: Unauthorized
        '403':
          description: Insufficient permissions to access agent
        '404':
          description: Source not found
      security:
        - bearerAuth: []
components:
  schemas:
    SourcesResponse:
      type: object
      description: >-
        Top-level response serializer for the unified sources endpoint.


        It wraps two arrays: `document` and `web`, reusing the V3 item
        serializers.
      properties:
        document:
          type: array
          items:
            $ref: '#/components/schemas/DocumentSourceV3'
        web:
          type: array
          items:
            $ref: '#/components/schemas/WebSourceV3'
      required:
        - document
        - web
    DocumentSourceV3:
      type: object
      properties:
        id:
          type: string
          format: uuid
          readOnly: true
        thread_id:
          type: string
          readOnly: true
        document_chunk:
          oneOf:
            - type: integer
            - type: object
              additionalProperties: {}
          nullable: true
          readOnly: true
        vision_chunk:
          oneOf:
            - type: integer
            - type: object
              additionalProperties: {}
          nullable: true
          readOnly: true
        certainty:
          type: number
          format: double
          readOnly: true
          nullable: true
        distance:
          type: number
          format: double
          readOnly: true
          nullable: true
        page_start:
          type: integer
          readOnly: true
          nullable: true
        page_end:
          type: integer
          readOnly: true
          nullable: true
        used_for_generation:
          type: boolean
          readOnly: true
          nullable: true
        created_at:
          type: string
          format: date-time
          readOnly: true
      required:
        - certainty
        - created_at
        - distance
        - document_chunk
        - id
        - page_end
        - page_start
        - thread_id
        - used_for_generation
        - vision_chunk
    WebSourceV3:
      type: object
      properties:
        id:
          type: string
          format: uuid
          readOnly: true
        thread_id:
          type: string
          readOnly: true
        url:
          type: string
          format: uri
          readOnly: true
        title:
          type: string
          readOnly: true
        thumbnail:
          type: string
          format: uri
          readOnly: true
          nullable: true
        certainty:
          type: number
          format: double
          readOnly: true
          nullable: true
        created_at:
          type: string
          format: date-time
          readOnly: true
      required:
        - certainty
        - created_at
        - id
        - thread_id
        - thumbnail
        - title
        - url
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Bearer authentication header of the form `Bearer <token>`, where
        `<token>` is your auth token.

````