Skip to content
Console
Menu

Queues

Workflows

Getting Started

Authentication

KV Store

Scan in KV

Walks a namespace's keys that match a glob (SCAN).

Walks a namespace's keys that match a glob (SCAN). Call again with the returned cursor until it is empty.

  • Path POST https://api.data.sylphx.com/v1/kv-scans
  • 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.
globstringA glob of the keys to answer (*, ?, \ escapes); empty matches every key.
cursorstringThe cursor of the previous call; empty starts the walk.
countuint32At most this many keys per call; the service caps it at 1000.

#Response

FieldTypeWhat it is
keysstring[]The matching keys of this step.
cursorstringPass to the next call; empty when the walk is done.

#Errors

Every error arrives in the body Errors describes.

#Examples

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