api/go/telnyx-account-management-go/SKILL.md
Manage sub-accounts for reseller and enterprise scenarios. This skill provides Go SDK examples.
npx skillsauth add team-telnyx/telnyx-toolkit telnyx-account-management-goInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
go get github.com/team-telnyx/telnyx-go
import (
"context"
"fmt"
"os"
"github.com/team-telnyx/telnyx-go"
"github.com/team-telnyx/telnyx-go/option"
)
client := telnyx.NewClient(
option.WithAPIKey(os.Getenv("TELNYX_API_KEY")),
)
All examples below assume client is already initialized as shown above.
Lists the accounts managed by the current user.
GET /managed_accounts
page, err := client.ManagedAccounts.List(context.TODO(), telnyx.ManagedAccountListParams{})
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", page)
Create a new managed account owned by the authenticated user.
POST /managed_accounts — Required: business_name
managedAccount, err := client.ManagedAccounts.New(context.TODO(), telnyx.ManagedAccountNewParams{
BusinessName: "Larry's Cat Food Inc",
})
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", managedAccount.Data)
Retrieves the details of a single managed account.
GET /managed_accounts/{id}
managedAccount, err := client.ManagedAccounts.Get(context.TODO(), "id")
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", managedAccount.Data)
Update a single managed account.
PATCH /managed_accounts/{id}
managedAccount, err := client.ManagedAccounts.Update(
context.TODO(),
"id",
telnyx.ManagedAccountUpdateParams{},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", managedAccount.Data)
Disables a managed account, forbidding it to use Telnyx services, including sending or receiving phone calls and SMS messages.
POST /managed_accounts/{id}/actions/disable
response, err := client.ManagedAccounts.Actions.Disable(context.TODO(), "id")
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", response.Data)
Enables a managed account and its sub-users to use Telnyx services.
POST /managed_accounts/{id}/actions/enable
response, err := client.ManagedAccounts.Actions.Enable(
context.TODO(),
"id",
telnyx.ManagedAccountActionEnableParams{},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", response.Data)
PATCH /managed_accounts/{id}/update_global_channel_limit
response, err := client.ManagedAccounts.UpdateGlobalChannelLimit(
context.TODO(),
"id",
telnyx.ManagedAccountUpdateGlobalChannelLimitParams{},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", response.Data)
GET /managed_accounts/allocatable_global_outbound_channels
response, err := client.ManagedAccounts.GetAllocatableGlobalOutboundChannels(context.TODO())
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", response.Data)
tools
Build cross-platform VoIP calling apps with React Native using Telnyx Voice SDK. High-level reactive API with automatic lifecycle management, CallKit/ConnectionService integration, and push notifications. Use for mobile VoIP apps with minimal setup.
tools
Build browser-based VoIP calling apps using Telnyx WebRTC JavaScript SDK. Covers authentication, voice calls, events, debugging, call quality metrics, and AI Agent integration. Use for web-based real-time communication.
tools
Build VoIP calling apps on iOS using Telnyx WebRTC SDK. Covers authentication, making/receiving calls, CallKit integration, PushKit/APNS push notifications, call quality metrics, and AI Agent integration. Use when implementing real-time voice communication on iOS.
tools
Build cross-platform VoIP calling apps with Flutter using Telnyx WebRTC SDK. Covers authentication, making/receiving calls, push notifications (FCM + APNS), call quality metrics, and AI Agent integration. Works on Android, iOS, and Web.