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

# One data source from the portal catalog



## OpenAPI

````yaml /swagger/5.16/ai-studio-swagger.yml get /common/catalog/datasources/{id}
openapi: 3.0.1
info:
  title: Midsommar API
  description: This is the API for the Midsommar user and group management system.
  termsOfService: http://swagger.io/terms/
  contact:
    name: API Support
    url: http://www.swagger.io/support
    email: support@swagger.io
  license:
    name: Apache 2.0
    url: http://www.apache.org/licenses/LICENSE-2.0.html
  version: '1.0'
servers:
  - url: //localhost:8080/api/v1
security: []
paths:
  /common/catalog/datasources/{id}:
    get:
      tags:
        - common
      summary: One data source from the portal catalog
      parameters:
        - name: id
          in: path
          description: Data source ID
          required: true
          schema:
            type: integer
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api.CatalogItemResponse'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api.ErrorResponse'
components:
  schemas:
    api.CatalogItemResponse:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/api.CatalogItem'
    api.ErrorResponse:
      type: object
      properties:
        errors:
          type: array
          items:
            type: object
            properties:
              detail:
                type: string
              title:
                type: string
      description: Error response model
    api.CatalogItem:
      type: object
      properties:
        attributes:
          $ref: '#/components/schemas/api.CatalogItemAttributes'
        governed_metadata:
          type: object
          description: Portal-visible governed metadata (Enterprise), display-ready.
        id:
          type: string
        type:
          type: string
    api.CatalogItemAttributes:
      type: object
      properties:
        access_granted_via_app:
          type: boolean
          description: >-
            AccessGrantedViaApp says whether building an App is how a developer

            gets to use this item. Always true for LLM providers, data sources
            and

            tools; for plugin resources it is the type's resolved value with any

            per-instance override applied. When false the portal shows no

            "Build app" action.


            PortalDetailURL is the providing plugin's own page for the item, set

            whenever the type declared portal_detail_path. When access is not

            granted through an App it replaces the built-in detail page as the

            item's detail view; otherwise it is a secondary link next to

            "Build app".
        allowed_models:
          type: array
          items:
            type: string
        auth_header:
          type: string
        auth_mode:
          type: string
          description: >-
            MCP servers (Tyk-managed): how a client reaches the proxy and what
            it

            offers. Brokerable says whether an App credential can be minted for
            it.
        brokerable:
          type: boolean
        catalogs:
          type: array
          items:
            $ref: '#/components/schemas/api.CatalogRef'
        community_submitted:
          type: boolean
        created_at:
          type: string
        default_model:
          type: string
          description: LLM providers
        embed_model:
          type: string
        embed_vendor:
          type: string
          description: Data sources
        endpoint_url:
          type: string
        endpoint_urls:
          type: object
          additionalProperties:
            type: string
        gateway_tags:
          type: array
          items:
            type: string
        kind:
          type: string
          description: >-
            Kind is the type-specific sub-classification: the vendor code of an
            LLM

            provider, the store type of a data source, the protocol of a tool
            and

            "<plugin id>:<slug>" for a plugin resource. KindLabel is set when
            the

            backend knows a display name (plugin resource types); the UI maps
            the

            built-in codes itself.
        kind_label:
          type: string
        logo_url:
          type: string
        long_description:
          type: string
        mcp_access_enabled:
          type: boolean
        mcp_endpoint_url:
          type: string
        metadata:
          type: object
          additionalProperties: true
        models:
          type: array
          description: |-
            Detail responses only: the known models and the provider's metadata
            (secrets redacted, as on the admin API).
          items:
            $ref: '#/components/schemas/api.CatalogModelInfo'
        name:
          type: string
        oauth:
          $ref: '#/components/schemas/models.MCPProtectedResourceMetadata'
        operations:
          type: array
          description: >-
            Tools. A tool is served by the AI Studio gateway; the access methods
            say

            how an App may reach it, and each URL is present only when its
            method is

            switched on. A tool with neither method on is chat only and is not
            in

            the catalog at all.
          items:
            type: string
        portal_detail_url:
          type: string
        primitives:
          type: array
          items:
            $ref: '#/components/schemas/models.MCPPrimitive'
        privacy_score:
          type: integer
        resource_type:
          type: object
          description: Plugin resources
          allOf:
            - $ref: '#/components/schemas/api.CatalogResourceType'
        rest_access_enabled:
          type: boolean
        rest_endpoint_url:
          type: string
        router_llms:
          type: array
          items:
            $ref: '#/components/schemas/api.CatalogRouterLLM'
        router_models:
          type: array
          items:
            type: string
        router_routes:
          type: array
          description: >-
            RouterRoutes are a Semantic Router's routes (name and description;
            the

            examples and keywords that pick them are configuration and stay
            out).
          items:
            $ref: '#/components/schemas/api.CatalogRouterRoute'
        router_slug:
          type: string
          description: |-
            Model Routers: the slug, the "{slug}/{model}" strings a client sends
            to the unified ingress, and (detail only) the LLMs it can route to.
        short_description:
          type: string
        tags:
          type: array
          items:
            type: string
        updated_at:
          type: string
    api.CatalogRef:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
    api.CatalogModelInfo:
      type: object
      properties:
        currency:
          type: string
        input_price_per_million:
          type: number
        is_default:
          type: boolean
        name:
          type: string
        output_price_per_million:
          type: number
    models.MCPProtectedResourceMetadata:
      type: object
      properties:
        authorization_servers:
          type: array
          items:
            type: string
        auto_derive_scopes:
          type: boolean
        resource:
          type: string
        scopes_supported:
          type: array
          items:
            type: string
        url:
          type: string
          description: URL is the absolute metadata URL when the endpoint URL is known.
        well_known_path:
          type: string
    models.MCPPrimitive:
      type: object
      properties:
        annotations:
          type: object
          additionalProperties: true
        auth:
          type: object
          description: Auth records per-primitive overrides from the definition.
          allOf:
            - $ref: '#/components/schemas/models.MCPPrimitiveAuth'
        description:
          type: string
        name:
          type: string
        source:
          type: string
          description: Source names the REST operation behind a REST-to-MCP tool.
        type:
          type: string
          description: tool | resource | prompt
    api.CatalogResourceType:
      type: object
      properties:
        access_granted_via_app:
          type: boolean
          description: >-
            AccessGrantedViaApp is the type-level answer to "does an App
            credential

            grant access to these?"; the item carries the per-instance value.
        icon:
          type: string
        name:
          type: string
        plugin_id:
          type: integer
        slug:
          type: string
    api.CatalogRouterLLM:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        vendor:
          type: string
    api.CatalogRouterRoute:
      type: object
      properties:
        default:
          type: boolean
        description:
          type: string
        name:
          type: string
    models.MCPPrimitiveAuth:
      type: object
      properties:
        ignore_authentication:
          type: boolean
        scopes:
          type: array
          items:
            type: string

````