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

# Get Datasource



## OpenAPI

````yaml https://spec.speakeasy.com/meibel/console/meibel-gateway-service-with-code-samples get /datasource/{datasource_id}
openapi: 3.1.0
info:
  title: Meibel AI API
  summary: Meibel Gateway Service
  description: >-
    Our API allows you to interact with our services.  Read
    the[docs](https://docs.mistral.ai) to learn how to use it.
  version: 0.6.1
servers:
  - url: https://api.meibel.ai/v1
    description: Meibel API
  - url: https://api.dev.meibel.ai/v1
    description: Meibel API
  - url: http://localhost:8000
    description: Local Development Server
security: []
tags:
  - name: datasources
    description: Operations with datasources
  - name: datasources.dataelements
    description: Operations with data elements
  - name: datasources.tag
    description: Operations with tag
  - name: datasources.rag
    description: Operations with rag
  - name: datasources.content
    description: Operations with content upload and management
  - name: datasources.metadata_model_catalog
    description: Operations with metadata model catalog
  - name: blueprints
    description: Operations with blueprints
  - name: blueprints.instances
    description: Operations with blueprint_instances
  - name: blueprints.executions
    description: work with executions of blueprints
  - name: confidence_scoring
    description: Operations with confidence scoring jobs and summaries
paths:
  /datasource/{datasource_id}:
    get:
      tags:
        - datasources
      summary: Get Datasource
      operationId: getDatasource
      parameters:
        - name: datasource_id
          in: path
          required: true
          schema:
            type: string
            title: Datasource Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Datasource'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
      x-codeSamples:
        - lang: python
          label: Python (SDK)
          source: |-
            from meibelai import Meibelai
            import os


            with Meibelai(
                api_key_header=os.getenv("MEIBELAI_API_KEY_HEADER", ""),
            ) as m_client:

                res = m_client.datasources.get_datasource(datasource_id="<id>")

                # Handle response
                print(res)
components:
  schemas:
    Datasource:
      properties:
        id:
          anyOf:
            - type: string
            - type: 'null'
          title: Id
        customer_id:
          type: string
          title: Customer Id
        project_id:
          type: string
          title: Project Id
        name:
          type: string
          title: Name
        description:
          type: string
          title: Description
        recurrence:
          anyOf:
            - type: string
            - type: 'null'
          title: Recurrence
        created_by:
          type: string
          title: Created By
        created_at:
          type: string
          title: Created At
        updated_by:
          type: string
          title: Updated By
        updated_at:
          type: string
          title: Updated At
        object_storage_config:
          anyOf:
            - $ref: '#/components/schemas/ObjectStorageConfig'
            - type: 'null'
        web_config:
          anyOf:
            - $ref: '#/components/schemas/DatasourceWebConfig'
            - type: 'null'
        connector_config:
          anyOf:
            - $ref: '#/components/schemas/DatasourceConnectorConfig'
            - type: 'null'
      type: object
      required:
        - id
        - customer_id
        - project_id
        - name
        - description
        - recurrence
        - created_by
        - created_at
        - updated_by
        - updated_at
        - object_storage_config
        - web_config
        - connector_config
      title: Datasource
      description: Datasource
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ObjectStorageConfig:
      properties:
        bucket:
          type: string
          title: Bucket
        prefix:
          anyOf:
            - type: string
            - type: 'null'
          title: Prefix
        filters:
          anyOf:
            - $ref: '#/components/schemas/ObjectStorageFilters'
            - type: 'null'
        gcs_config:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Gcs Config
        s3_config:
          anyOf:
            - $ref: '#/components/schemas/S3Config'
            - type: 'null'
      type: object
      required:
        - bucket
        - prefix
      title: ObjectStorageConfig
      description: ObjectStorageConfig
    DatasourceWebConfig:
      properties:
        baseURL:
          type: string
          title: Baseurl
        javascriptRender:
          type: boolean
          title: Javascriptrender
        waitForSelector:
          anyOf:
            - type: string
            - type: 'null'
          title: Waitforselector
        domains:
          anyOf:
            - items:
                $ref: '#/components/schemas/WebDomain'
              type: array
            - type: 'null'
          title: Domains
        authentication:
          anyOf:
            - $ref: '#/components/schemas/BasicWebAuth'
            - type: 'null'
      type: object
      required:
        - baseURL
        - javascriptRender
        - waitForSelector
        - domains
        - authentication
      title: DatasourceWebConfig
      description: DatasourceWebConfig
    DatasourceConnectorConfig:
      properties:
        connector_id:
          type: string
          title: Connector Id
        airbyte_config:
          anyOf:
            - $ref: '#/components/schemas/AirbyteConfig'
            - type: 'null'
        source_config:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Source Config
      type: object
      required:
        - connector_id
      title: DatasourceConnectorConfig
      description: DatasourceConnectorConfig
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    ObjectStorageFilters:
      properties:
        included_prefixes:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Included Prefixes
        included_file_types:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Included File Types
        recursive_prefixes:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Recursive Prefixes
        modified_date_start:
          anyOf:
            - type: string
            - type: 'null'
          title: Modified Date Start
        modified_date_end:
          anyOf:
            - type: string
            - type: 'null'
          title: Modified Date End
        min_file_size:
          anyOf:
            - type: integer
            - type: 'null'
          title: Min File Size
        max_file_size:
          anyOf:
            - type: integer
            - type: 'null'
          title: Max File Size
      type: object
      title: ObjectStorageFilters
      description: ObjectStorageFilters
    S3Config:
      properties:
        role_arn:
          type: string
          title: Role Arn
        region:
          type: string
          title: Region
      type: object
      required:
        - role_arn
        - region
      title: S3Config
      description: S3Config
    WebDomain:
      properties:
        domain:
          type: string
          title: Domain
        limitPattern:
          type: string
          title: Limitpattern
        excludePattern:
          type: string
          title: Excludepattern
        ingestible:
          type: boolean
          title: Ingestible
        expandable:
          type: boolean
          title: Expandable
      type: object
      required:
        - domain
        - limitPattern
        - excludePattern
        - ingestible
        - expandable
      title: WebDomain
      description: WebDomain
    BasicWebAuth:
      properties:
        username:
          type: string
          title: Username
        password:
          type: string
          title: Password
      type: object
      required:
        - username
        - password
      title: BasicWebAuth
      description: BasicWebAuth
    AirbyteConfig:
      properties:
        source_id:
          type: string
          title: Source Id
        destination_id:
          type: string
          title: Destination Id
        connection_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Connection Id
      type: object
      required:
        - source_id
        - destination_id
      title: AirbyteConfig
      description: AirbyteConfig
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: Meibel-API-Key

````