Operate on a KV namespace
/v1/disks/{disk}/kv/{namespace}const url = 'https://api.wabe.sh/v1/disks/demo/kv/app';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"op":"scan","prefix":"greet","limit":10}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.wabe.sh/v1/disks/demo/kv/app \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "op": "scan", "prefix": "greet", "limit": 10 }'Keys: 16 KiB; values: 1 MiB; encoded batches and JSON bodies: 8 MiB. Scan stays within the namespace and uses byte order with an exclusive after cursor sharing the prefix. TTL is unsupported. Mutations never trigger flush; optional remote mode waits for background/explicit persistence.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Example
demoProject disk name, or the disk ID in the actor runtime disk URL.
Example
appNamespace on this disk.
Request Bodyrequired
Section titled “Request Bodyrequired”object
Example
{ "op": "scan", "prefix": "greet", "limit": 10}Responses
Section titled “Responses”JSON response for get/exists/put/delete/batch, NDJSON entries for scan. Missing get returns found:false with HTTP 200.
object
object
object
object
object
Opaque decimal sequence string.
Example
{"key":"greeting","value":{"type":"text","value":"Hello"},"revision":"7"}Invalid input, query, name or source.
Missing, invalid or revoked project API key, or an invalid runtime access token.
object
Actor runtime token does not authorize this disk or instance generation.
object
Disk not found in this project.
object
KV size or request-body limit exceeded.
KV body requires application/json.
KV JSON shape or operation is unsupported.
Storage, I/O or corruption failure.
Disk unavailable.