---
title: "List keys"
method: GET
path: "/storage/kvs/{id}/keys"
tags: ["kv keys"]
---

# List keys

`GET /storage/kvs/{id}/keys`

## Request

- Base URL: `https://api.telnyx.com/v2`
- URL: `https://api.telnyx.com/v2/storage/kvs/{id}/keys`
- Auth: HTTP bearer

Lists the keys in a namespace. Returns key names and metadata only, never values. Results are paginated with `limit` and an opaque `cursor`.

## Path parameters

- `id` string, uuid, required

## Query parameters

- `prefix` string
- `limit` integer
- `cursor` string

## Response `200`

Keys retrieved successfully

- KvKeyListResponseWrapper
  - `record_type` string
  - `data` KvKey[]
    - `key` string
    - `size_bytes` integer: Size of the stored value in bytes.
    - `updated_at` string, date-time
  - `meta` KvListMeta
    - `has_more` boolean: Whether more results are available on a following page.
    - `cursor` string: Opaque cursor for the next page; pass it back as the `cursor` query parameter. Omitted when there are no further results.

## Other responses

- `400`: Bad request — `id` is not a valid UUID, or `limit` is not a positive integer
- `401`: Unauthorized
- `404`: KV namespace not found
- `409`: Conflict — the namespace is not ready (`status` is not `provision_ok`)
- `500`: Internal server error

## Changes

- **2026-10-21** `67df31283a8a`: 4 breaking, 4 info
  - the `errors/items/code` response's property type changed from `integer` to `string`, and format from `int32` to no format for status `400`
  - the `errors/items/code` response's property type changed from `integer` to `string`, and format from `int32` to no format for status `401`
  - the `errors/items/code` response's property type changed from `integer` to `string`, and format from `int32` to no format for status `404`
  - the `errors/items/code` response's property type changed from `integer` to `string`, and format from `int32` to no format for status `409`
  - …4 more
- **2026-10-15** `a72569d69430`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/team-telnyx/apis/telnyx-api/changes/storage/kvs/:id/keys/get.md)

---

[API](https://skmtc.dev/team-telnyx/apis/telnyx-api.md) - [All operations](https://skmtc.dev/team-telnyx/apis/telnyx-api/llms.txt) - [OpenAPI document](https://skmtc.dev/team-telnyx/apis/telnyx-api/revisions/0f17b8167873?raw)
