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 REST API (curl) examples.
.claude/skills/team-telnyx-telnyx-storage-curl/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | -12% | 0% |
| case-02 | ✗→✓ | ▲ Improved | 17% | 0% |
| case-03 | ✗→✓ | ▲ Improved | 101% | 0% |
| case-04 | ✗→✓ | ▲ Improved | -5% | 0% |
| case-05 | ✗→✓ | ▲ Improved | -23% | 0% |
<!-- Auto-generated from Telnyx OpenAPI specs. Do not edit. -->
text# curl is pre-installed on macOS, Linux, and Windows 10+
bashexport TELNYX_API_KEY="YOUR_API_KEY_HERE"
All examples below use $TELNYX_API_KEY for authentication.
All API calls can fail with network errors, rate limits (429), validation errors (422), or authentication errors (401). Always handle errors in production code:
bash# Check HTTP status code in response response=$(curl -s -w "\n%{http_code}" \ -X POST "https://api.telnyx.com/v2/messages" \ -H "Authorization: Bearer $TELNYX_API_KEY" \ -H "Content-Type: application/json" \ -d '{"to": "+13125550001", "from": "+13125550002", "text": "Hello"}') http_code=$(echo "$response" | tail -1) body=$(echo "$response" | sed '$d') case $http_code in 2*) echo "Success: $body" ;; 422) echo "Validation error — check required fields and formats" ;; 429) echo "Rate limited — retry after delay"; sleep 1 ;; 401) echo "Authentication failed — check TELNYX_API_KEY" ;; *) echo "Error $http_code: $body" ;; esac
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
bashcurl -H "Authorization: Bearer $TELNYX_API_KEY" "https://api.telnyx.com/v2/storage/buckets/{bucketName}/ssl_certificate"
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
bashcurl \ -X PUT \ -H "Authorization: Bearer $TELNYX_API_KEY" \ -F "certificate=@/path/to/file" \ -F "private_key=@/path/to/file" \ "https://api.telnyx.com/v2/storage/buckets/{bucketName}/ssl_certificate"
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
bashcurl \ -X DELETE \ -H "Authorization: Bearer $TELNYX_API_KEY" \ "https://api.telnyx.com/v2/storage/buckets/{bucketName}/ssl_certificate"
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
bashcurl -H "Authorization: Bearer $TELNYX_API_KEY" "https://api.telnyx.com/v2/storage/buckets/{bucketName}/usage/api?filter={'start_time': '2020-01-01T00:00:00.000Z', 'end_time': '2020-01-01T00:00:00.000Z'}"
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
bashcurl -H "Authorization: Bearer $TELNYX_API_KEY" "https://api.telnyx.com/v2/storage/buckets/{bucketName}/usage/storage"
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)
bashcurl \ -X POST \ -H "Authorization: Bearer $TELNYX_API_KEY" \ -H "Content-Type: application/json" \ "https://api.telnyx.com/v2/storage/buckets/{bucketName}/{objectName}/presigned_url"
Returns: content (object)
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→pass | 13,392 | 2,933 | -78% | 1 | 1 | 0% | 2,354 | 2,066 | -12% | 0 | 0 | — |
case-02 | fail→pass | 9,149 | 3,605 | -61% | 1 | 1 | 0% | 1,855 | 2,162 | +17% | 0 | 0 | — |
case-03 | fail→pass | 15,763 | 3,508 | -78% | 1 | 1 | 0% | 1,048 | 2,104 | +101% | 0 | 0 | — |
case-04 | fail→pass | 9,471 | 1,724 | -82% | 1 | 1 | 0% | 1,804 | 1,718 | -5% | 0 | 0 | — |
case-05 | fail→pass | 14,688 | 2,237 | -85% | 1 | 1 | 0% | 2,320 | 1,783 | -23% | 0 | 0 | — |
case-06 | fail→pass | 23,066 | 4,326 | -81% | 1 | 1 | 0% | 4,148 | 2,306 | -44% | 0 | 0 | — |
case-07 | fail→pass | 8,245 | 3,061 | -63% | 1 | 1 | 0% | 1,730 | 2,033 | +18% | 0 | 0 | — |
case-08 | pass→pass | 9,636 | 4,489 | -53% | 1 | 1 | 0% | 1,951 | 2,359 | +21% | 0 | 0 | — |
case-09 | fail→pass | 17,408 | 2,764 | -84% | 1 | 1 | 0% | 3,138 | 1,990 | -37% | 0 | 0 | — |
case-10 | fail→pass | 10,378 | 4,994 | -52% | 1 | 1 | 0% | 2,203 | 2,531 | +15% | 0 | 0 | — |
case-11 | fail→pass | 11,622 | 3,490 | -70% | 1 | 1 | 0% | 2,159 | 2,129 | -1% | 0 | 0 | — |
case-12 | pass→pass | 7,990 | 2,149 | -73% | 1 | 1 | 0% | 1,413 | 1,742 | +23% | 0 | 0 | — |
case-13 | pass→pass | 9,385 | 2,516 | -73% | 1 | 1 | 0% | 1,705 | 1,790 | +5% | 0 | 0 | — |
case-14 | pass→pass | 10,625 | 4,188 | -61% | 1 | 1 | 0% | 1,851 | 2,169 | +17% | 0 | 0 | — |
case-15 | fail→fail | 11,940 | 3,715 | -69% | 1 | 1 | 0% | 2,293 | 2,165 | -6% | 0 | 0 | — |
case-16 | fail→fail | 8,811 | 3,733 | -58% | 1 | 1 | 0% | 1,681 | 2,117 | +26% | 0 | 0 | — |
case-17 | fail→pass | 16,173 | 2,027 | -87% | 1 | 1 | 0% | 2,808 | 1,784 | -36% | 0 | 0 | — |
case-18 | pass→pass | 18,497 | 1,976 | -89% | 1 | 1 | 0% | 3,169 | 1,743 | -45% | 0 | 0 | — |
case-19 | pass→pass | 3,249 | 1,645 | -49% | 1 | 1 | 0% | 462 | 1,691 | +266% | 0 | 0 | — |
case-20 | pass→pass | 4,908 | 4,234 | -14% | 1 | 1 | 0% | 955 | 2,295 | +140% | 0 | 0 | — |
case-21 | pass→pass | 5,188 | 3,478 | -33% | 1 | 1 | 0% | 952 | 2,016 | +112% | 0 | 0 | — |
case-22 | pass→pass | 4,077 | 3,376 | -17% | 1 | 1 | 0% | 812 | 2,113 | +160% | 0 | 0 | — |
case-23 | pass→pass | 5,000 | 2,228 | -55% | 1 | 1 | 0% | 1,001 | 1,718 | +72% | 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. 23 cases were attempted, and 22 counted toward the lift figure. The other 1 produced results that are not comparable between the two arms, so they are excluded from the headline rather than averaged into it. The headline lift of +48 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.