Menu
Platform
AI
App store purchases
Database
Flags
Jobs and cron
Localization
Monitoring
Notifications
Payments
Queues
Sandboxes
Webhooks
Getting Started
Authentication
KV Store
Deploy & Infrastructure
Reference
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
| Field | Type | What it is |
|---|---|---|
namespace_id | string | The namespace's id. Required. |
key | string | The list's key. Required. |
start | int64 | The first index, inclusive; unset is 0, negative counts from the end. |
stop | int64 | The last index, inclusive; unset is -1 (the end). |
#Response
| Field | Type | What it is |
|---|---|---|
values | bytes[] | The values in the range, each base64. |
#Errors
UNAUTHENTICATED— No valid key or token was presented.PERMISSION_DENIED— The key lacks the method's permission.INVALID_FIELD— A field failed validation.RESOURCE_NOT_FOUND— The named Resource does not exist or is not visible.
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":"…"}'