The types in this reference are exported from
@telnyx/edge-runtime (TypeScript) and describe version ≥ 0.2.2 — the first release where expirationTtl is applied and list() entries carry sizeBytes/updatedAt. They describe the env binding — the in-function surface. To read or write KV from another language or outside a function, use the REST API.[storage.kv.<NAME>] in func.toml resolves on env.<NAME> as a KvNamespace.
Getting the Binding
func.toml; run telnyx-edge types (CLI ≥ v0.2.3) after editing the manifest to regenerate telnyx-env.d.ts, which types env.<NAME> as a KvNamespace.
Related Resources
KvNamespace— the method-by-method reference- Bindings — how bindings resolve on
env - REST API — the same operations over HTTP
- Key Expiration — server-side TTL via
expirationTtl,ttl_secs, or--ttl