---
title: "List database tables"
method: GET
path: "/api/v1/database/tables"
---

# List database tables

`GET /api/v1/database/tables`

## Request

- Base URL: `https://localhost:3000`
- URL: `https://localhost:3000/api/v1/database/tables`
- Auth: OAuth 2 (authorization code, authorization URL `/oauth/authorize`, token URL `/oauth/token`)

Get a list of all tables in the PostgreSQL database.

## Response `200`

List of tables

- TablesResponse
  - `database` string: Database name
  - `tables` string[]: List of table names
  - `count` integer

## Other responses

- `401`: Authentication required
- `500`: Internal server error
- `503`: PostgreSQL connection not configured for this user

---

[API](https://skmtc.dev/corpusiq/apis/multi-source-mcp-api.md) · [All operations](https://skmtc.dev/corpusiq/apis/multi-source-mcp-api/llms.txt) · [OpenAPI document](https://skmtc.dev/corpusiq/apis/multi-source-mcp-api/revisions/e25648ba6027?raw)
