Skip to content

KV overview

GET
/api/v1/projects/{id}/kv/overview
curl --request GET \
--url https://api.deploybase.eu/api/v1/api/v1/projects/example/kv/overview \
--header 'Authorization: <Authorization>'

One summary for the KV page, the project overview and the kv_overview MCP tool (DEP-1028). The live store list (it stops at 1,000: stores_truncated) merged with the daily count: per store its keys, bytes and first-level prefix rows (grouped on “/”, a leading “/” kept; no_separator marks keys with no “/”, prefix “”), at most 20 by keys desc plus the folded rest. A store the count has not seen yet has counted false and null keys and bytes; a counted store that no longer exists is left out. Stores sort by keys desc, ties by name, uncounted last. measured_at is when this project environment was last counted (once a day), null before the first. team is the whole team (every project, both environments) against limits.team_bytes. Needs member.

id
required
string

Project ID

env
string

Production (default) or preview

OK

Media type application/json
object
data
meta
object
request_id
string
timestamp
string
trace_id
string
data
object
environment
string
limits
object
at_limit

AtLimit is what happens past TeamBytes, in plain words.

string
team_bytes

TeamBytes is the team’s storage cap (1 GB in the beta).

integer
value_bytes

ValueBytes is the largest value (1 MB); a larger write is 413 KV_VALUE_TOO_LARGE.

integer
measured_at

MeasuredAt is when this project environment was last counted, null before the first count.

string
project

Project is this project environment’s measured keys and bytes (zero before the first count).

object
bytes
integer
keys
integer
stores

Stores are the live stores, largest first (keys desc, ties by name; uncounted ones last).

Array<object>
object
bytes
integer
counted
boolean
keys
integer
name
string
prefixes
Array<object>
object
bytes
integer
keys
integer
no_separator
boolean
prefix
string
rest
object
bytes
integer
keys
integer
prefixes
integer
stores_truncated

StoresTruncated: the live store listing stops at 1,000 stores.

boolean
team
object
bytes
integer
limit_bytes
integer
measured_at
string

Example generated

{
"data": {
"environment": "example",
"limits": {
"at_limit": "example",
"team_bytes": 1,
"value_bytes": 1
},
"measured_at": "example",
"project": {
"bytes": 1,
"keys": 1
},
"stores": [
{
"bytes": 1,
"counted": true,
"keys": 1,
"name": "example",
"prefixes": [
{
"bytes": 1,
"keys": 1,
"no_separator": true,
"prefix": "example"
}
],
"rest": {
"bytes": 1,
"keys": 1,
"prefixes": 1
}
}
],
"stores_truncated": true,
"team": {
"bytes": 1,
"limit_bytes": 1,
"measured_at": "example"
}
},
"meta": {
"request_id": "example",
"timestamp": "example",
"trace_id": "example"
}
}

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"
}

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_RATE_LIMITED

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