{"id":"f71f1295-0d24-4b61-98da-28122c49db5b","shortId":"j4fetd","kind":"skill","title":"telnyx-storage-curl","tagline":">-","description":"<!-- Auto-generated from Telnyx OpenAPI specs. Do not edit. -->\n\n# Telnyx Storage - curl\n\n## Installation\n\n```text\n# curl is pre-installed on macOS, Linux, and Windows 10+\n```\n\n## Setup\n\n```bash\nexport TELNYX_API_KEY=\"YOUR_API_KEY_HERE\"\n```\n\nAll examples below use `$TELNYX_API_KEY` for authentication.\n\n## Error Handling\n\nAll API calls can fail with network errors, rate limits (429), validation errors (422),\nor authentication errors (401). Always handle errors in production code:\n\n```bash\n# Check HTTP status code in response\nresponse=$(curl -s -w \"\\n%{http_code}\" \\\n  -X POST \"https://api.telnyx.com/v2/messages\" \\\n  -H \"Authorization: Bearer $TELNYX_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"to\": \"+13125550001\", \"from\": \"+13125550002\", \"text\": \"Hello\"}')\n\nhttp_code=$(echo \"$response\" | tail -1)\nbody=$(echo \"$response\" | sed '$d')\n\ncase $http_code in\n  2*) echo \"Success: $body\" ;;\n  422) echo \"Validation error — check required fields and formats\" ;;\n  429) echo \"Rate limited — retry after delay\"; sleep 1 ;;\n  401) echo \"Authentication failed — check TELNYX_API_KEY\" ;;\n  *)   echo \"Error $http_code: $body\" ;;\nesac\n```\n\nCommon error codes: `401` invalid API key, `403` insufficient permissions,\n`404` resource not found, `422` validation error (check field formats),\n`429` rate limited (retry with exponential backoff).\n\n## Get Bucket SSL Certificate\n\nReturns the stored certificate detail of a bucket, if applicable.\n\n`GET /storage/buckets/{bucketName}/ssl_certificate`\n\n```bash\ncurl -H \"Authorization: Bearer $TELNYX_API_KEY\" \"https://api.telnyx.com/v2/storage/buckets/{bucketName}/ssl_certificate\"\n```\n\nReturns: `created_at` (date-time), `id` (string), `issued_by` (object), `issued_to` (object), `valid_from` (date-time), `valid_to` (date-time)\n\n## Add SSL Certificate\n\nUploads an SSL certificate and its matching secret so that you can use Telnyx's storage as your CDN.\n\n`PUT /storage/buckets/{bucketName}/ssl_certificate`\n\n```bash\ncurl \\\n  -X PUT \\\n  -H \"Authorization: Bearer $TELNYX_API_KEY\" \\\n  -F \"certificate=@/path/to/file\" \\\n  -F \"private_key=@/path/to/file\" \\\n  \"https://api.telnyx.com/v2/storage/buckets/{bucketName}/ssl_certificate\"\n```\n\nReturns: `created_at` (date-time), `id` (string), `issued_by` (object), `issued_to` (object), `valid_from` (date-time), `valid_to` (date-time)\n\n## Remove SSL Certificate\n\nDeletes an SSL certificate and its matching secret.\n\n`DELETE /storage/buckets/{bucketName}/ssl_certificate`\n\n```bash\ncurl \\\n  -X DELETE \\\n  -H \"Authorization: Bearer $TELNYX_API_KEY\" \\\n  \"https://api.telnyx.com/v2/storage/buckets/{bucketName}/ssl_certificate\"\n```\n\nReturns: `created_at` (date-time), `id` (string), `issued_by` (object), `issued_to` (object), `valid_from` (date-time), `valid_to` (date-time)\n\n## Get API Usage\n\nReturns the detail on API usage on a bucket of a particular time period, group by method category.\n\n`GET /storage/buckets/{bucketName}/usage/api`\n\n```bash\ncurl -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'}\"\n```\n\nReturns: `categories` (array[object]), `timestamp` (date-time), `total` (object)\n\n## Get Bucket Usage\n\nReturns the amount of storage space and number of files a bucket takes up.\n\n`GET /storage/buckets/{bucketName}/usage/storage`\n\n```bash\ncurl -H \"Authorization: Bearer $TELNYX_API_KEY\" \"https://api.telnyx.com/v2/storage/buckets/{bucketName}/usage/storage\"\n```\n\nReturns: `num_objects` (integer), `size` (integer), `size_kb` (integer), `timestamp` (date-time)\n\n## Create Presigned Object URL\n\nReturns 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. \n\nRefer to: https://developers.telnyx.com/docs/cloud-storage/presigned-urls\n\n`POST /storage/buckets/{bucketName}/{objectName}/presigned_url`\n\nOptional: `ttl` (integer)\n\n```bash\ncurl \\\n  -X POST \\\n  -H \"Authorization: Bearer $TELNYX_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  \"https://api.telnyx.com/v2/storage/buckets/{bucketName}/{objectName}/presigned_url\"\n```\n\nReturns: `content` (object)","tags":["telnyx","storage","curl","team-telnyx","agent-skills","ai-coding-agent","claude-code","cpaas","cursor","iot","llm","sdk"],"capabilities":["skill","source-team-telnyx","skill-telnyx-storage-curl","topic-agent-skills","topic-ai-coding-agent","topic-claude-code","topic-cpaas","topic-cursor","topic-iot","topic-llm","topic-sdk","topic-sip","topic-sms","topic-speech-to-text","topic-telephony"],"categories":["ai"],"synonyms":[],"warnings":[],"endpointUrl":"https://skills.sh/team-telnyx/ai/telnyx-storage-curl","protocol":"skill","transport":"skills-sh","auth":{"type":"none","details":{"cli":"npx skills add team-telnyx/ai","source_repo":"https://github.com/team-telnyx/ai","install_from":"skills.sh"}},"qualityScore":"0.533","qualityRationale":"deterministic score 0.53 from registry signals: · indexed on github topic:agent-skills · 167 github stars · SKILL.md body (4,341 chars)","verified":false,"liveness":"unknown","lastLivenessCheck":null,"agentReviews":{"count":0,"score_avg":null,"cost_usd_avg":null,"success_rate":null,"latency_p50_ms":null,"narrative_summary":null,"summary_updated_at":null},"enrichmentModel":"deterministic:skill-github:v1","enrichmentVersion":1,"enrichedAt":"2026-04-22T06:54:48.943Z","embedding":null,"createdAt":"2026-04-18T22:07:52.383Z","updatedAt":"2026-04-22T06:54:48.943Z","lastSeenAt":"2026-04-22T06:54:48.943Z","tsv":"'+13125550001':98 '+13125550002':100 '-01':404,405,413,414 '-1':108 '/docs/cloud-storage/presigned-urls':537 '/path/to/file':274,278 '/presigned_url':542,566 '/ssl_certificate':198,211,261,283,322,337 '/storage/buckets':196,259,320,384,447,539 '/usage/api':386,399 '/usage/storage':449,462 '/v2/messages':84 '/v2/storage/buckets/':209,281,335,397,460,563 '00':407,416 '00.000':408,417 '1':139 '10':20 '2':118 '2020':403,412 '401':59,140,157 '403':161 '404':164 '422':55,122,168 '429':52,131,174 'add':236 'alway':60 'amount':434 'api':25,28,36,43,89,146,159,205,270,331,363,369,393,456,554 'api.telnyx.com':83,208,280,334,396,459,562 'api.telnyx.com/v2/messages':82 'api.telnyx.com/v2/storage/buckets/':207,279,333,395,458,561 'applic':194 'application/json':95,560 'array':421 'authent':39,57,142,484,509 'author':86,202,267,328,390,453,551 'aw':499,512,523 'backoff':180 'bash':22,66,199,262,323,387,450,546 'bearer':87,203,268,329,391,454,552 'bodi':109,121,152 'bucket':182,192,373,430,443 'bucketnam':197,210,260,282,321,336,385,398,448,461,540,564 'call':44 'case':114 'categori':382,420 'cdn':257 'certif':184,188,238,242,273,310,314 'check':67,126,144,171 'cli':525 'code':65,70,79,104,116,151,156 'common':154 'content':93,558,568 'content-typ':92,557 'creat':213,285,339,476 'curl':4,7,10,74,200,263,324,388,451,547 'd':96,113 'date':216,229,234,288,301,306,342,355,360,425,474 'date-tim':215,228,233,287,300,305,341,354,359,424,473 'delay':137 'delet':311,319,326 'detail':189,367 'developers.telnyx.com':536 'developers.telnyx.com/docs/cloud-storage/presigned-urls':535 'differ':510 'download':487 'echo':105,110,119,123,132,141,148 'end':410 'equival':497 'error':40,49,54,58,62,125,149,155,170 'esac':153 'exampl':32 'exponenti':179 'export':23 'f':272,275 'fail':46,143 'field':128,172 'file':441 'filter':400 'format':130,173 'found':167 'generat':529 'get':181,195,362,383,429,446,488 'group':379 'h':85,91,201,266,327,389,452,550,556 'handl':41,61 'hello':102 'http':68,78,103,115,150 'id':218,290,344 'instal':8,14 'insuffici':162 'integ':466,468,471,545 'invalid':158 'issu':220,223,292,295,346,349 'kb':470 'key':26,29,37,90,147,160,206,271,277,332,394,457,555 'limit':51,134,176 'linux':17 'maco':16 'match':245,317 'method':381,521 'must':516 'n':77 'network':48 'note':505 'num':464 'number':439 'object':222,225,294,297,348,351,422,428,465,478,493,569 'objectnam':541,565 'option':543 'particular':376 'perform':508 'period':378 'permiss':163 'pleas':504 'post':81,538,549 'pre':13 'pre-instal':12 'presign':477,502,520,531 'privat':276 'product':64 'put':258,265,491 'rate':50,133,175 'refer':533 'remov':308 'requir':127 'resourc':165 'respons':72,73,106,111 'retri':135,177 'return':185,212,284,338,365,419,432,463,480,567 's3':500,513 's3api':524 'sdk':527 'secret':246,318 'sed':112 'setup':21 'size':467,469 'skill' 'skill-telnyx-storage-curl' 'sleep':138 'source-team-telnyx' 'space':437 'ssl':183,237,241,309,313 'start':401 'status':69 'storag':3,6,254,436 'store':187 'string':219,291,345 'success':120 't00':406,415 'tail':107 'take':444 'telnyx':2,5,24,35,88,145,204,252,269,330,392,455,507,553 'telnyx-storage-curl':1 'text':9,101 'time':217,230,235,289,302,307,343,356,361,377,402,411,426,475,482 'timestamp':423,472 'topic-agent-skills' 'topic-ai-coding-agent' 'topic-claude-code' 'topic-cpaas' 'topic-cursor' 'topic-iot' 'topic-llm' 'topic-sdk' 'topic-sip' 'topic-sms' 'topic-speech-to-text' 'topic-telephony' 'total':427 'ttl':544 'type':94,559 'upload':239,490 'url':479,485,503,532 'usag':364,370,431 'use':34,251,518 'valid':53,124,169,226,231,298,303,352,357 'w':76 'window':19 'x':80,264,325,548 'z':409,418","prices":[{"id":"4353e9b3-1a43-4684-84e1-5131fe58a4e7","listingId":"f71f1295-0d24-4b61-98da-28122c49db5b","amountUsd":"0","unit":"free","nativeCurrency":null,"nativeAmount":null,"chain":null,"payTo":null,"paymentMethod":"skill-free","isPrimary":true,"details":{"org":"team-telnyx","category":"ai","install_from":"skills.sh"},"createdAt":"2026-04-18T22:07:52.383Z"}],"sources":[{"listingId":"f71f1295-0d24-4b61-98da-28122c49db5b","source":"github","sourceId":"team-telnyx/ai/telnyx-storage-curl","sourceUrl":"https://github.com/team-telnyx/ai/tree/main/skills/telnyx-storage-curl","isPrimary":false,"firstSeenAt":"2026-04-18T22:07:52.383Z","lastSeenAt":"2026-04-22T06:54:48.943Z"}],"details":{"listingId":"f71f1295-0d24-4b61-98da-28122c49db5b","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"team-telnyx","slug":"telnyx-storage-curl","github":{"repo":"team-telnyx/ai","stars":167,"topics":["agent-skills","ai","ai-coding-agent","claude-code","cpaas","cursor","iot","llm","sdk","sip","sms","speech-to-text","telephony","telnyx","tts","twilio-migration","voice-agents","voice-ai","webrtc","windsurf"],"license":"mit","html_url":"https://github.com/team-telnyx/ai","pushed_at":"2026-04-21T22:09:49Z","description":"Official one-stop shop for AI Agents and developers building with Telnyx.","skill_md_sha":"bfd512c421ee415b8dc221708ba9b2395474cd62","skill_md_path":"skills/telnyx-storage-curl/SKILL.md","default_branch":"main","skill_tree_url":"https://github.com/team-telnyx/ai/tree/main/skills/telnyx-storage-curl"},"layout":"multi","source":"github","category":"ai","frontmatter":{"name":"telnyx-storage-curl","description":">-"},"skills_sh_url":"https://skills.sh/team-telnyx/ai/telnyx-storage-curl"},"updatedAt":"2026-04-22T06:54:48.943Z"}}