---
title: "Returns a list of tables in a database."
method: GET
path: "/api/databases/{databaseName}/tables"
---

# Returns a list of tables in a database.

`GET /api/databases/{databaseName}/tables`

Gets metadata for all tables in a database.

## Path parameters

- `databaseName` string, required

## Response `200`

A JSON array of tables

- Table[]
  - `name` string
  - `type` string — Type of table (data | view)

## Other responses

- `401` — Invalid API key error message
- `404` — Database not found
- `500` — Server error

---

[API](https://skmtc.net/mindsdb/apis/mindsdb-api.md) · [All operations](https://skmtc.net/mindsdb/apis/mindsdb-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mindsdb/mindsdb-api/versions/387ff52538f9/schema)
