Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Configure account addresses, authentication providers, IP access controls, billing groups, and integration secrets. This skill provides Go SDK examples.
.claude/skills/team-telnyx-telnyx-account-access-go/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 174% | 0% |
| case-02 | ✗→✓ | ▲ Improved | 125% | 0% |
| case-03 | ✗→✓ | ▲ Improved | 136% | 0% |
| case-04 | ✗→✓ | ▲ Improved | 278% | 0% |
| case-05 | ✗→✓ | ▲ Improved | 242% | 0% |
<!-- Auto-generated from Telnyx OpenAPI specs. Do not edit. -->
bashgo get github.com/team-telnyx/telnyx-go
goimport ( "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.
All API calls can fail with network errors, rate limits (429), validation errors (422), or authentication errors (401). Always handle errors in production code:
goimport "errors" result, err := client.Messages.Send(ctx, params) if err != nil { var apiErr *telnyx.Error if errors.As(err, &apiErr) { switch apiErr.StatusCode { case 422: fmt.Println("Validation error — check required fields and formats") case 429: // Rate limited — wait and retry with exponential backoff fmt.Println("Rate limited, retrying...") default: fmt.Printf("API error %d: %s\n", apiErr.StatusCode, apiErr.Error()) } } else { fmt.Println("Network error — check connectivity and retry") } }
Common error codes: 401 invalid API key, 403 insufficient permissions, 404 resource not found, 422 validation error (check field formats), 429 rate limited (retry with exponential backoff).
ListAutoPaging() for automatic iteration: iter := client.Resource.ListAutoPaging(ctx, params); for iter.Next() { item := iter.Current() }.GET /access_ip_address
gopage, err := client.AccessIPAddress.List(context.Background(), telnyx.AccessIPAddressListParams{}) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", page)
Returns: created_at (date-time), description (string), id (string), ip_address (string), source (string), status (enum: pending, added), updated_at (date-time), user_id (string)
POST /access_ip_address — Required: ip_address
Optional: description (string)
goaccessIPAddressResponse, err := client.AccessIPAddress.New(context.Background(), telnyx.AccessIPAddressNewParams{ IPAddress: "203.0.113.10", }) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", accessIPAddressResponse.ID)
Returns: created_at (date-time), description (string), id (string), ip_address (string), source (string), status (enum: pending, added), updated_at (date-time), user_id (string)
GET /access_ip_address/{access_ip_address_id}
goaccessIPAddressResponse, err := client.AccessIPAddress.Get(context.Background(), "access_ip_address_id") if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", accessIPAddressResponse.ID)
Returns: created_at (date-time), description (string), id (string), ip_address (string), source (string), status (enum: pending, added), updated_at (date-time), user_id (string)
DELETE /access_ip_address/{access_ip_address_id}
goaccessIPAddressResponse, err := client.AccessIPAddress.Delete(context.Background(), "access_ip_address_id") if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", accessIPAddressResponse.ID)
Returns: created_at (date-time), description (string), id (string), ip_address (string), source (string), status (enum: pending, added), updated_at (date-time), user_id (string)
Returns a list of your addresses.
GET /addresses
gopage, err := client.Addresses.List(context.Background(), telnyx.AddressListParams{}) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", page)
Returns: address_book (boolean), administrative_area (string), borough (string), business_name (string), country_code (string), created_at (string), customer_reference (string), extended_address (string), first_name (string), id (string), last_name (string), locality (string), neighborhood (string), phone_number (string), postal_code (string), record_type (string), street_address (string), updated_at (string), validate_address (boolean)
Creates an address.
POST /addresses — Required: first_name, last_name, business_name, street_address, locality, country_code
Optional: address_book (boolean), administrative_area (string), borough (string), customer_reference (string), extended_address (string), neighborhood (string), phone_number (string), postal_code (string), validate_address (boolean)
goaddress, err := client.Addresses.New(context.Background(), telnyx.AddressNewParams{ BusinessName: "Toy-O'Kon", CountryCode: "US", FirstName: "Alfred", LastName: "Foster", Locality: "Austin", StreetAddress: "600 Congress Avenue", }) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", address.Data)
Returns: address_book (boolean), administrative_area (string), borough (string), business_name (string), country_code (string), created_at (string), customer_reference (string), extended_address (string), first_name (string), id (string), last_name (string), locality (string), neighborhood (string), phone_number (string), postal_code (string), record_type (string), street_address (string), updated_at (string), validate_address (boolean)
Validates an address for emergency services.
POST /addresses/actions/validate — Required: country_code, street_address, postal_code
Optional: administrative_area (string), extended_address (string), locality (string)
goresponse, err := client.Addresses.Actions.Validate(context.Background(), telnyx.AddressActionValidateParams{ CountryCode: "US", PostalCode: "78701", StreetAddress: "600 Congress Avenue", }) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", response.Data)
Returns: errors (arrayobject]), record_type (string), result (enum: valid, invalid), suggested (object)
Retrieves the details of an existing address.
GET /addresses/{id}
goaddress, err := client.Addresses.Get(context.Background(), "id") if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", address.Data)
Returns: address_book (boolean), administrative_area (string), borough (string), business_name (string), country_code (string), created_at (string), customer_reference (string), extended_address (string), first_name (string), id (string), last_name (string), locality (string), neighborhood (string), phone_number (string), postal_code (string), record_type (string), street_address (string), updated_at (string), validate_address (boolean)
Deletes an existing address.
DELETE /addresses/{id}
goaddress, err := client.Addresses.Delete(context.Background(), "id") if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", address.Data)
Returns: address_book (boolean), administrative_area (string), borough (string), business_name (string), country_code (string), created_at (string), customer_reference (string), extended_address (string), first_name (string), id (string), last_name (string), locality (string), neighborhood (string), phone_number (string), postal_code (string), record_type (string), street_address (string), updated_at (string), validate_address (boolean)
POST /addresses/{id}/actions/accept_suggestions
Optional: id (string)
goresponse, err := client.Addresses.Actions.AcceptSuggestions( context.Background(), "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", telnyx.AddressActionAcceptSuggestionsParams{}, ) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", response.Data)
Returns: accepted (boolean), id (uuid), record_type (enum: address_suggestion)
Returns a list of your SSO authentication providers.
GET /authentication_providers
gopage, err := client.AuthenticationProviders.List(context.Background(), telnyx.AuthenticationProviderListParams{}) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", page)
Returns: activated_at (date-time), active (boolean), created_at (date-time), id (uuid), name (string), organization_id (uuid), record_type (string), settings (object), short_name (string), updated_at (date-time)
Creates an authentication provider.
POST /authentication_providers — Required: name, short_name, settings
Optional: active (boolean), settings_url (uri)
goauthenticationProvider, err := client.AuthenticationProviders.New(context.Background(), telnyx.AuthenticationProviderNewParams{ Name: "Okta", Settings: telnyx.SettingsParam{ IdpCertFingerprint: "13:38:C7:BB:C9:FF:4A:70:38:3A:E3:D9:5C:CD:DB:2E:50:1E:80:A7", IdpEntityID: "https://myorg.myidp.com/saml/metadata", IdpSSOTargetURL: "https://myorg.myidp.com/trust/saml2/http-post/sso", }, ShortName: "myorg", }) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", authenticationProvider.Data)
Returns: activated_at (date-time), active (boolean), created_at (date-time), id (uuid), name (string), organization_id (uuid), record_type (string), settings (object), short_name (string), updated_at (date-time)
Retrieves the details of an existing authentication provider.
GET /authentication_providers/{id}
goauthenticationProvider, err := client.AuthenticationProviders.Get(context.Background(), "id") if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", authenticationProvider.Data)
Returns: activated_at (date-time), active (boolean), created_at (date-time), id (uuid), name (string), organization_id (uuid), record_type (string), settings (object), short_name (string), updated_at (date-time)
Updates settings of an existing authentication provider.
PATCH /authentication_providers/{id}
Optional: active (boolean), name (string), settings (object), settings_url (uri), short_name (string)
goauthenticationProvider, err := client.AuthenticationProviders.Update( context.Background(), "id", telnyx.AuthenticationProviderUpdateParams{ Active: telnyx.Bool(true), Name: telnyx.String("Okta"), Settings: telnyx.SettingsParam{ IdpEntityID: "https://myorg.myidp.com/saml/metadata", IdpSSOTargetURL: "https://myorg.myidp.com/trust/saml2/http-post/sso", IdpCertFingerprint: "13:38:C7:BB:C9:FF:4A:70:38:3A:E3:D9:5C:CD:DB:2E:50:1E:80:A7", IdpCertFingerprintAlgorithm: telnyx.SettingsIdpCertFingerprintAlgorithmSha1, }, ShortName: telnyx.String("myorg"), }, ) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", authenticationProvider.Data)
Returns: activated_at (date-time), active (boolean), created_at (date-time), id (uuid), name (string), organization_id (uuid), record_type (string), settings (object), short_name (string), updated_at (date-time)
Deletes an existing authentication provider.
DELETE /authentication_providers/{id}
goauthenticationProvider, err := client.AuthenticationProviders.Delete(context.Background(), "id") if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", authenticationProvider.Data)
Returns: activated_at (date-time), active (boolean), created_at (date-time), id (uuid), name (string), organization_id (uuid), record_type (string), settings (object), short_name (string), updated_at (date-time)
GET /billing_groups
gopage, err := client.BillingGroups.List(context.Background(), telnyx.BillingGroupListParams{}) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", page)
Returns: created_at (date-time), deleted_at (date-time), id (uuid), name (string), organization_id (uuid), record_type (enum: billing_group), updated_at (date-time)
POST /billing_groups
Optional: name (string)
gobillingGroup, err := client.BillingGroups.New(context.Background(), telnyx.BillingGroupNewParams{ Name: telnyx.String("string"), }) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", billingGroup.Data)
Returns: created_at (date-time), deleted_at (date-time), id (uuid), name (string), organization_id (uuid), record_type (enum: billing_group), updated_at (date-time)
GET /billing_groups/{id}
gobillingGroup, err := client.BillingGroups.Get(context.Background(), "f5586561-8ff0-4291-a0ac-84fe544797bd") if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", billingGroup.Data)
Returns: created_at (date-time), deleted_at (date-time), id (uuid), name (string), organization_id (uuid), record_type (enum: billing_group), updated_at (date-time)
PATCH /billing_groups/{id}
Optional: name (string)
gobillingGroup, err := client.BillingGroups.Update( context.Background(), "f5586561-8ff0-4291-a0ac-84fe544797bd", telnyx.BillingGroupUpdateParams{ Name: telnyx.String("string"), }, ) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", billingGroup.Data)
Returns: created_at (date-time), deleted_at (date-time), id (uuid), name (string), organization_id (uuid), record_type (enum: billing_group), updated_at (date-time)
DELETE /billing_groups/{id}
gobillingGroup, err := client.BillingGroups.Delete(context.Background(), "f5586561-8ff0-4291-a0ac-84fe544797bd") if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", billingGroup.Data)
Returns: created_at (date-time), deleted_at (date-time), id (uuid), name (string), organization_id (uuid), record_type (enum: billing_group), updated_at (date-time)
Retrieve a list of all integration secrets configured by the user.
GET /integration_secrets
gopage, err := client.IntegrationSecrets.List(context.Background(), telnyx.IntegrationSecretListParams{}) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", page)
Returns: created_at (date-time), id (string), identifier (string), record_type (string), updated_at (date-time)
Create a new secret with an associated identifier that can be used to securely integrate with other services.
POST /integration_secrets — Required: identifier, type
Optional: password (string), token (string), username (string)
gointegrationSecret, err := client.IntegrationSecrets.New(context.Background(), telnyx.IntegrationSecretNewParams{ Identifier: "my_secret", Type: telnyx.IntegrationSecretNewParamsTypeBearer, Token: telnyx.String("my_secret_value"), }) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", integrationSecret.Data)
Returns: created_at (date-time), id (string), identifier (string), record_type (string), updated_at (date-time)
Delete an integration secret given its ID.
DELETE /integration_secrets/{id}
goerr := client.IntegrationSecrets.Delete(context.Background(), "id") if err != nil { log.Fatal(err) }
Create an Access Token (JWT) for the credential.
POST /telephony_credentials/{id}/token
goresponse, err := client.TelephonyCredentials.NewToken(context.Background(), "id") if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", response)
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-06 | pass→pass | 8,480 | 4,825 | -43% | 1 | 1 | 0% | 1,792 | 6,320 | +253% | 0 | 0 | — |
case-01 | fail→pass | 13,406 | 10,118 | -25% | 1 | 1 | 0% | 2,753 | 7,535 | +174% | 0 | 0 | — |
case-02 | fail→pass | 15,315 | 10,126 | -34% | 1 | 1 | 0% | 3,321 | 7,467 | +125% | 0 | 0 | — |
case-03 | fail→pass | 14,002 | 7,058 | -50% | 1 | 1 | 0% | 2,870 | 6,787 | +136% | 0 | 0 | — |
case-04 | fail→pass | 8,915 | 5,456 | -39% | 1 | 1 | 0% | 1,697 | 6,414 | +278% | 0 | 0 | — |
case-05 | fail→pass | 9,118 | 5,792 | -36% | 1 | 1 | 0% | 1,896 | 6,476 | +242% | 0 | 0 | — |
case-07 | fail→pass | 7,723 | 4,196 | -46% | 1 | 1 | 0% | 1,603 | 6,156 | +284% | 0 | 0 | — |
case-08 | pass→pass | 11,692 | 5,283 | -55% | 1 | 1 | 0% | 2,215 | 6,334 | +186% | 0 | 0 | — |
case-09 | fail→pass | 7,443 | 4,904 | -34% | 1 | 1 | 0% | 1,506 | 6,366 | +323% | 0 | 0 | — |
case-10 | fail→pass | 6,685 | 3,103 | -54% | 1 | 1 | 0% | 1,371 | 5,849 | +327% | 0 | 0 | — |
case-11 | fail→pass | 10,537 | 4,886 | -54% | 1 | 1 | 0% | 2,162 | 6,343 | +193% | 0 | 0 | — |
case-12 | fail→fail | 10,335 | 6,411 | -38% | 1 | 1 | 0% | 1,961 | 6,443 | +229% | 0 | 0 | — |
case-13 | fail→pass | 6,964 | 4,022 | -42% | 1 | 1 | 0% | 1,423 | 6,137 | +331% | 0 | 0 | — |
case-14 | fail→pass | 8,105 | 3,125 | -61% | 1 | 1 | 0% | 1,577 | 5,878 | +273% | 0 | 0 | — |
case-15 | fail→pass | 20,055 | 4,925 | -75% | 1 | 1 | 0% | 2,346 | 6,343 | +170% | 0 | 0 | — |
case-16 | fail→pass | 9,020 | 6,648 | -26% | 1 | 1 | 0% | 1,928 | 6,720 | +249% | 0 | 0 | — |
case-17 | fail→pass | 6,946 | 2,495 | -64% | 1 | 1 | 0% | 1,544 | 5,789 | +275% | 0 | 0 | — |
case-18 | fail→fail | 8,843 | 6,036 | -32% | 1 | 1 | 0% | 1,685 | 6,430 | +282% | 0 | 0 | — |
case-19 | pass→pass | 5,636 | 3,093 | -45% | 1 | 1 | 0% | 1,296 | 5,848 | +351% | 0 | 0 | — |
case-20 | fail→pass | 7,463 | 3,203 | -57% | 1 | 1 | 0% | 1,604 | 5,931 | +270% | 0 | 0 | — |
case-21 | fail→pass | 8,306 | 7,048 | -15% | 1 | 1 | 0% | 2,290 | 6,794 | +197% | 0 | 0 | — |
case-22 | pass→pass | 7,847 | 7,381 | -6% | 1 | 1 | 0% | 2,014 | 6,760 | +236% | 0 | 0 | — |
case-23 | pass→pass | 7,977 | 5,479 | -31% | 1 | 1 | 0% | 1,956 | 6,281 | +221% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 23 cases were attempted. The headline lift of +70 percentage points is the difference between those two pass rates over the 23 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.