Skip to content
Console
Menu

Queues

Workflows

Getting Started

Authentication

KV Store

Get many in KV

Reads up to 1000 keys at once (MGET).

Reads up to 1000 keys at once (MGET). Answers one entry per key, in order; an absent or expired key keeps its key and has no value.

  • Path POST https://api.data.sylphx.com/v1/kv-mget
  • 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.
keysstring[]The keys, at most 1000. Required.

#Response

FieldTypeWhat it is
valuesValueRecord[]One entry per key, in the order asked; an absent or expired key keeps its key and has no value or version.

#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 -X POST "https://api.data.sylphx.com/v1/kv-mget" \
  -H "Authorization: Bearer $SYLPHX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"keys":["…"],"namespace_id":"…"}'