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

# DiscoverIntegrationTablesAPI mirrors erdo_discover_integration_tables.


> The path param is the app key or integration id; schema\_name comes from the query string.




## OpenAPI

````yaml /api/openapi.json get /v1/integrations/{integrationRef}/tables
openapi: 3.0.0
info:
  title: Erdo API
  description: >-
    Erdo's REST API: query and write datasets, run agents, manage threads,
    integrations, pages, evals, workstreams, and experiments. Authenticate with
    a Bearer API key (erdo_api_...) or scoped token (erdo_token_...).
  version: '2026-07-25'
servers:
  - url: https://api.erdo.ai
    description: Production
security:
  - bearerAuth: []
paths:
  /v1/integrations/{integrationRef}/tables:
    get:
      summary: |
        DiscoverIntegrationTablesAPI mirrors erdo_discover_integration_tables.
      description: >
        The path param is the app key or integration id; schema\_name comes from
        the query string.
      operationId: GET:mcp.DiscoverIntegrationTablesAPI
      parameters:
        - allowEmptyValue: true
          explode: false
          in: path
          name: integrationRef
          required: true
          schema:
            type: string
          style: simple
        - allowEmptyValue: true
          explode: true
          in: query
          name: schema_name
          required: false
          schema:
            type: string
          style: form
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  app:
                    type: string
                  integration_id:
                    type: string
                  schemas:
                    items:
                      $ref: '#/components/schemas/mcp.IntegrationSchemaOption'
                    type: array
                  tables:
                    items:
                      $ref: '#/components/schemas/mcp.IntegrationTable'
                    type: array
                type: object
          description: Success response
        default:
          $ref: '#/components/responses/APIError'
components:
  schemas:
    mcp.IntegrationSchemaOption:
      properties:
        id:
          type: string
        name:
          type: string
        type:
          type: string
      title: >
        IntegrationSchemaOption is one selectable schema (or provider segment)
        on an

        integration.
      type: object
    mcp.IntegrationTable:
      properties:
        columns:
          items:
            $ref: '#/components/schemas/mcp.IntegrationTableColumn'
          type: array
        estimated_row_count:
          format: int64
          type: integer
        schema_name:
          type: string
        table_name:
          type: string
      title: |
        IntegrationTable describes one discovered table.
      type: object
    mcp.IntegrationTableColumn:
      properties:
        data_type:
          type: string
        is_nullable:
          type: boolean
        is_primary_key:
          type: boolean
        name:
          type: string
      title: |
        IntegrationTableColumn describes one column of a discovered table.
      type: object
  responses:
    APIError:
      content:
        application/json:
          schema:
            externalDocs:
              url: https://pkg.go.dev/encore.dev/beta/errs#Error
            properties:
              code:
                description: Error code
                example: not_found
                externalDocs:
                  url: https://pkg.go.dev/encore.dev/beta/errs#ErrCode
                type: string
              details:
                description: Error details
                type: object
              message:
                description: Error message
                type: string
            title: APIError
            type: object
      description: Error response
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: An Erdo API key (erdo_api_...) or scoped token (erdo_token_...).

````