---
title: "Referencecolumnlist"
method: GET
path: "/api/new_mdm/reference_column_list/{TableName}"
tags: ["MDM NEW"]
---

# Referencecolumnlist

`GET /api/new_mdm/reference_column_list/{TableName}`

**Function**: `ReferenceColumnList`
**Type**: API Endpoint (GET)

**Purpose**:  
Returns a list of columns in a specified table in the customer database.

**URL**:  
`GET /api/new_mdm/reference_column_list/{TableName}`

**Parameters**:
- `customer_key` (Header, required): A base64 encoded string containing `lscode` and `firmcode` for the customer.
- `TableName` (Path, required): The name of the table to retrieve columns from.

**Request Body**: None

**Response**:
A JSON object containing an array of column objects, each with `colId` and `colName` properties.

**Status Codes**:
- 200: Success
- 400: Invalid `customer_key`
- 404: Table not found
- 500: Internal Server Error

## Path parameters

- `TableName` string, required

## Headers

- `customer-key` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/leapsurgebi/apis/leapsurgeapi.md) · [All operations](https://skmtc.dev/leapsurgebi/apis/leapsurgeapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/leapsurgebi/leapsurgeapi/revisions/5a6b1464bfeb/schema)
