Get a KV namespace
Retrieves a KV namespace by its ID, including its provisioning status.
GET
JavaScript
JavaScript
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Check out our upcoming events and meetups! View events →
Retrieves a KV namespace by its ID, including its provisioning status.
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const KvNamespaceResponseWrapper = await client.storage.kvs.retrieve('id');
console.log(KvNamespaceResponseWrapper.data);{
"data": {
"record_type": "storage_kv",
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "my-cache",
"status": "provision_ok",
"created_at": "2026-06-18T14:48:17Z",
"updated_at": "2026-06-18T14:48:17Z"
}
}Was this page helpful?
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const KvNamespaceResponseWrapper = await client.storage.kvs.retrieve('id');
console.log(KvNamespaceResponseWrapper.data);{
"data": {
"record_type": "storage_kv",
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "my-cache",
"status": "provision_ok",
"created_at": "2026-06-18T14:48:17Z",
"updated_at": "2026-06-18T14:48:17Z"
}
}