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 Java SDK examples.
.claude/skills/team-telnyx-telnyx-storage-java/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-02 | ✗→✓ | ▲ Improved | -13% | 0% |
| case-01 | ✗→✓ | ▲ Improved | 8% | 0% |
| case-03 | ✗→✓ | ▲ Improved | 12% | 0% |
| case-04 | ✗→✓ | ▲ Improved | 6% | 0% |
| case-05 | ✗→✓ | ▲ Improved | 102% | 0% |
<!-- Auto-generated from Telnyx OpenAPI specs. Do not edit. -->
text<!-- Maven --> <dependency> <groupId>com.telnyx.sdk</groupId> <artifactId>telnyx</artifactId> <version>6.89.0</version> </dependency> // Gradle implementation("com.telnyx.sdk:telnyx:6.89.0")
javaimport com.telnyx.sdk.client.TelnyxClient; import com.telnyx.sdk.client.okhttp.TelnyxOkHttpClient; TelnyxClient client = TelnyxOkHttpClient.fromEnv();
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:
javaimport com.telnyx.sdk.errors.TelnyxServiceException; try { var result = client.messages().send(params); } catch (TelnyxServiceException e) { System.err.println("API error " + e.statusCode() + ": " + e.getMessage()); if (e.statusCode() == 422) { System.err.println("Validation error — check required fields and formats"); } else if (e.statusCode() == 429) { // Rate limited — wait and retry with exponential backoff Thread.sleep(1000); } }
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
javaimport com.telnyx.sdk.models.storage.buckets.sslcertificate.SslCertificateRetrieveParams; import com.telnyx.sdk.models.storage.buckets.sslcertificate.SslCertificateRetrieveResponse; SslCertificateRetrieveResponse sslCertificate = client.storage().buckets().sslCertificate().retrieve("");
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
javaimport com.telnyx.sdk.models.storage.buckets.sslcertificate.SslCertificateCreateParams; import com.telnyx.sdk.models.storage.buckets.sslcertificate.SslCertificateCreateResponse; SslCertificateCreateResponse sslCertificate = client.storage().buckets().sslCertificate().create("");
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
javaimport com.telnyx.sdk.models.storage.buckets.sslcertificate.SslCertificateDeleteParams; import com.telnyx.sdk.models.storage.buckets.sslcertificate.SslCertificateDeleteResponse; SslCertificateDeleteResponse sslCertificate = client.storage().buckets().sslCertificate().delete("");
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
javaimport com.telnyx.sdk.models.storage.buckets.usage.UsageGetApiUsageParams; import com.telnyx.sdk.models.storage.buckets.usage.UsageGetApiUsageResponse; import java.time.OffsetDateTime; UsageGetApiUsageParams params = UsageGetApiUsageParams.builder() .bucketName("") .filter(UsageGetApiUsageParams.Filter.builder() .endTime(OffsetDateTime.parse("2019-12-27T18:11:19.117Z")) .startTime(OffsetDateTime.parse("2019-12-27T18:11:19.117Z")) .build()) .build(); UsageGetApiUsageResponse response = client.storage().buckets().usage().getApiUsage(params);
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
javaimport com.telnyx.sdk.models.storage.buckets.usage.UsageGetBucketUsageParams; import com.telnyx.sdk.models.storage.buckets.usage.UsageGetBucketUsageResponse; UsageGetBucketUsageResponse response = client.storage().buckets().usage().getBucketUsage("");
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)
javaimport com.telnyx.sdk.models.storage.buckets.BucketCreatePresignedUrlParams; import com.telnyx.sdk.models.storage.buckets.BucketCreatePresignedUrlResponse; BucketCreatePresignedUrlParams params = BucketCreatePresignedUrlParams.builder() .bucketName("") .objectName("") .build(); BucketCreatePresignedUrlResponse response = client.storage().buckets().createPresignedUrl(params);
Returns: content (object)
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-02 | fail→pass | 17,293 | 6,929 | -60% | 1 | 1 | 0% | 3,623 | 3,164 | -13% | 0 | 0 | — |
case-01 | fail→pass | 57,075 | 42,380 | -26% | 1 | 1 | 0% | 4,082 | 4,393 | +8% | 0 | 0 | — |
case-03 | fail→pass | 20,604 | 21,531 | +4% | 1 | 1 | 0% | 4,586 | 5,152 | +12% | 0 | 0 | — |
case-04 | fail→pass | 9,105 | 1,787 | -80% | 1 | 1 | 0% | 1,786 | 1,900 | +6% | 0 | 0 | — |
case-05 | fail→pass | 5,238 | 2,742 | -48% | 1 | 1 | 0% | 1,015 | 2,046 | +102% | 0 | 0 | — |
case-06 | fail→pass | 11,919 | 3,546 | -70% | 1 | 1 | 0% | 2,174 | 2,249 | +3% | 0 | 0 | — |
case-07 | fail→pass | 14,515 | 3,626 | -75% | 1 | 1 | 0% | 3,293 | 2,365 | -28% | 0 | 0 | — |
case-08 | fail→pass | 11,185 | 5,804 | -48% | 1 | 1 | 0% | 2,244 | 2,474 | +10% | 0 | 0 | — |
case-09 | fail→pass | 15,412 | 10,346 | -33% | 1 | 1 | 0% | 3,283 | 3,056 | -7% | 0 | 0 | — |
case-10 | fail→pass | 20,754 | 3,263 | -84% | 1 | 1 | 0% | 2,931 | 2,324 | -21% | 0 | 0 | — |
case-11 | fail→pass | 50,477 | 32,937 | -35% | 1 | 1 | 0% | 3,905 | 2,145 | -45% | 0 | 0 | — |
case-12 | fail→pass | 21,659 | 10,794 | -50% | 1 | 1 | 0% | 3,934 | 2,079 | -47% | 0 | 0 | — |
case-13 | fail→pass | 36,415 | 4,733 | -87% | 1 | 1 | 0% | 3,020 | 2,588 | -14% | 0 | 0 | — |
case-14 | fail→pass | 11,192 | 5,717 | -49% | 1 | 1 | 0% | 2,524 | 2,820 | +12% | 0 | 0 | — |
case-15 | pass→pass | 14,833 | 3,546 | -76% | 1 | 1 | 0% | 3,000 | 2,304 | -23% | 0 | 0 | — |
case-16 | pass→pass | 12,624 | 4,811 | -62% | 1 | 1 | 0% | 2,401 | 2,528 | +5% | 0 | 0 | — |
case-17 | fail→pass | 15,832 | 3,801 | -76% | 1 | 1 | 0% | 2,942 | 2,347 | -20% | 0 | 0 | — |
case-18 | fail→pass | 9,339 | 3,133 | -66% | 1 | 1 | 0% | 1,699 | 2,189 | +29% | 0 | 0 | — |
case-19 | pass→pass | 16,267 | 15,912 | -2% | 1 | 1 | 0% | 3,429 | 5,058 | +48% | 0 | 0 | — |
case-20 | pass→pass | 12,231 | 12,095 | -1% | 1 | 1 | 0% | 2,492 | 4,147 | +66% | 0 | 0 | — |
case-21 | pass→pass | 14,495 | 9,704 | -33% | 1 | 1 | 0% | 2,879 | 3,537 | +23% | 0 | 0 | — |
case-22 | fail→fail | 26,766 | 3,155 | -88% | 1 | 1 | 0% | 3,667 | 2,201 | -40% | 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.
| Model | Method | Date | Lift |
|---|---|---|---|
| gemini-3.6-flash | verified | 8/22/2026 | +64% |
Other measured skills in the registry, with their headline benchmark lift.