---
title: "Datalist"
method: GET
path: "/api/new_mdm/data_list/"
tags: ["MDM NEW"]
---

# Datalist

`GET /api/new_mdm/data_list/`

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

**Purpose**:
Retrieves a paginated list of data from the specified table in the customer database. Supports searching.

**URL**:
`GET /api/new_mdm/data_list/`

**Request Headers**:
- `Customer-Key` (str, required): A base64-encoded string identifying the customer and database.
- `Table-Name` (str, required): The name of the table to retrieve data from.

**Request Parameters**:
- `page` (int, optional): The page number for pagination (default is 1).
- `limit` (int, optional): The number of rows to fetch per page (default is 25).
- `search` (str, optional): A JSON string representing search parameters.

**Response**:
Returns a JSON object containing the requested data.

**Exceptions**:
- Raises a 400 HTTPException for invalid customer key or search format.
- Raises a 500 HTTPException for server-side errors.

## Query parameters

- `page` integer
- `limit` integer
- `search` string

## Headers

- `Customer-Key` string, required
- `Table-Name` 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)
