Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Manage WebRTC credentials and mobile push notification settings. Use when building browser-based or mobile softphone applications. This skill provides Go SDK examples.
.claude/skills/team-telnyx-telnyx-webrtc-go/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-02 | ✗→✓ | ▲ Improved | 94% | 0% |
| case-01 | ✗→✓ | ▲ Improved | 27% | 0% |
| case-03 | ✗→✓ | ▲ Improved | 51% | 0% |
| case-07 | ✗→✓ | ▲ Improved | 223% | 0% |
| case-08 | ✗→✓ | ▲ Improved | 271% | 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 /mobile_push_credentials
gopage, err := client.MobilePushCredentials.List(context.Background(), telnyx.MobilePushCredentialListParams{}) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", page)
Returns: alias (string), certificate (string), created_at (date-time), id (string), private_key (string), project_account_json_file (object), record_type (string), type (string), updated_at (date-time)
POST /mobile_push_credentials — Required: type, certificate, private_key, alias
gopushCredentialResponse, err := client.MobilePushCredentials.New(context.Background(), telnyx.MobilePushCredentialNewParams{ OfIos: &telnyx.MobilePushCredentialNewParamsCreateMobilePushCredentialRequestIos{ Alias: "LucyIosCredential", Certificate: "-----BEGIN CERTIFICATE----- MIIGVDCCBTKCAQEAsNlRJVZn9ZvXcECQm65czs... -----END CERTIFICATE-----", PrivateKey: "-----BEGIN RSA PRIVATE KEY----- MIIEpQIBAAKCAQEAsNlRJVZn9ZvXcECQm65czs... -----END RSA PRIVATE KEY-----", }, }) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", pushCredentialResponse.Data)
Returns: alias (string), certificate (string), created_at (date-time), id (string), private_key (string), project_account_json_file (object), record_type (string), type (string), updated_at (date-time)
Retrieves mobile push credential based on the given push_credential_id
GET /mobile_push_credentials/{push_credential_id}
gopushCredentialResponse, err := client.MobilePushCredentials.Get(context.Background(), "0ccc7b76-4df3-4bca-a05a-3da1ecc389f0") if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", pushCredentialResponse.Data)
Returns: alias (string), certificate (string), created_at (date-time), id (string), private_key (string), project_account_json_file (object), record_type (string), type (string), updated_at (date-time)
Deletes a mobile push credential based on the given push_credential_id
DELETE /mobile_push_credentials/{push_credential_id}
goerr := client.MobilePushCredentials.Delete(context.Background(), "0ccc7b76-4df3-4bca-a05a-3da1ecc389f0") if err != nil { log.Fatal(err) }
List all On-demand Credentials.
GET /telephony_credentials
gopage, err := client.TelephonyCredentials.List(context.Background(), telnyx.TelephonyCredentialListParams{}) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", page)
Returns: created_at (string), expired (boolean), expires_at (string), id (string), name (string), record_type (string), resource_id (string), sip_password (string), sip_username (string), updated_at (string), user_id (string)
Create a credential.
POST /telephony_credentials — Required: connection_id
Optional: expires_at (string), name (string), tag (string)
gotelephonyCredential, err := client.TelephonyCredentials.New(context.Background(), telnyx.TelephonyCredentialNewParams{ ConnectionID: "1234567890", }) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", telephonyCredential.Data)
Returns: created_at (string), expired (boolean), expires_at (string), id (string), name (string), record_type (string), resource_id (string), sip_password (string), sip_username (string), updated_at (string), user_id (string)
Get the details of an existing On-demand Credential.
GET /telephony_credentials/{id}
gotelephonyCredential, err := client.TelephonyCredentials.Get(context.Background(), "id") if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", telephonyCredential.Data)
Returns: created_at (string), expired (boolean), expires_at (string), id (string), name (string), record_type (string), resource_id (string), sip_password (string), sip_username (string), updated_at (string), user_id (string)
Update an existing credential.
PATCH /telephony_credentials/{id}
Optional: connection_id (string), expires_at (string), name (string), tag (string)
gotelephonyCredential, err := client.TelephonyCredentials.Update( context.Background(), "id", telnyx.TelephonyCredentialUpdateParams{}, ) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", telephonyCredential.Data)
Returns: created_at (string), expired (boolean), expires_at (string), id (string), name (string), record_type (string), resource_id (string), sip_password (string), sip_username (string), updated_at (string), user_id (string)
Delete an existing credential.
DELETE /telephony_credentials/{id}
gotelephonyCredential, err := client.TelephonyCredentials.Delete(context.Background(), "id") if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", telephonyCredential.Data)
Returns: created_at (string), expired (boolean), expires_at (string), id (string), name (string), record_type (string), resource_id (string), sip_password (string), sip_username (string), updated_at (string), user_id (string)
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-02 | fail→pass | 9,017 | 7,256 | -20% | 1 | 1 | 0% | 2,014 | 3,902 | +94% | 0 | 0 | — |
case-01 | fail→pass | 14,638 | 7,717 | -47% | 1 | 1 | 0% | 3,139 | 3,995 | +27% | 0 | 0 | — |
case-03 | fail→pass | 14,814 | 9,550 | -36% | 1 | 1 | 0% | 2,933 | 4,441 | +51% | 0 | 0 | — |
case-04 | pass→pass | 14,034 | 11,931 | -15% | 1 | 1 | 0% | 3,091 | 4,932 | +60% | 0 | 0 | — |
case-05 | pass→pass | 4,832 | 3,416 | -29% | 1 | 1 | 0% | 946 | 2,877 | +204% | 0 | 0 | — |
case-06 | pass→pass | 10,260 | 7,269 | -29% | 1 | 1 | 0% | 1,985 | 3,680 | +85% | 0 | 0 | — |
case-07 | fail→pass | 4,581 | 2,149 | -53% | 1 | 1 | 0% | 804 | 2,595 | +223% | 0 | 0 | — |
case-08 | fail→pass | 3,586 | 1,573 | -56% | 1 | 1 | 0% | 660 | 2,450 | +271% | 0 | 0 | — |
case-09 | pass→pass | 4,120 | 2,257 | -45% | 1 | 1 | 0% | 673 | 2,666 | +296% | 0 | 0 | — |
case-10 | pass→pass | 5,897 | 1,838 | -69% | 1 | 1 | 0% | 919 | 2,492 | +171% | 0 | 0 | — |
case-11 | fail→pass | 8,754 | 3,500 | -60% | 1 | 1 | 0% | 1,507 | 2,910 | +93% | 0 | 0 | — |
case-12 | fail→pass | 5,930 | 1,617 | -73% | 1 | 1 | 0% | 861 | 2,443 | +184% | 0 | 0 | — |
case-13 | pass→pass | 6,645 | 2,861 | -57% | 1 | 1 | 0% | 1,269 | 2,531 | +99% | 0 | 0 | — |
case-14 | fail→pass | 9,671 | 2,926 | -70% | 1 | 1 | 0% | 1,702 | 2,789 | +64% | 0 | 0 | — |
case-15 | fail→pass | 9,432 | 4,114 | -56% | 1 | 1 | 0% | 1,663 | 3,028 | +82% | 0 | 0 | — |
case-16 | fail→pass | 6,954 | 3,613 | -48% | 1 | 1 | 0% | 1,457 | 2,891 | +98% | 0 | 0 | — |
case-17 | pass→pass | 6,806 | 1,906 | -72% | 1 | 1 | 0% | 1,222 | 2,551 | +109% | 0 | 0 | — |
case-18 | fail→pass | 4,540 | 2,439 | -46% | 1 | 1 | 0% | 798 | 2,424 | +204% | 0 | 0 | — |
case-19 | fail→pass | 6,280 | 2,773 | -56% | 1 | 1 | 0% | 1,197 | 2,628 | +120% | 0 | 0 | — |
case-20 | pass→pass | 9,499 | 3,840 | -60% | 1 | 1 | 0% | 2,047 | 2,920 | +43% | 0 | 0 | — |
case-21 | pass→pass | 2,326 | 1,340 | -42% | 1 | 1 | 0% | 341 | 2,445 | +617% | 0 | 0 | — |
case-22 | pass→pass | 12,483 | 5,260 | -58% | 1 | 1 | 0% | 2,393 | 3,264 | +36% | 0 | 0 | — |
case-23 | fail→pass | 3,212 | 1,932 | -40% | 1 | 1 | 0% | 544 | 2,541 | +367% | 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 +57 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.