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

# List data source catalog

> Lists a data source's schemas, tables and columns as found by its last schema sync, with the AI context (`description`), display names and visibility set on them in Basedash. Requires admin access to the organization.

Objects are listed schemas first, then tables, then columns, and the order within each kind is stable but not alphabetical. Hidden objects are listed with `visible: false`. Objects dropped from the database are not listed.

AI sees both `description` and the database comment (`descriptionInDb`); only `description` can be changed, with the update endpoint.



## OpenAPI

````yaml https://charts.basedash.com/api/public/openapi get /api/public/organizations/{orgId}/data-sources/{id}/catalog
openapi: 3.1.0
info:
  title: Basedash Public API
  version: 0.0.0
  description: >-
    API for programmatic access to Basedash features. Use API keys for
    authentication. Send request bodies as JSON with `Content-Type:
    application/json`; other content types are rejected with a 415 (file uploads
    use `multipart/form-data`).
  contact:
    name: Basedash Support
    url: https://basedash.com
    email: support@basedash.com
servers:
  - url: https://charts.basedash.com
    description: Production
security: []
tags:
  - name: Organizations
    description: Manage organizations
  - name: Groups
    description: Manage organization groups and memberships
  - name: Data Sources
    description: Manage database connections and data sources
  - name: MCP servers
    description: Manage MCP server data sources
  - name: Insights
    description: Manage generated insights
  - name: Automations
    description: Manage automations and automation runs
  - name: Skills
    description: Manage organization skills
  - name: Models
    description: Manage reusable SQL models
  - name: Dashboards
    description: Manage dashboards and their tabs
  - name: Charts
    description: Manage charts and their SQL queries
  - name: Chats
    description: >-
      Chat with the Basedash AI agent about your data. Start a chat by sending a
      message, then continue the conversation with follow-up messages. The
      assistant responds asynchronously: pass the `wait` query parameter to
      receive the finished response in the same request, or poll the assistant
      message (or stream its events) after an HTTP 202. Chats created through
      the API are not shown in the Basedash app.
paths:
  /api/public/organizations/{orgId}/data-sources/{id}/catalog:
    get:
      tags:
        - Data Sources
      summary: List data source catalog
      description: >-
        Lists a data source's schemas, tables and columns as found by its last
        schema sync, with the AI context (`description`), display names and
        visibility set on them in Basedash. Requires admin access to the
        organization.


        Objects are listed schemas first, then tables, then columns, and the
        order within each kind is stable but not alphabetical. Hidden objects
        are listed with `visible: false`. Objects dropped from the database are
        not listed.


        AI sees both `description` and the database comment (`descriptionInDb`);
        only `description` can be changed, with the update endpoint.
      parameters:
        - schema:
            type: string
            description: Organization ID
          required: true
          description: Organization ID
          name: orgId
          in: path
        - schema:
            type: string
            description: Data source ID
          required: true
          description: Data source ID
          name: id
          in: path
        - schema:
            type: string
            enum:
              - schema
              - table
              - column
            description: Only list objects of this kind
          required: false
          description: Only list objects of this kind
          name: kind
          in: query
        - schema:
            type: string
            minLength: 1
            description: Only list this schema and the tables and columns in it
          required: false
          description: Only list this schema and the tables and columns in it
          name: schemaName
          in: query
        - schema:
            type: string
            minLength: 1
            description: >-
              Only list tables of this name and their columns (in every schema,
              unless schemaName is set)
          required: false
          description: >-
            Only list tables of this name and their columns (in every schema,
            unless schemaName is set)
          name: tableName
          in: query
        - schema:
            type: integer
            minimum: 1
            maximum: 1000
            default: 100
            description: Maximum number of objects to return (1-1000, default 100)
          required: false
          description: Maximum number of objects to return (1-1000, default 100)
          name: limit
          in: query
        - schema:
            type: string
            description: The nextCursor of the previous page
          required: false
          description: The nextCursor of the previous page
          name: cursor
          in: query
      responses:
        '200':
          description: Catalog objects retrieved successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/CatalogObject'
                  pagination:
                    $ref: '#/components/schemas/PaginationMeta'
                required:
                  - data
                  - pagination
        '400':
          description: >-
            Bad request - Invalid query parameter, cursor, or limit (not an
            integer from 1 to 1000)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized - Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not found - Data source not found or no admin access
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Rate limit exceeded - Too many requests
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RateLimitErrorResponse'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    CatalogObject:
      type: object
      properties:
        kind:
          type: string
          enum:
            - schema
            - table
            - column
          description: Whether the object is a schema, table or column
        id:
          type: string
          description: Object ID
        schemaName:
          type: string
          description: Schema name, as in the database
        tableName:
          type:
            - string
            - 'null'
          description: Table name, as in the database; null for a schema
        columnName:
          type:
            - string
            - 'null'
          description: Column name, as in the database; null for a schema or table
        displayName:
          type:
            - string
            - 'null'
          description: >-
            The name shown in Basedash instead of the database name; null for a
            schema
        description:
          type: string
          description: >-
            Context AI uses when it queries the object, set in Basedash. Empty
            when unset
        descriptionInDb:
          type: string
          description: >-
            The comment on the object in the database, read on sync. AI sees it
            too; it cannot be changed here
        visible:
          type: boolean
          description: >-
            Whether members see the object and AI can use it. A visible table in
            a hidden schema is still hidden
        dataType:
          type:
            - string
            - 'null'
          description: The column's database type; null for a schema or table
      required:
        - kind
        - id
        - schemaName
        - tableName
        - columnName
        - displayName
        - description
        - descriptionInDb
        - visible
        - dataType
    PaginationMeta:
      type: object
      properties:
        nextCursor:
          type:
            - string
            - 'null'
          description: Cursor for the next page (null if no more pages)
        hasMore:
          type: boolean
          description: Whether there are more items after this page
      required:
        - nextCursor
        - hasMore
    ErrorResponse:
      type: object
      properties:
        error:
          $ref: '#/components/schemas/ApiError'
      required:
        - error
    RateLimitErrorResponse:
      type: object
      properties:
        error:
          $ref: '#/components/schemas/RateLimitError'
      required:
        - error
    ApiError:
      type: object
      properties:
        title:
          type: string
          description: Error type identifier
        detail:
          type: string
          description: Human-readable error description
        code:
          type: string
          description: >-
            Stable machine-readable code when the error has one.
            `ip_not_allowed` means the organization only allows access from
            approved IP addresses and the caller’s address is not one.
        ip:
          type:
            - string
            - 'null'
          description: >-
            With `ip_not_allowed`: the caller’s IP address as Basedash saw it,
            which an organization admin can add under Settings → Security →
            Network access.
      required:
        - title
        - detail
    RateLimitError:
      allOf:
        - $ref: '#/components/schemas/ApiError'
        - type: object
          properties:
            title:
              type: string
              enum:
                - RateLimitExceeded
            retryAfterMs:
              type: number
              description: Milliseconds until the rate limit window resets
          required:
            - retryAfterMs
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        API key authentication using Bearer token format: `Bearer
        <basedash_api_key>`

````

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