---
title: "List data stores"
method: GET
path: "/data-stores"
tags: ["Data stores"]
---

# List data stores

`GET /data-stores`

Retrieves a collection of all data stores for a team with a given ID. Returned data stores are sorted by name in ascending order.

## Query parameters

- `teamId` integer, required
- `cols[]` string[]
- `pg[sortBy]` 'name'
- `pg[offset]` integer
- `pg[sortDir]` 'asc' | 'desc'
- `pg[limit]` integer

## Response `200`

Successful response

- object
  - `dataStores` object[]
    - `id` integer
    - `name` string
    - `records` integer
    - `size` string
    - `maxSize` string
    - `teamId` integer
    - `datastructureId` integer
  - `pg` object
    - `last` string — Shown only when using the `last` based pagination.
    - `showLast` boolean — Shown only when using the `last` based pagination.
    - `sortBy` string
    - `sortDir` string
    - `limit` integer
    - `offset` integer — Shown only when using the `offset` based pagination.

---

[API](https://skmtc.dev/make/apis/web-api-v2-public.md) · [All operations](https://skmtc.dev/make/apis/web-api-v2-public/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/make/web-api-v2-public/revisions/531769e6f813/schema)
