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

# List keys

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

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

## 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-08-17** `1571b0380bd7` — 12 breaking, 4 info
  - the response property `errors/items/code` became optional for the status `400`
  - the response property `errors/items/code` became optional for the status `401`
  - the response property `errors/items/code` became optional for the status `404`
  - the response property `errors/items/code` became optional for the status `409`
  - …12 more
- **2026-08-04** `8f5f4e537994` — 4 breaking, 4 warning, 8 info
  - the `errors/items/code` response's property type/format changed from `string`/`` to `integer`/`int32` for status `400`
  - the `errors/items/code` response's property type/format changed from `string`/`` to `integer`/`int32` for status `401`
  - the `errors/items/code` response's property type/format changed from `string`/`` to `integer`/`int32` for status `404`
  - the `errors/items/code` response's property type/format changed from `string`/`` to `integer`/`int32` for status `409`
  - …12 more
- **2026-07-23** `eb02d7e7280b` — 1 info
  - the endpoint scheme security `bearerAuth` was removed from the API

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

---

[API](https://skmtc.dev/team-telnyx/apis/telnyx-api-2.md) · [All operations](https://skmtc.dev/team-telnyx/apis/telnyx-api-2/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/team-telnyx/telnyx-api-2/revisions/3fdc16374d70/schema)
