Skip to content

Read a KV value

GET
/api/v1/projects/{id}/kv/value
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).

id
required
string

Project ID

env
required
string

Production or preview

store
string

Store name (default: default)

key
required
string

Key

OK

Media type application/json
object
data
meta
object
request_id
string
timestamp
string
trace_id
string
data
object
encoding

Encoding is utf8 for valid UTF-8, else base64. Empty when Truncated.

string
environment
string
expires_at
string
key
string
metadata
object
size
integer
store
string
truncated
boolean
value
string
version
string
written_by

WrittenBy is who wrote the key last and when (DEP-1029); kind unknown for keys written before it was recorded.

object
agent_client_name
string
agent_connection_id
string
api_key_id
string
api_key_name
string
at

At is when the key was last written; only on written_by.

string
deployment_id
string
kind

Kind is user, agent, api_key, function or unknown.

string
name

Name is ready to show: “Jesse”, “Claude Code for Jesse”, “API key deploy-bot”, “function in deployment abc1234”, “Former member”, “Not recorded”.

string
user_email

UserEmail is the person’s email, for owners and admins only.

string

Example

{
"data": {
"written_by": {
"kind": "agent",
"name": "Claude Code for Jesse"
}
}
}

Bad Request

Media type application/json
object
code
string
details
docs_url
string
error
string
meta
object
request_id
string
timestamp
string
trace_id
string
next_actions
Array<object>
object
action
string
cli
string
description
string
http
string
tool
string
reason

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.

string
who_acts
string

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

Media type application/json
object
code
string
details
docs_url
string
error
string
meta
object
request_id
string
timestamp
string
trace_id
string
next_actions
Array<object>
object
action
string
cli
string
description
string
http
string
tool
string
reason

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.

string
who_acts
string

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

Media type application/json
object
code
string
details
docs_url
string
error
string
meta
object
request_id
string
timestamp
string
trace_id
string
next_actions
Array<object>
object
action
string
cli
string
description
string
http
string
tool
string
reason

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.

string
who_acts
string

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

Media type application/json
object
code
string
details
docs_url
string
error
string
meta
object
request_id
string
timestamp
string
trace_id
string
next_actions
Array<object>
object
action
string
cli
string
description
string
http
string
tool
string
reason

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.

string
who_acts
string

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