Skip to content

KV usage

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

This project environment’s stored size and key count as last measured (once a day; measured_at is null before the first measurement), the team’s total against its cap, and 30 days of requests. Needs member.

id
required
string

Project ID

env
required
string

Production or preview

OK

Media type application/json
object
data
meta
object
request_id
string
timestamp
string
trace_id
string
data
object
bytes
integer
environment
string
keys
integer
limit_bytes
integer
measured_at

MeasuredAt is nil before the first daily measurement.

string
requests_30d
object
deletes
integer
lists
integer
reads
integer
writes
integer
team_bytes
integer

Example generated

{
"data": {
"bytes": 1,
"environment": "example",
"keys": 1,
"limit_bytes": 1,
"measured_at": "example",
"requests_30d": {
"deletes": 1,
"lists": 1,
"reads": 1,
"writes": 1
},
"team_bytes": 1
},
"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"
}

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

Live 582ac705 built