Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Manage cloud storage buckets and objects using the S3-compatible Telnyx Storage API. This skill provides Go SDK examples.
.claude/skills/team-telnyx-telnyx-storage-go/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-14 | ✗→✓ | ▲ Improved | -12% | 0% |
| case-01 | ✗→✓ | ▲ Improved | 9% | 0% |
| case-02 | ✗→✓ | ▲ Improved | -41% | 0% |
| case-03 | ✗→✓ | ▲ Improved | -33% | 0% |
| case-04 | ✗→✓ | ▲ Improved | -27% | 0% |
<!-- Auto-generated from Telnyx OpenAPI specs. Do not edit. -->
bashgo get github.com/team-telnyx/telnyx-go
goimport ( "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.
All API calls can fail with network errors, rate limits (429), validation errors (422), or authentication errors (401). Always handle errors in production code:
goimport "errors" result, err := client.Messages.Send(ctx, params) if err != nil { var apiErr *telnyx.Error if errors.As(err, &apiErr) { switch apiErr.StatusCode { case 422: fmt.Println("Validation error — check required fields and formats") case 429: // Rate limited — wait and retry with exponential backoff fmt.Println("Rate limited, retrying...") default: fmt.Printf("API error %d: %s\n", apiErr.StatusCode, apiErr.Error()) } } else { fmt.Println("Network error — check connectivity and retry") } }
Common error codes: 401 invalid API key, 403 insufficient permissions, 404 resource not found, 422 validation error (check field formats), 429 rate limited (retry with exponential backoff).
Returns the stored certificate detail of a bucket, if applicable.
GET /storage/buckets/{bucketName}/ssl_certificate
gosslCertificate, err := client.Storage.Buckets.SslCertificate.Get(context.Background(), "") if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", sslCertificate.Data)
Returns: created_at (date-time), id (string), issued_by (object), issued_to (object), valid_from (date-time), valid_to (date-time)
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
gosslCertificate, err := client.Storage.Buckets.SslCertificate.New( context.Background(), "", telnyx.StorageBucketSslCertificateNewParams{}, ) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", sslCertificate.Data)
Returns: created_at (date-time), id (string), issued_by (object), issued_to (object), valid_from (date-time), valid_to (date-time)
Deletes an SSL certificate and its matching secret.
DELETE /storage/buckets/{bucketName}/ssl_certificate
gosslCertificate, err := client.Storage.Buckets.SslCertificate.Delete(context.Background(), "") if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", sslCertificate.Data)
Returns: created_at (date-time), id (string), issued_by (object), issued_to (object), valid_from (date-time), valid_to (date-time)
Returns the detail on API usage on a bucket of a particular time period, group by method category.
GET /storage/buckets/{bucketName}/usage/api
goresponse, err := client.Storage.Buckets.Usage.GetAPIUsage( context.Background(), "", telnyx.StorageBucketUsageGetAPIUsageParams{ Filter: telnyx.StorageBucketUsageGetAPIUsageParamsFilter{ EndTime: time.Now(), StartTime: time.Now(), }, }, ) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", response.Data)
Returns: categories (arrayobject]), timestamp (date-time), total (object)
Returns the amount of storage space and number of files a bucket takes up.
GET /storage/buckets/{bucketName}/usage/storage
goresponse, err := client.Storage.Buckets.Usage.GetBucketUsage(context.Background(), "") if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", response.Data)
Returns: num_objects (integer), size (integer), size_kb (integer), timestamp (date-time)
Returns a timed and authenticated URL to download (GET) or upload (PUT) an object. This is the equivalent to AWS S3’s “presigned” URL. Please note that Telnyx performs authentication differently from AWS S3 and you MUST NOT use the presign method of AWS s3api CLI or SDK to generate the presigned URL.
Refer to: https://developers.telnyx.com/docs/cloud-storage/presigned-urls
POST /storage/buckets/{bucketName}/{objectName}/presigned_url
Optional: ttl (integer)
goresponse, err := client.Storage.Buckets.NewPresignedURL( context.Background(), "", telnyx.StorageBucketNewPresignedURLParams{ BucketName: "", }, ) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", response.Content)
Returns: content (object)
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-14 | fail→pass | 31,027 | 4,211 | -86% | 1 | 1 | 0% | 2,603 | 2,286 | -12% | 0 | 0 | — |
case-01 | fail→pass | 18,565 | 12,211 | -34% | 1 | 1 | 0% | 3,825 | 4,183 | +9% | 0 | 0 | — |
case-02 | fail→pass | 23,809 | 7,481 | -69% | 1 | 1 | 0% | 5,119 | 3,029 | -41% | 0 | 0 | — |
case-03 | fail→pass | 23,292 | 8,694 | -63% | 1 | 1 | 0% | 5,054 | 3,399 | -33% | 0 | 0 | — |
case-04 | fail→pass | 13,571 | 3,121 | -77% | 1 | 1 | 0% | 2,812 | 2,045 | -27% | 0 | 0 | — |
case-05 | fail→pass | 17,211 | 10,106 | -41% | 1 | 1 | 0% | 3,401 | 3,564 | +5% | 0 | 0 | — |
case-06 | fail→pass | 16,786 | 8,056 | -52% | 1 | 1 | 0% | 3,246 | 3,082 | -5% | 0 | 0 | — |
case-07 | fail→pass | 16,388 | 7,131 | -56% | 1 | 1 | 0% | 3,404 | 3,060 | -10% | 0 | 0 | — |
case-08 | fail→pass | 11,094 | 3,075 | -72% | 1 | 1 | 0% | 1,839 | 2,082 | +13% | 0 | 0 | — |
case-09 | fail→pass | 9,894 | 3,909 | -60% | 1 | 1 | 0% | 2,052 | 2,192 | +7% | 0 | 0 | — |
case-10 | fail→pass | 13,812 | 3,411 | -75% | 1 | 1 | 0% | 2,851 | 2,053 | -28% | 0 | 0 | — |
case-11 | fail→pass | 12,311 | 29,797 | +142% | 1 | 1 | 0% | 2,419 | 2,317 | -4% | 0 | 0 | — |
case-12 | fail→pass | 15,445 | 4,197 | -73% | 1 | 1 | 0% | 3,143 | 2,341 | -26% | 0 | 0 | — |
case-13 | fail→pass | 13,231 | 6,359 | -52% | 1 | 1 | 0% | 2,620 | 2,727 | +4% | 0 | 0 | — |
case-15 | pass→pass | 6,522 | 1,467 | -78% | 1 | 1 | 0% | 1,302 | 1,673 | +28% | 0 | 0 | — |
case-16 | pass→pass | 15,477 | 4,812 | -69% | 1 | 1 | 0% | 2,768 | 2,502 | -10% | 0 | 0 | — |
case-17 | pass→pass | 3,467 | 1,630 | -53% | 1 | 1 | 0% | 510 | 1,710 | +235% | 0 | 0 | — |
case-18 | fail→pass | 7,179 | 1,915 | -73% | 1 | 1 | 0% | 1,344 | 1,796 | +34% | 0 | 0 | — |
case-19 | fail→pass | 8,301 | 2,085 | -75% | 1 | 1 | 0% | 1,615 | 1,861 | +15% | 0 | 0 | — |
case-20 | pass→pass | 7,967 | 7,354 | -8% | 1 | 1 | 0% | 1,691 | 3,060 | +81% | 0 | 0 | — |
case-21 | pass→pass | 6,585 | 7,085 | +8% | 1 | 1 | 0% | 1,475 | 3,046 | +107% | 0 | 0 | — |
case-22 | pass→pass | 6,414 | 5,976 | -7% | 1 | 1 | 0% | 1,353 | 2,784 | +106% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted. The headline lift of +73 percentage points is the difference between those two pass rates over the 22 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.