Skip to content

Get Key/Value

GET https://api.echovalue.dev/kv/<bucket>/<key>

Retrieves the stored value for a key.

Headers:

HeaderDescription
x-tokenYour API token

Path parameters:

ParameterTypeDescription
bucketstringLogical namespace. Max 30 characters.
keystringKey identifier. Max 30 characters.
Terminal window
curl 'https://api.echovalue.dev/kv/default/mykey' \
-H 'x-token: mytoken'

200 OK — The stored value as plain text.

hello world

Response headers:

HeaderDescription
x-balanceWallet balance after this call
x-costCredits consumed

See Response Headers for details.

StatusMeaning
200Value returned
400Invalid parameters
401Invalid token
402Insufficient credits
404Key does not exist or has expired
  • The response body is plain text, not JSON.