Read a KV key
GET
/api/v1/storage/kv/{namespace}/value
const url = 'https://digize.com/api/v1/storage/kv/example/value?key=example';const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://digize.com/api/v1/storage/kv/example/value?key=example' \ --header 'x-api-key: <x-api-key>'A key’s value, as text unless it’s binary, with its metadata and expiry. Null if there’s no such key.
Needs the sites:read permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”namespace
required
string
Query Parameters
Section titled “Query Parameters”key
required
string
Responses
Section titled “Responses”Done
Media typeapplication/json
Any of:
null
Example generated
{ "value": "example", "size": 1, "metadata": { "additionalProperty": "example" }, "expiration": "2026-04-15T12:00:00Z"}What was sent isn’t valid (invalid).
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}No key, or one that’s unknown, off or expired.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}The key doesn’t have the permission this needs.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}Nothing has that id (not_found).
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}Over the rate limit; see retry-after.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}