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

# Get Table Names Endpoint



## OpenAPI

````yaml get /v3/semantic_model/list_tables/{rag_config_id}/{database_id}
openapi: 3.0.3
info:
  title: List Tables in Database
  version: 1.0.0
servers:
  - url: https://agent-prod.studio.lyzr.ai
security:
  - ApiKeyAuth: []
paths:
  /v3/semantic_model/list_tables/{rag_config_id}/{database_id}:
    get:
      summary: Fetch table names
      parameters:
        - in: path
          name: rag_config_id
          required: true
          schema:
            type: string
        - in: path
          name: database_id
          required: true
          schema:
            type: string
      responses:
        '200':
          description: List of schemas and table names
          content:
            application/json:
              schema:
                type: object
                properties:
                  schemas_and_tables:
                    type: object
        '500':
          description: Internal Server Error
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````