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

# Get Data Source

> Returns a single data source by ID



## OpenAPI

````yaml GET /api/v1/data-sources/{id}
openapi: 3.0.1
info:
  title: Knowledge Engine API
  description: Public API endpoints for managing knowledge engines
  version: 1.0.0
servers:
  - url: https://api.getdecisional.ai
security: []
paths:
  /api/v1/data-sources/{id}:
    get:
      summary: Get a data source
      description: Returns a single data source by ID
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Data source ID
      responses:
        '200':
          description: Data source found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DataSourceResponse'
        '404':
          description: Data source not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    DataSourceResponse:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier for the data source
          example: ds_abc123xyz789
        name:
          type: string
          description: Name of the data source
          example: Annual Report 2023
        type:
          type: string
          enum:
            - file
            - ticket
          description: Type of the data source
          example: file
        status:
          type: string
          enum:
            - processing
            - processed
          description: Current status of the data source
          example: processed
        notes:
          type: object
          description: Custom attributes and fields
          example:
            category: financial
        knowledge_engine_id:
          type: string
          description: ID of the knowledge engine this data source belongs to
          example: kng_abc123xyz789
        created_at:
          type: integer
          format: int64
          description: Unix timestamp when this entity was created
          example: 1679644800
    Error:
      type: object
      properties:
        error:
          type: string
          description: Error message
          example: >-
            Invalid knowledge engine name: exceeds maximum length of 50
            characters

````