Skip to content
Console
Menu

Queues

Workflows

Getting Started

Authentication

KV Store

List range in KV

Reads a range of a list (LRANGE); negative indexes count from the end.

Reads a range of a list (LRANGE); negative indexes count from the end.

  • Path POST https://api.data.sylphx.com/v1/kv-list-ranges
  • Scope data:read
  • Effect read — nothing is written.
  • Collection kv
  • Host https://api.data.sylphx.com

#Request

FieldTypeWhat it is
namespace_idstringThe namespace's id. Required.
keystringThe list's key. Required.
startint64The first index, inclusive; unset is 0, negative counts from the end.
stopint64The last index, inclusive; unset is -1 (the end).

#Response

FieldTypeWhat it is
valuesbytes[]The values in the range, each base64.

#Errors

Every error arrives in the body Errors describes.

#Examples

curl -X POST "https://api.data.sylphx.com/v1/kv-list-ranges" \
  -H "Authorization: Bearer $SYLPHX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"key":"…","namespace_id":"…"}'