Two Ways to Use KV
The same namespaces and keys are reachable two ways. Pick based on where your code runs.
Both hit the same store, so a value written through the binding is immediately readable over REST and vice versa. The binding is a thin, pre-authenticated wrapper over the same REST endpoints — it just means your function never handles an API key. The complete endpoint reference — namespaces and keys, with request/response schemas and code samples — is generated from the OpenAPI spec and lives in the REST API group of this KV section in the sidebar.
The
env KV binding is TypeScript-only and requires @telnyx/edge-runtime ≥ 0.2.2. Go, JS, Python, and Quarkus functions use the REST API directly.Next Steps
- Quick Start — Create a namespace, bind it, read and write
- How KV Works — Keys, TTL, and the consistency model
- Examples — Session storage, caching, and feature flags
- Runtime API — the
envbinding surface (KvNamespace) - CLI Commands — Manage KV from the command line
- Pricing — Free tier and paid plans