api/go/telnyx-storage-go/SKILL.md
Manage cloud storage buckets and objects using the S3-compatible Telnyx Storage API. This skill provides Go SDK examples.
npx skillsauth add team-telnyx/telnyx-toolkit telnyx-storage-goInstall 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.
go get github.com/team-telnyx/telnyx-go
import (
"context"
"fmt"
"os"
"github.com/team-telnyx/telnyx-go"
"github.com/team-telnyx/telnyx-go/option"
)
client := telnyx.NewClient(
option.WithAPIKey(os.Getenv("TELNYX_API_KEY")),
)
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
response, err := client.Storage.Buckets.NewPresignedURL(
context.TODO(),
"",
telnyx.StorageBucketNewPresignedURLParams{
BucketName: "",
},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", response.Content)
Returns the stored certificate detail of a bucket, if applicable.
GET /storage/buckets/{bucketName}/ssl_certificate
sslCertificate, err := client.Storage.Buckets.SslCertificate.Get(context.TODO(), "")
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", 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
sslCertificate, err := client.Storage.Buckets.SslCertificate.New(
context.TODO(),
"",
telnyx.StorageBucketSslCertificateNewParams{},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", sslCertificate.Data)
Deletes an SSL certificate and its matching secret.
DELETE /storage/buckets/{bucketName}/ssl_certificate
sslCertificate, err := client.Storage.Buckets.SslCertificate.Delete(context.TODO(), "")
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", 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
response, err := client.Storage.Buckets.Usage.GetAPIUsage(
context.TODO(),
"",
telnyx.StorageBucketUsageGetAPIUsageParams{
Filter: telnyx.StorageBucketUsageGetAPIUsageParamsFilter{
EndTime: time.Now(),
StartTime: time.Now(),
},
},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", response.Data)
Returns the amount of storage space and number of files a bucket takes up.
GET /storage/buckets/{bucketName}/usage/storage
response, err := client.Storage.Buckets.Usage.GetBucketUsage(context.TODO(), "")
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", response.Data)
GET /storage/migration_source_coverage
response, err := client.Storage.ListMigrationSourceCoverage(context.TODO())
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", response.Data)
GET /storage/migration_sources
migrationSources, err := client.Storage.MigrationSources.List(context.TODO())
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", migrationSources.Data)
Create a source from which data can be migrated from.
POST /storage/migration_sources — Required: provider, provider_auth, bucket_name
migrationSource, err := client.Storage.MigrationSources.New(context.TODO(), telnyx.StorageMigrationSourceNewParams{
MigrationSourceParams: telnyx.MigrationSourceParams{
BucketName: "bucket_name",
Provider: telnyx.MigrationSourceParamsProviderAws,
ProviderAuth: telnyx.MigrationSourceParamsProviderAuth{},
},
})
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", migrationSource.Data)
GET /storage/migration_sources/{id}
migrationSource, err := client.Storage.MigrationSources.Get(context.TODO(), "")
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", migrationSource.Data)
DELETE /storage/migration_sources/{id}
migrationSource, err := client.Storage.MigrationSources.Delete(context.TODO(), "")
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", migrationSource.Data)
GET /storage/migrations
migrations, err := client.Storage.Migrations.List(context.TODO())
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", 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
migration, err := client.Storage.Migrations.New(context.TODO(), telnyx.StorageMigrationNewParams{
MigrationParams: telnyx.MigrationParams{
SourceID: "source_id",
TargetBucketName: "target_bucket_name",
TargetRegion: "target_region",
},
})
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", migration.Data)
GET /storage/migrations/{id}
migration, err := client.Storage.Migrations.Get(context.TODO(), "")
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", migration.Data)
POST /storage/migrations/{id}/actions/stop
response, err := client.Storage.Migrations.Actions.Stop(context.TODO(), "")
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", 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.