---
title: "Lists all key-value collections"
method: GET
path: "/_fabric/{fabric}/_api/kv"
tags: ["Key Value"]
---

# Lists all key-value collections

`GET /_fabric/{fabric}/_api/kv`

## Request

- The document declares no server URL.
- Auth: one of:
  - API key in header `Authorization`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/macrometa/apis/macrometa-api-reference/docs/_fabric/:fabric/_api/kv/get.ts> (a function with typed inputs; its response is checked against the schema)

Fetch all key-value collections.

## Path parameters

- `fabric` string, string, required

## Response `200`

Successfully fetched all key-value collection with expiration details.

- KeysArrayRc2001
  - `code` integer: HTTP response code.
  - `error` boolean: Flag if there is an error in response. *False* for this response.
  - `result` object[]: An array of keys. If there are no results, the array is returned as empty.
    - `name` string: Name of the collection.
    - `expiration` string: Expiration details of a collection.

## Other responses

- `404`: Failed to find specified fabric.

---

[API](https://skmtc.dev/macrometa/apis/macrometa-api-reference.md) - [All operations](https://skmtc.dev/macrometa/apis/macrometa-api-reference/llms.txt) - [OpenAPI document](https://skmtc.dev/macrometa/apis/macrometa-api-reference/revisions/2006b6d7f31d?raw)
