---
title: "Get list of key-value stores"
method: GET
path: "/v2/key-value-stores"
tags: ["Storage/Key-value stores"]
---

# Get list of key-value stores

`GET /v2/key-value-stores`

Gets the list of key-value stores owned by the user.

The response is a list of objects, where each objects contains a basic
information about a single key-value store.

The endpoint supports pagination using the `limit` and `offset` parameters
and it will not return more than 1000 array elements.

By default, the records are sorted by the `createdAt` field in ascending
order, therefore you can use pagination to incrementally fetch all key-value stores
while new ones are still being created. To sort the records in descending order, use
the `desc=1` parameter.

## Query parameters

- `offset` number, double
- `limit` number, double
- `desc` boolean
- `unnamed` boolean
- `ownership` 'ownedByMe' | 'sharedWithMe'

## Response `200`

- ListOfKeyValueStoresResponse
  - `data` ListOfKeyValueStores, required — Common pagination fields for list responses.
    - `total` integer, required — The total number of items available across all pages.
    - `offset` integer, required — The starting position for this page of results.
    - `limit` integer, required — The maximum number of items returned per page.
    - `desc` boolean, required — Whether the results are sorted in descending order.
    - `count` integer, required — The number of items returned in this response.
    - `unnamed` boolean — Whether the listing was filtered to only unnamed key-value stores.
    - `items` KeyValueStore[], required
      - `id` string, required
      - `name` string, nullable
      - `userId` string, nullable
      - `username` string, nullable
      - `createdAt` string, date-time, required
      - `modifiedAt` string, date-time, required
      - `accessedAt` string, date-time, required
      - `actId` string, nullable
      - `actRunId` string, nullable
      - `consoleUrl` string, uri
      - `keysPublicUrl` string, uri — A public link to access keys of the key-value store directly.
      - `recordsPublicUrl` string, uri — A public link to access records of the key-value store directly.
      - `schema` object, nullable — Optional JSON schema describing the keys stored in the key-value store.
      - `urlSigningSecretKey` string, nullable — A secret key for generating signed public URLs. It is only provided to clients with WRITE permission for the key-value store.
      - `generalAccess` 'ANYONE_WITH_ID_CAN_READ' | 'ANYONE_WITH_NAME_CAN_READ' | 'FOLLOW_USER_SETTING' | 'RESTRICTED' — Defines the general access level for the resource.
      - `stats` KeyValueStoreStats
        - `readCount` integer
        - `writeCount` integer
        - `deleteCount` integer
        - `listCount` integer
        - `s3StorageBytes` integer
        - `storageBytes` integer

## Other responses

- `400` — Bad request - invalid input parameters or request body.
- `401` — Unauthorized - authentication required or invalid token.
- `403` — Forbidden - insufficient permissions to perform this action.
- `405` — Method not allowed.
- `429` — Too many requests - rate limit exceeded.

---

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