Skip to main content
GET
/
storage
/
kvs
/
{id}
/
keys
/
{key}
JavaScript
import Telnyx from 'telnyx';

const client = new Telnyx({
  apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});

const response = await client.storage.kvs.keys.retrieve('id', 'key');

console.log(response.data);
"<string>"

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string<uuid>
required

KV namespace ID

key
string
required

Key name. Allowed characters: a-z A-Z 0-9 - _ / = .; maximum 256 characters; names starting with _ are reserved for system use. May contain /; URL-encode it so the whole string is treated as one key (for example user/1 -> user%2F1).

Maximum string length: 256
Pattern: ^[-/_=.a-zA-Z0-9]+$

Response

Value retrieved successfully. The Content-Type header is the value's stored content type (defaults to application/octet-stream).

The response is of type file.