api/javascript/telnyx-storage-javascript/SKILL.md
Manage cloud storage buckets and objects using the S3-compatible Telnyx Storage API. This skill provides JavaScript SDK examples.
npx skillsauth add team-telnyx/telnyx-toolkit telnyx-storage-javascriptInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
npm install telnyx
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
All examples below assume client is already initialized as shown above.
Returns a timed and authenticated URL to download (GET) or upload (PUT) an object.
POST /storage/buckets/{bucketName}/{objectName}/presigned_url
const response = await client.storage.buckets.createPresignedURL('', { bucketName: '' });
console.log(response.content);
Returns the stored certificate detail of a bucket, if applicable.
GET /storage/buckets/{bucketName}/ssl_certificate
const sslCertificate = await client.storage.buckets.sslCertificate.retrieve('');
console.log(sslCertificate.data);
Uploads an SSL certificate and its matching secret so that you can use Telnyx's storage as your CDN.
PUT /storage/buckets/{bucketName}/ssl_certificate
const sslCertificate = await client.storage.buckets.sslCertificate.create('');
console.log(sslCertificate.data);
Deletes an SSL certificate and its matching secret.
DELETE /storage/buckets/{bucketName}/ssl_certificate
const sslCertificate = await client.storage.buckets.sslCertificate.delete('');
console.log(sslCertificate.data);
Returns the detail on API usage on a bucket of a particular time period, group by method category.
GET /storage/buckets/{bucketName}/usage/api
const response = await client.storage.buckets.usage.getAPIUsage('', {
filter: { end_time: '2019-12-27T18:11:19.117Z', start_time: '2019-12-27T18:11:19.117Z' },
});
console.log(response.data);
Returns the amount of storage space and number of files a bucket takes up.
GET /storage/buckets/{bucketName}/usage/storage
const response = await client.storage.buckets.usage.getBucketUsage('');
console.log(response.data);
GET /storage/migration_source_coverage
const response = await client.storage.listMigrationSourceCoverage();
console.log(response.data);
GET /storage/migration_sources
const migrationSources = await client.storage.migrationSources.list();
console.log(migrationSources.data);
Create a source from which data can be migrated from.
POST /storage/migration_sources — Required: provider, provider_auth, bucket_name
const migrationSource = await client.storage.migrationSources.create({
bucket_name: 'bucket_name',
provider: 'aws',
provider_auth: {},
});
console.log(migrationSource.data);
GET /storage/migration_sources/{id}
const migrationSource = await client.storage.migrationSources.retrieve('');
console.log(migrationSource.data);
DELETE /storage/migration_sources/{id}
const migrationSource = await client.storage.migrationSources.delete('');
console.log(migrationSource.data);
GET /storage/migrations
const migrations = await client.storage.migrations.list();
console.log(migrations.data);
Initiate a migration of data from an external provider into Telnyx Cloud Storage.
POST /storage/migrations — Required: source_id, target_bucket_name, target_region
const migration = await client.storage.migrations.create({
source_id: 'source_id',
target_bucket_name: 'target_bucket_name',
target_region: 'target_region',
});
console.log(migration.data);
GET /storage/migrations/{id}
const migration = await client.storage.migrations.retrieve('');
console.log(migration.data);
POST /storage/migrations/{id}/actions/stop
const response = await client.storage.migrations.actions.stop('');
console.log(response.data);
tools
Build cross-platform VoIP calling apps with React Native using Telnyx Voice SDK. High-level reactive API with automatic lifecycle management, CallKit/ConnectionService integration, and push notifications. Use for mobile VoIP apps with minimal setup.
tools
Build browser-based VoIP calling apps using Telnyx WebRTC JavaScript SDK. Covers authentication, voice calls, events, debugging, call quality metrics, and AI Agent integration. Use for web-based real-time communication.
tools
Build VoIP calling apps on iOS using Telnyx WebRTC SDK. Covers authentication, making/receiving calls, CallKit integration, PushKit/APNS push notifications, call quality metrics, and AI Agent integration. Use when implementing real-time voice communication on iOS.
tools
Build cross-platform VoIP calling apps with Flutter using Telnyx WebRTC SDK. Covers authentication, making/receiving calls, push notifications (FCM + APNS), call quality metrics, and AI Agent integration. Works on Android, iOS, and Web.