List 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
KV namespace ID
Query parameters
Return only keys that start with this prefix.
Maximum number of keys to return. Values above 1000 are treated as 1000.
Opaque pagination cursor from a previous response's meta.cursor.
Response
Keys retrieved successfully
Example response
{
"data": [
{
"key": "user/123",
"size_bytes": 21,
"updated_at": "2026-06-18T14:48:17Z"
}
],
"record_type": "storage_kv_key"
}Changes
Changed in 3 of the 61 revisions of this API.16413
- ▲
the response property
errors/items/codebecame optional for the status400response-property-became-optional
- ▲
the response property
errors/items/codebecame optional for the status401response-property-became-optional
- ▲
the response property
errors/items/codebecame optional for the status404response-property-became-optional
- ▲
the response property
errors/items/codebecame optional for the status409response-property-became-optional
- ▲
the response property
errors/items/titlebecame optional for the status400response-property-became-optional
- ▲
the response property
errors/items/titlebecame optional for the status401response-property-became-optional
- ▲
the response property
errors/items/titlebecame optional for the status404response-property-became-optional
- ▲
the response property
errors/items/titlebecame optional for the status409response-property-became-optional
- ▲
the
errors/items/coderesponse's property type/format changed frominteger/int32tostring/for status400response-property-type-changed
- ▲
the
errors/items/coderesponse's property type/format changed frominteger/int32tostring/for status401response-property-type-changed
- ▲
the
errors/items/coderesponse's property type/format changed frominteger/int32tostring/for status404response-property-type-changed
- ▲
the
errors/items/coderesponse's property type/format changed frominteger/int32tostring/for status409response-property-type-changed
- ○
added the optional property
errors/items/meta/urlto the response with the400statusresponse-optional-property-added
- ○
added the optional property
errors/items/meta/urlto the response with the401statusresponse-optional-property-added
- ○
added the optional property
errors/items/meta/urlto the response with the404statusresponse-optional-property-added
- ○
added the optional property
errors/items/meta/urlto the response with the409statusresponse-optional-property-added
This revision also has 64 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ▲
the
errors/items/coderesponse's property type/format changed fromstring/tointeger/int32for status400response-property-type-changed
- ▲
the
errors/items/coderesponse's property type/format changed fromstring/tointeger/int32for status401response-property-type-changed
- ▲
the
errors/items/coderesponse's property type/format changed fromstring/tointeger/int32for status404response-property-type-changed
- ▲
the
errors/items/coderesponse's property type/format changed fromstring/tointeger/int32for status409response-property-type-changed
- ●
removed the optional property
errors/items/meta/urlfrom the response with the400statusresponse-optional-property-removed
- ●
removed the optional property
errors/items/meta/urlfrom the response with the401statusresponse-optional-property-removed
- ●
removed the optional property
errors/items/meta/urlfrom the response with the404statusresponse-optional-property-removed
- ●
removed the optional property
errors/items/meta/urlfrom the response with the409statusresponse-optional-property-removed
- ○
the response property
errors/items/codebecame required for the status400response-property-became-required
- ○
the response property
errors/items/codebecame required for the status401response-property-became-required
- ○
the response property
errors/items/codebecame required for the status404response-property-became-required
- ○
the response property
errors/items/codebecame required for the status409response-property-became-required
- ○
the response property
errors/items/titlebecame required for the status400response-property-became-required
- ○
the response property
errors/items/titlebecame required for the status401response-property-became-required
- ○
the response property
errors/items/titlebecame required for the status404response-property-became-required
- ○
the response property
errors/items/titlebecame required for the status409response-property-became-required
This revision also has 41 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ○
the endpoint scheme security
bearerAuthwas removed from the APIapi-security-removed
- ○