{"id":"8f23559c-378d-4cdb-b722-7fb6dddca139","shortId":"gV63b3","kind":"skill","title":"telnyx-storage-javascript","tagline":">-","description":"<!-- Auto-generated from Telnyx OpenAPI specs. Do not edit. -->\n\n# Telnyx Storage - JavaScript\n\n## Installation\n\n```bash\nnpm install telnyx\n```\n\n## Setup\n\n```javascript\nimport Telnyx from 'telnyx';\n\nconst client = new Telnyx({\n  apiKey: process.env['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```javascript\ntry {\n  const result = await client.messages.send({ to: '+13125550001', from: '+13125550002', text: 'Hello' });\n} catch (err) {\n  if (err instanceof Telnyx.APIConnectionError) {\n    console.error('Network error — check connectivity and retry');\n  } else if (err instanceof Telnyx.RateLimitError) {\n    // 429: rate limited — wait and retry with exponential backoff\n    const retryAfter = err.headers?.['retry-after'] || 1;\n    await new Promise(r => setTimeout(r, retryAfter * 1000));\n  } else if (err instanceof Telnyx.APIError) {\n    console.error(`API error ${err.status}: ${err.message}`);\n    if (err.status === 422) {\n      console.error('Validation error — check required fields and formats');\n    }\n  }\n}\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```javascript\nconst sslCertificate = await client.storage.buckets.sslCertificate.retrieve('');\n\nconsole.log(sslCertificate.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```javascript\nconst sslCertificate = await client.storage.buckets.sslCertificate.create('');\n\nconsole.log(sslCertificate.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```javascript\nconst sslCertificate = await client.storage.buckets.sslCertificate.delete('');\n\nconsole.log(sslCertificate.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```javascript\nconst response = await client.storage.buckets.usage.getAPIUsage('', {\n  filter: { end_time: '2019-12-27T18:11:19.117Z', start_time: '2019-12-27T18:11:19.117Z' },\n});\n\nconsole.log(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```javascript\nconst response = await client.storage.buckets.usage.getBucketUsage('');\n\nconsole.log(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```javascript\nconst response = await client.storage.buckets.createPresignedURL('', { bucketName: '' });\n\nconsole.log(response.content);\n```\n\nReturns: `content` (object)","tags":["telnyx","storage","javascript","team-telnyx","agent-skills","ai-coding-agent","claude-code","cpaas","cursor","iot","llm","sdk"],"capabilities":["skill","source-team-telnyx","skill-telnyx-storage-javascript","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-javascript","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,305 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.408Z","embedding":null,"createdAt":"2026-04-18T22:07:54.745Z","updatedAt":"2026-04-22T06:54:49.408Z","lastSeenAt":"2026-04-22T06:54:49.408Z","tsv":"'+13125550001':80 '+13125550002':82 '-12':361,370 '-27':362,371 '/docs/cloud-storage/presigned-urls':490 '/presigned_url':495 '/ssl_certificate':192,249,295 '/storage/buckets':190,247,293,349,406,492 '/usage/api':351 '/usage/storage':408 '1':118 '1000':126 '11':364,373 '19.117':365,374 '2019':360,369 '401':66,151 '403':155 '404':158 '422':62,139,162 '429':59,103,168 'add':224 'alreadi':42 'alway':67 'amount':393 'api':26,50,133,153,328,334 'apikey':23 'applic':188 'array':380 'assum':39 'authent':64,437,462 'aw':452,465,476 'await':77,119,196,253,299,355,412,502 'backoff':111,174 'bash':9 'bucket':176,186,338,389,402 'bucketnam':191,248,294,350,407,493,504 'call':51 'catch':85 'categori':347,379 'cdn':245 'certif':178,182,226,230,283,287 'check':94,143,165 'cli':478 'client':20,40 'client.messages.send':78 'client.storage.buckets.createpresignedurl':503 'client.storage.buckets.sslcertificate.create':254 'client.storage.buckets.sslcertificate.delete':300 'client.storage.buckets.sslcertificate.retrieve':197 'client.storage.buckets.usage.getapiusage':356 'client.storage.buckets.usage.getbucketusage':413 'code':72,150 'common':148 'connect':95 'console.error':91,132,140 'console.log':198,255,301,376,414,505 'const':19,75,112,194,251,297,353,410,500 'content':508 'creat':201,258,304,429 'date':204,217,222,261,274,279,307,320,325,384,427 'date-tim':203,216,221,260,273,278,306,319,324,383,426 'default':31 'delet':284,292 'detail':183,332 'developers.telnyx.com':489 'developers.telnyx.com/docs/cloud-storage/presigned-urls':488 'differ':463 'download':440 'els':98,127 'end':358 'equival':450 'err':86,88,100,129 'err.headers':114 'err.message':136 'err.status':135,138 'error':47,56,61,65,69,93,134,142,149,164 'exampl':37 'exponenti':110,173 'fail':53 'field':145,166 'file':400 'filter':357 'format':147,167 'found':161 'generat':482 'get':175,189,327,348,388,405,441 'group':344 'handl':48,68 'hello':84 'id':206,263,309 'import':15 'initi':43 'instal':8,11 'instanceof':89,101,130 'insuffici':156 'integ':419,421,424,498 'invalid':152 'issu':208,211,265,268,311,314 'javascript':4,7,14,73,193,250,296,352,409,499 'kb':423 'key':27,154 'limit':58,105,170 'match':233,290 'method':346,474 'must':469 'network':55,92 'new':21,120 'note':458 'npm':10 'num':417 'number':398 'object':210,213,267,270,313,316,381,387,418,431,446,509 'objectnam':494 'omit':35 'option':496 'particular':341 'perform':461 'period':343 'permiss':157 'pleas':457 'post':491 'presign':430,455,473,484 'process.env':24 'product':71 'promis':121 'put':246,444 'r':122,124 'rate':57,104,169 'refer':486 'remov':281 'requir':144 'resourc':159 'respons':354,411,501 'response.content':506 'response.data':377,415 'result':76 'retri':97,108,116,171 'retry-aft':115 'retryaft':113,125 'return':179,200,257,303,330,378,391,416,433,507 's3':453,466 's3api':477 'sdk':480 'secret':234,291 'settimeout':123 'setup':13 'shown':45 'size':420,422 'skill' 'skill-telnyx-storage-javascript' 'source-team-telnyx' 'space':396 'ssl':177,225,229,282,286 'sslcertif':195,252,298 'sslcertificate.data':199,256,302 'start':367 'storag':3,6,242,395 'store':181 'string':207,264,310 't18':363,372 'take':403 'telnyx':2,5,12,16,18,22,25,240,460 'telnyx-storage-javascript':1 'telnyx.apiconnectionerror':90 'telnyx.apierror':131 'telnyx.ratelimiterror':102 'text':83 'time':205,218,223,262,275,280,308,321,326,342,359,368,385,428,435 'timestamp':382,425 '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':386 'tri':74 'ttl':497 'upload':227,443 'url':432,438,456,485 'usag':329,335,390 'use':239,471 'valid':60,141,163,214,219,271,276,317,322 'wait':106 'z':366,375","prices":[{"id":"26009dd0-af59-47da-b822-dc769043dc74","listingId":"8f23559c-378d-4cdb-b722-7fb6dddca139","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:54.745Z"}],"sources":[{"listingId":"8f23559c-378d-4cdb-b722-7fb6dddca139","source":"github","sourceId":"team-telnyx/ai/telnyx-storage-javascript","sourceUrl":"https://github.com/team-telnyx/ai/tree/main/skills/telnyx-storage-javascript","isPrimary":false,"firstSeenAt":"2026-04-18T22:07:54.745Z","lastSeenAt":"2026-04-22T06:54:49.408Z"}],"details":{"listingId":"8f23559c-378d-4cdb-b722-7fb6dddca139","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"team-telnyx","slug":"telnyx-storage-javascript","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":"665baeb58b4171a4ded55d4b7c5306fb0f387ad9","skill_md_path":"skills/telnyx-storage-javascript/SKILL.md","default_branch":"main","skill_tree_url":"https://github.com/team-telnyx/ai/tree/main/skills/telnyx-storage-javascript"},"layout":"multi","source":"github","category":"ai","frontmatter":{"name":"telnyx-storage-javascript","description":">-"},"skills_sh_url":"https://skills.sh/team-telnyx/ai/telnyx-storage-javascript"},"updatedAt":"2026-04-22T06:54:49.408Z"}}