Read a KV value
const url = 'https://api.deploybase.eu/api/v1/api/v1/projects/example/kv/value?env=example&key=example';const options = {method: 'GET', headers: {Authorization: '<Authorization>'}};
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://api.deploybase.eu/api/v1/api/v1/projects/example/kv/value?env=example&key=example' \ --header 'Authorization: <Authorization>'One key’s value, version, metadata, expiry and last writer (written_by: a person, an agent for a person, an API key or a function, with when; kind unknown for keys written before writers were recorded; user_email only for owners and admins). Up to 64 KB inline: utf8 when the value is valid UTF-8, else base64. Larger values come back truncated with their size and no value. Needs member (values can hold personal data).
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Project ID
Query Parameters
Section titled “ Query Parameters ”Production or preview
Store name (default: default)
Key
Responses
Section titled “ Responses ”OK
object
object
object
Encoding is utf8 for valid UTF-8, else base64. Empty when Truncated.
object
WrittenBy is who wrote the key last and when (DEP-1029); kind unknown for keys written before it was recorded.
object
At is when the key was last written; only on written_by.
Kind is user, agent, api_key, function or unknown.
Name is ready to show: “Jesse”, “Claude Code for Jesse”, “API key deploy-bot”, “function in deployment abc1234”, “Former member”, “Not recorded”.
UserEmail is the person’s email, for owners and admins only.
Example
{ "data": { "written_by": { "kind": "agent", "name": "Claude Code for Jesse" } }}Bad Request
object
object
object
The structured outcome (ADR-030, DEP-965). Optional and additive: only the operations endpoints fill them so far, and a client that does not know them reads the rest as before.
Example generated
{ "code": "example", "details": "example", "docs_url": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }, "next_actions": [ { "action": "example", "cli": "example", "description": "example", "http": "example", "tool": "example" } ], "reason": "example", "who_acts": "example"}KV_NOT_ENABLED, or FORBIDDEN below member
object
object
object
The structured outcome (ADR-030, DEP-965). Optional and additive: only the operations endpoints fill them so far, and a client that does not know them reads the rest as before.
Example generated
{ "code": "example", "details": "example", "docs_url": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }, "next_actions": [ { "action": "example", "cli": "example", "description": "example", "http": "example", "tool": "example" } ], "reason": "example", "who_acts": "example"}KV_NOT_FOUND for a missing or expired key, PROJECT_NOT_FOUND
object
object
object
The structured outcome (ADR-030, DEP-965). Optional and additive: only the operations endpoints fill them so far, and a client that does not know them reads the rest as before.
Example generated
{ "code": "example", "details": "example", "docs_url": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }, "next_actions": [ { "action": "example", "cli": "example", "description": "example", "http": "example", "tool": "example" } ], "reason": "example", "who_acts": "example"}KV_UNAVAILABLE
object
object
object
The structured outcome (ADR-030, DEP-965). Optional and additive: only the operations endpoints fill them so far, and a client that does not know them reads the rest as before.
Example generated
{ "code": "example", "details": "example", "docs_url": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }, "next_actions": [ { "action": "example", "cli": "example", "description": "example", "http": "example", "tool": "example" } ], "reason": "example", "who_acts": "example"}Live 582ac705 built