Skip to content
Console
Menu

Queues

Workflows

Getting Started

Authentication

KV Store

List in KV

Lists a namespace's values in key order.

Lists a namespace's values in key order.

  • Path GET https://api.data.sylphx.com/v1/kv/namespace-id
  • Scope data:read
  • Effect read — nothing is written.
  • Collection kv
  • Query prefix, page_size, page_token
  • Host https://api.data.sylphx.com

#Request

FieldTypeWhat it is
namespace_idstringThe namespace's id. Required.
prefixstringOnly keys with this prefix.
page_sizeuint32At most this many entries; the service caps it.
page_tokenstringThe next_page_token of the previous page.

#Response

FieldTypeWhat it is
valuesValueRecord[]The page of entries.
next_page_tokenstringEmpty on the last page.

#ValueRecord

FieldTypeWhat it is
namespace_idstringThe namespace's id in the environment, for example ratelimit.
keystringThe key.
valuebytesThe bytes, base64.
sha256stringsha256:<hex> of the value.
versionuint64The version, increasing per key.
expires_at_unix_msint64Expiry in Unix milliseconds; zero never expires.
updated_at_unix_msint64When this version was written, in Unix milliseconds.

#Errors

Every error arrives in the body Errors describes.

#Examples

curl "https://api.data.sylphx.com/v1/kv/namespace-id" \
  -H "Authorization: Bearer $SYLPHX_API_KEY"