{"id":"9df61ba3-4a35-47fb-ac22-d330700a0116","shortId":"Axbt7T","kind":"skill","title":"telnyx-storage-python","tagline":">-","description":"<!-- Auto-generated from Telnyx OpenAPI specs. Do not edit. -->\n\n# Telnyx Storage - Python\n\n## Installation\n\n```bash\npip install telnyx\n```\n\n## Setup\n\n```python\nimport os\nfrom telnyx import Telnyx\n\nclient = Telnyx(\n    api_key=os.environ.get(\"TELNYX_API_KEY\"),  # This is the default and can be omitted\n)\n```\n\nAll examples below assume `client` is already initialized as shown above.\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```python\nimport telnyx\n\ntry:\n    result = client.messages.send(to=\"+13125550001\", from_=\"+13125550002\", text=\"Hello\")\nexcept telnyx.APIConnectionError:\n    print(\"Network error — check connectivity and retry\")\nexcept telnyx.RateLimitError:\n    # 429: rate limited — wait and retry with exponential backoff\n    import time\n    time.sleep(1)  # Check Retry-After header for actual delay\nexcept telnyx.APIStatusError as e:\n    print(f\"API error {e.status_code}: {e.message}\")\n    if e.status_code == 422:\n        print(\"Validation error — check required fields and formats\")\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```python\nssl_certificate = client.storage.buckets.ssl_certificate.retrieve(\n    \"\",\n)\nprint(ssl_certificate.data)\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```python\nssl_certificate = client.storage.buckets.ssl_certificate.create(\n    bucket_name=\"\",\n)\nprint(ssl_certificate.data)\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```python\nssl_certificate = client.storage.buckets.ssl_certificate.delete(\n    \"\",\n)\nprint(ssl_certificate.data)\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```python\nfrom datetime import datetime\n\nresponse = client.storage.buckets.usage.get_api_usage(\n    bucket_name=\"\",\n    filter={\n        \"end_time\": datetime.fromisoformat(\"2019-12-27T18:11:19.117\"),\n        \"start_time\": datetime.fromisoformat(\"2019-12-27T18:11:19.117\"),\n    },\n)\nprint(response.data)\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```python\nresponse = client.storage.buckets.usage.get_bucket_usage(\n    \"\",\n)\nprint(response.data)\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```python\nresponse = client.storage.buckets.create_presigned_url(\n    object_name=\"\",\n    bucket_name=\"\",\n)\nprint(response.content)\n```\n\nReturns: `content` (object)","tags":["telnyx","storage","python","team-telnyx","agent-skills","ai-coding-agent","claude-code","cpaas","cursor","iot","llm","sdk"],"capabilities":["skill","source-team-telnyx","skill-telnyx-storage-python","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-python","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,183 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:49.491Z","embedding":null,"createdAt":"2026-04-18T22:07:55.550Z","updatedAt":"2026-04-22T06:54:49.491Z","lastSeenAt":"2026-04-22T06:54:49.491Z","tsv":"'+13125550001':81 '+13125550002':83 '-12':360,369 '-27':361,370 '/docs/cloud-storage/presigned-urls':488 '/presigned_url':493 '/ssl_certificate':185,241,288 '/storage/buckets':183,239,286,341,404,490 '/usage/api':343 '/usage/storage':406 '1':109 '11':363,372 '19.117':364,373 '2019':359,368 '401':67,144 '403':148 '404':151 '422':63,132,155 '429':60,97,161 'actual':116 'add':216 'alreadi':43 'alway':68 'amount':391 'api':23,27,51,124,146,320,326,351 'applic':181 'array':378 'assum':40 'authent':65,435,460 'aw':450,463,474 'backoff':105,167 'bash':9 'bucket':169,179,246,330,353,387,400,410,504 'bucketnam':184,240,287,342,405,491 'call':52 'categori':339,377 'cdn':237 'certif':171,175,188,218,222,244,276,280,291 'check':91,110,136,158 'cli':476 'client':21,41 'client.messages.send':79 'client.storage.buckets.create':499 'client.storage.buckets.ssl_certificate.create':245 'client.storage.buckets.ssl_certificate.delete':292 'client.storage.buckets.ssl_certificate.retrieve':189 'client.storage.buckets.usage.get':350,409 'code':73,127,131,143 'common':141 'connect':92 'content':509 'creat':193,251,296,427 'date':196,209,214,254,267,272,299,312,317,382,425 'date-tim':195,208,213,253,266,271,298,311,316,381,424 'datetim':346,348 'datetime.fromisoformat':358,367 'default':32 'delay':117 'delet':277,285 'detail':176,324 'developers.telnyx.com':487 'developers.telnyx.com/docs/cloud-storage/presigned-urls':486 'differ':461 'download':438 'e':121 'e.message':128 'e.status':126,130 'end':356 'equival':448 'error':48,57,62,66,70,90,125,135,142,157 'exampl':38 'except':86,95,118 'exponenti':104,166 'f':123 'fail':54 'field':138,159 'file':398 'filter':355 'format':140,160 'found':154 'generat':480 'get':168,182,319,340,386,403,439 'group':336 'handl':49,69 'header':114 'hello':85 'id':198,256,301 'import':15,19,75,106,347 'initi':44 'instal':8,11 'insuffici':149 'integ':417,419,422,496 'invalid':145 'issu':200,203,258,261,303,306 'kb':421 'key':24,28,147 'limit':59,99,163 'match':225,283 'method':338,472 'must':467 'name':247,354,503,505 'network':56,89 'note':456 'num':415 'number':396 'object':202,205,260,263,305,308,379,385,416,429,444,502,510 'objectnam':492 'omit':36 'option':494 'os':16 'os.environ.get':25 'particular':333 'perform':459 'period':335 'permiss':150 'pip':10 'pleas':455 'post':489 'presign':428,453,471,482,500 'print':88,122,133,190,248,293,374,412,506 'product':72 'put':238,442 'python':4,7,14,74,186,242,289,344,407,497 'rate':58,98,162 'refer':484 'remov':274 'requir':137 'resourc':152 'respons':349,408,498 'response.content':507 'response.data':375,413 'result':78 'retri':94,102,112,164 'retry-aft':111 'return':172,192,250,295,322,376,389,414,431,508 's3':451,464 's3api':475 'sdk':478 'secret':226,284 'setup':13 'shown':46 'size':418,420 'skill' 'skill-telnyx-storage-python' 'source-team-telnyx' 'space':394 'ssl':170,187,217,221,243,275,279,290 'ssl_certificate.data':191,249,294 'start':365 'storag':3,6,234,393 'store':174 'string':199,257,302 't18':362,371 'take':401 'telnyx':2,5,12,18,20,22,26,76,232,458 'telnyx-storage-python':1 'telnyx.apiconnectionerror':87 'telnyx.apistatuserror':119 'telnyx.ratelimiterror':96 'text':84 'time':107,197,210,215,255,268,273,300,313,318,334,357,366,383,426,433 'time.sleep':108 'timestamp':380,423 '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':384 'tri':77 'ttl':495 'upload':219,441 'url':430,436,454,483,501 'usag':321,327,352,388,411 'use':231,469 'valid':61,134,156,206,211,264,269,309,314 'wait':100","prices":[{"id":"f83ddd0a-b904-49cc-b8d8-7dfe911f3309","listingId":"9df61ba3-4a35-47fb-ac22-d330700a0116","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:55.550Z"}],"sources":[{"listingId":"9df61ba3-4a35-47fb-ac22-d330700a0116","source":"github","sourceId":"team-telnyx/ai/telnyx-storage-python","sourceUrl":"https://github.com/team-telnyx/ai/tree/main/skills/telnyx-storage-python","isPrimary":false,"firstSeenAt":"2026-04-18T22:07:55.550Z","lastSeenAt":"2026-04-22T06:54:49.491Z"}],"details":{"listingId":"9df61ba3-4a35-47fb-ac22-d330700a0116","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"team-telnyx","slug":"telnyx-storage-python","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":"34e8fd0cd8fed3606292f29c7f97433c68980541","skill_md_path":"skills/telnyx-storage-python/SKILL.md","default_branch":"main","skill_tree_url":"https://github.com/team-telnyx/ai/tree/main/skills/telnyx-storage-python"},"layout":"multi","source":"github","category":"ai","frontmatter":{"name":"telnyx-storage-python","description":">-"},"skills_sh_url":"https://skills.sh/team-telnyx/ai/telnyx-storage-python"},"updatedAt":"2026-04-22T06:54:49.491Z"}}