v51

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-0172165343.2 KB
Key Value Store

Kv Set

KV Set

post/api/v1.kv.set

Request body

namespacestring nullable
keystring required
valueinteger[] required
ttl_msinteger nullable

Time to live in milliseconds

behavior'upsert' | 'insert' | 'update'
versioninteger nullable

If set, the write only succeeds when the stored version matches this value. Use the version field from a prior get response.

Example request

{
  "namespace": "some_namespace",
  "key": "some_key"
}

Response

versioninteger required