KV prefix level
const url = 'https://api.deploybase.eu/api/v1/api/v1/projects/example/kv/prefixes?prefix=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/prefixes?prefix=example' \ --header 'Authorization: <Authorization>'The rows one level below prefix in a store, from a live listing (live true, counted_at null): child prefixes (prefix plus the key up to and including its next “/”), at most 20 by keys desc, ties by prefix, the rest folded; plus one row with no_separator true and prefix equal to the level for keys that stop there. prefix must end with “/” and starts at the beginning of a key (a leading “/” is part of the key, as in /cart/). Refused with 422 KV_PREFIX_TOO_LARGE when the daily count puts the first-level prefix holding it above 10,000 keys, or when the listing passes 10,000 keys. Needs member.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Project ID
Query Parameters
Section titled “ Query Parameters ”Production (default) or preview
Store name (default: default)
Level prefix, ending in /
Responses
Section titled “ Responses ”OK
object
object
object
Keys and Bytes are everything under Prefix, from the live listing.
Live is always true and CountedAt always null: these numbers are not from the daily count.
Prefixes: at most 20 child prefixes by keys desc, ties by prefix, plus the row of keys that stop at this level (no_separator, prefix == Prefix) when there are any.
object
object
Example generated
{ "data": { "bytes": 1, "counted_at": "example", "environment": "example", "keys": 1, "live": true, "prefix": "example", "prefixes": [ { "bytes": 1, "keys": 1, "no_separator": true, "prefix": "example" } ], "rest": { "bytes": 1, "keys": 1, "prefixes": 1 }, "store": "example" }, "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}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"}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_PREFIX_TOO_LARGE
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_RATE_LIMITED
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