{"id":"b6cc49ca-2b89-4edd-a995-95a31a065cf9","shortId":"9ydjrd","kind":"skill","title":"telnyx-storage-go","tagline":">-","description":"<!-- Auto-generated from Telnyx OpenAPI specs. Do not edit. -->\n\n# Telnyx Storage - Go\n\n## Installation\n\n```bash\ngo get github.com/team-telnyx/telnyx-go\n```\n\n## Setup\n\n```go\nimport (\n  \"context\"\n  \"fmt\"\n  \"os\"\n\n  \"github.com/team-telnyx/telnyx-go\"\n  \"github.com/team-telnyx/telnyx-go/option\"\n)\n\nclient := telnyx.NewClient(\n  option.WithAPIKey(os.Getenv(\"TELNYX_API_KEY\")),\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```go\nimport \"errors\"\n\nresult, err := client.Messages.Send(ctx, params)\nif err != nil {\n  var apiErr *telnyx.Error\n  if errors.As(err, &apiErr) {\n    switch apiErr.StatusCode {\n    case 422:\n      fmt.Println(\"Validation error — check required fields and formats\")\n    case 429:\n      // Rate limited — wait and retry with exponential backoff\n      fmt.Println(\"Rate limited, retrying...\")\n    default:\n      fmt.Printf(\"API error %d: %s\\n\", apiErr.StatusCode, apiErr.Error())\n    }\n  } else {\n    fmt.Println(\"Network error — check connectivity and retry\")\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```go\n\tsslCertificate, err := client.Storage.Buckets.SslCertificate.Get(context.Background(), \"\")\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tfmt.Printf(\"%+v\\n\", 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```go\n\tsslCertificate, err := client.Storage.Buckets.SslCertificate.New(\n\t\tcontext.Background(),\n\t\t\"\",\n\t\ttelnyx.StorageBucketSslCertificateNewParams{},\n\t)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tfmt.Printf(\"%+v\\n\", 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```go\n\tsslCertificate, err := client.Storage.Buckets.SslCertificate.Delete(context.Background(), \"\")\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tfmt.Printf(\"%+v\\n\", 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```go\n\tresponse, err := client.Storage.Buckets.Usage.GetAPIUsage(\n\t\tcontext.Background(),\n\t\t\"\",\n\t\ttelnyx.StorageBucketUsageGetAPIUsageParams{\n\t\t\tFilter: telnyx.StorageBucketUsageGetAPIUsageParamsFilter{\n\t\t\t\tEndTime:   time.Now(),\n\t\t\t\tStartTime: time.Now(),\n\t\t\t},\n\t\t},\n\t)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tfmt.Printf(\"%+v\\n\", 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```go\n\tresponse, err := client.Storage.Buckets.Usage.GetBucketUsage(context.Background(), \"\")\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tfmt.Printf(\"%+v\\n\", 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```go\n\tresponse, err := client.Storage.Buckets.NewPresignedURL(\n\t\tcontext.Background(),\n\t\t\"\",\n\t\ttelnyx.StorageBucketNewPresignedURLParams{\n\t\t\tBucketName: \"\",\n\t\t},\n\t)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tfmt.Printf(\"%+v\\n\", response.Content)\n```\n\nReturns: `content` (object)","tags":["telnyx","storage","team-telnyx","agent-skills","ai-coding-agent","claude-code","cpaas","cursor","iot","llm","sdk","sip"],"capabilities":["skill","source-team-telnyx","skill-telnyx-storage-go","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-go","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,701 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.028Z","embedding":null,"createdAt":"2026-04-18T22:07:53.132Z","updatedAt":"2026-04-22T06:54:49.028Z","lastSeenAt":"2026-04-22T06:54:49.028Z","tsv":"'/docs/cloud-storage/presigned-urls':498 '/presigned_url':503 '/ssl_certificate':176,240,294 '/storage/buckets':174,238,292,355,407,500 '/team-telnyx/telnyx-go':14,23 '/team-telnyx/telnyx-go/option':26 '/usage/api':357 '/usage/storage':409 '401':64,135 '403':139 '404':142 '422':60,92,146 '429':57,102,152 'add':215 'alreadi':40 'alway':65 'amount':394 'api':32,48,117,137,334,340 'apierr':83,88 'apierr.error':123 'apierr.statuscode':90,122 'applic':172 'array':381 'assum':37 'authent':62,445,470 'aw':460,473,484 'backoff':110,158 'bash':9 'bucket':160,170,344,390,403 'bucketnam':175,239,293,356,408,501,513 'call':49 'case':91,101 'categori':353,380 'cdn':236 'certif':162,166,217,221,282,286 'check':96,128,149 'cli':486 'client':27,38 'client.messages.send':76 'client.storage.buckets.newpresignedurl':510 'client.storage.buckets.sslcertificate.delete':298 'client.storage.buckets.sslcertificate.get':180 'client.storage.buckets.sslcertificate.new':244 'client.storage.buckets.usage.getapiusage':361 'client.storage.buckets.usage.getbucketusage':413 'code':70,134 'common':132 'connect':129 'content':524 'context':18 'context.background':181,245,299,362,414,511 'creat':192,257,310,437 'ctx':77 'd':119 'date':195,208,213,260,273,278,313,326,331,385,435 'date-tim':194,207,212,259,272,277,312,325,330,384,434 'default':115 'delet':283,291 'detail':167,338 'developers.telnyx.com':497 'developers.telnyx.com/docs/cloud-storage/presigned-urls':496 'differ':471 'download':448 'els':124 'endtim':366 'equival':458 'err':75,80,87,179,183,186,243,248,251,297,301,304,360,371,374,412,416,419,509,515,518 'error':45,54,59,63,67,73,95,118,127,133,148 'errors.as':86 'exampl':35 'exponenti':109,157 'fail':51 'field':98,150 'file':401 'filter':364 'fmt':19 'fmt.printf':116,187,252,305,375,420,519 'fmt.println':93,111,125 'format':100,151 'found':145 'generat':490 'get':11,159,173,333,354,389,406,449 'github.com':13,22,25 'github.com/team-telnyx/telnyx-go':12,21 'github.com/team-telnyx/telnyx-go/option':24 'go':4,7,10,16,71,177,241,295,358,410,507 'group':350 'handl':46,66 'id':197,262,315 'import':17,72 'initi':41 'instal':8 'insuffici':140 'integ':427,429,432,506 'invalid':136 'issu':199,202,264,267,317,320 'kb':431 'key':33,138 'limit':56,104,113,154 'log.fatal':185,250,303,373,418,517 'match':224,289 'method':352,482 'must':477 'n':121,189,254,307,377,422,521 'network':53,126 'nil':81,184,249,302,372,417,516 'note':466 'num':425 'number':399 'object':201,204,266,269,319,322,382,388,426,439,454,525 'objectnam':502 'option':504 'option.withapikey':29 'os':20 'os.getenv':30 'param':78 'particular':347 'perform':469 'period':349 'permiss':141 'pleas':465 'post':499 'presign':438,463,481,492 'product':69 'put':237,452 'rate':55,103,112,153 'refer':494 'remov':280 'requir':97 'resourc':143 'respons':359,411,508 'response.content':522 'response.data':378,423 'result':74 'retri':107,114,131,155 'return':163,191,256,309,336,379,392,424,441,523 's3':461,474 's3api':485 'sdk':488 'secret':225,290 'setup':15 'shown':43 'size':428,430 'skill' 'skill-telnyx-storage-go' 'source-team-telnyx' 'space':397 'ssl':161,216,220,281,285 'sslcertif':178,242,296 'sslcertificate.data':190,255,308 'starttim':368 'storag':3,6,233,396 'store':165 'string':198,263,316 'switch':89 'take':404 'telnyx':2,5,31,231,468 'telnyx-storage-go':1 'telnyx.error':84 'telnyx.newclient':28 'telnyx.storagebucketnewpresignedurlparams':512 'telnyx.storagebucketsslcertificatenewparams':246 'telnyx.storagebucketusagegetapiusageparams':363 'telnyx.storagebucketusagegetapiusageparamsfilter':365 'time':196,209,214,261,274,279,314,327,332,348,386,436,443 'time.now':367,369 'timestamp':383,433 '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':387 'ttl':505 'upload':218,451 'url':440,446,464,493 'usag':335,341,391 'use':230,479 'v':188,253,306,376,421,520 'valid':58,94,147,205,210,270,275,323,328 'var':82 'wait':105","prices":[{"id":"adca7ff1-441f-4f36-b480-a7df63d19b3a","listingId":"b6cc49ca-2b89-4edd-a995-95a31a065cf9","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:53.132Z"}],"sources":[{"listingId":"b6cc49ca-2b89-4edd-a995-95a31a065cf9","source":"github","sourceId":"team-telnyx/ai/telnyx-storage-go","sourceUrl":"https://github.com/team-telnyx/ai/tree/main/skills/telnyx-storage-go","isPrimary":false,"firstSeenAt":"2026-04-18T22:07:53.132Z","lastSeenAt":"2026-04-22T06:54:49.028Z"}],"details":{"listingId":"b6cc49ca-2b89-4edd-a995-95a31a065cf9","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"team-telnyx","slug":"telnyx-storage-go","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":"5b58138c9bb986b642ef312701f122b0e972bc29","skill_md_path":"skills/telnyx-storage-go/SKILL.md","default_branch":"main","skill_tree_url":"https://github.com/team-telnyx/ai/tree/main/skills/telnyx-storage-go"},"layout":"multi","source":"github","category":"ai","frontmatter":{"name":"telnyx-storage-go","description":">-"},"skills_sh_url":"https://skills.sh/team-telnyx/ai/telnyx-storage-go"},"updatedAt":"2026-04-22T06:54:49.028Z"}}