Skip to main content
POST
/
storage
/
kvs
JavaScript
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.create({
  name: 'my-cache',
});

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

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

KV namespace creation request

name
string
required

Namespace name. May contain lowercase letters, numbers, and hyphens only.

Required string length: 1 - 255
Pattern: ^[a-z0-9-]+$
Example:

"my-cache"

Response

KV namespace created successfully

data
object