---
title: "Get Table Metadata Endpoint"
method: POST
path: "/copilot/quickchat/table-metadata"
tags: ["Copilot"]
---

# Get Table Metadata Endpoint

`POST /copilot/quickchat/table-metadata`

Get comprehensive table metadata, statistics, and clustering information.

This endpoint provides all data needed for table optimization analysis:
- Table metadata (schema, columns, data types)
- Table statistics (storage, read/write counts, costs)
- Clustering information (if clustering keys exist)

Args:
    request: Contains fully_qualified_names (list of database.schema.table)
             and optional instance_id

Returns:
    Dictionary with table names as keys and optimization data as values

## Headers

- `x-tenant` string

## Request body

- TableMetadataRequest — Request schema for table metadata and statistics.
  - `fully_qualified_names` string[], required
  - `instance_id` integer, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `400` — Invalid table name
- `403` — Not supported for public user
- `422` — Validation Error

---

[API](https://skmtc.net/myaltimate/apis/fastapi.md) · [All operations](https://skmtc.net/myaltimate/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/myaltimate/fastapi/versions/50769cbf05d5/schema)
