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
On this page
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
| Field | Type | What it is |
|---|---|---|
namespace_id | string | The namespace's id. Required. |
prefix | string | Only keys with this prefix. |
page_size | uint32 | At most this many entries; the service caps it. |
page_token | string | The next_page_token of the previous page. |
#Response
| Field | Type | What it is |
|---|---|---|
values | ValueRecord[] | The page of entries. |
next_page_token | string | Empty on the last page. |
#ValueRecord
| Field | Type | What it is |
|---|---|---|
namespace_id | string | The namespace's id in the environment, for example ratelimit. |
key | string | The key. |
value | bytes | The bytes, base64. |
sha256 | string | sha256:<hex> of the value. |
version | uint64 | The version, increasing per key. |
expires_at_unix_ms | int64 | Expiry in Unix milliseconds; zero never expires. |
updated_at_unix_ms | int64 | When this version was written, in Unix milliseconds. |
#Errors
UNAUTHENTICATED— No valid key or token was presented.PERMISSION_DENIED— The key lacks the method's permission.RESOURCE_NOT_FOUND— The named Resource does not exist or is not visible.INVALID_FIELD— A field failed validation.
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"