Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Create and manage messaging profiles with number pools, sticky sender, and geomatch features. Configure short codes for high-volume messaging. This skill provides Go SDK examples.
.claude/skills/team-telnyx-telnyx-messaging-profiles-go/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 55% | 0% |
| case-02 | ✗→✓ | ▲ Improved | 142% | 0% |
| case-04 | ✗→✓ | ▲ Improved | 234% | 0% |
| case-17 | ✗→✓ | ▲ Improved | 77% | 0% |
| case-10 | ✗→✓ | ▲ Improved | 149% | 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 /messaging_profiles
gopage, err := client.MessagingProfiles.List(context.Background(), telnyx.MessagingProfileListParams{}) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", page)
Returns: ai_assistant_id (string | null), alpha_sender (string | null), created_at (date-time), daily_spend_limit (string), daily_spend_limit_enabled (boolean), enabled (boolean), health_webhook_url (url), id (uuid), mms_fall_back_to_sms (boolean), mms_transcoding (boolean), mobile_only (boolean), name (string), number_pool_settings (object | null), organization_id (string), record_type (enum: messaging_profile), redaction_enabled (boolean), redaction_level (integer), resource_group_id (string | null), smart_encoding (boolean), updated_at (date-time), url_shortener_settings (object | null), v1_secret (string), webhook_api_version (enum: 1, 2, 2010-04-01), webhook_failover_url (url), webhook_url (url), whitelisted_destinations (arraystring])
POST /messaging_profiles — Required: name, whitelisted_destinations
Optional: ai_assistant_id (string | null), alpha_sender (string | null), daily_spend_limit (string), daily_spend_limit_enabled (boolean), enabled (boolean), health_webhook_url (url), mms_fall_back_to_sms (boolean), mms_transcoding (boolean), mobile_only (boolean), number_pool_settings (object | null), resource_group_id (string | null), smart_encoding (boolean), url_shortener_settings (object | null), webhook_api_version (enum: 1, 2, 2010-04-01), webhook_failover_url (url), webhook_url (url)
gomessagingProfile, err := client.MessagingProfiles.New(context.Background(), telnyx.MessagingProfileNewParams{ Name: "My name", WhitelistedDestinations: []string{"US"}, }) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", messagingProfile.Data)
Returns: ai_assistant_id (string | null), alpha_sender (string | null), created_at (date-time), daily_spend_limit (string), daily_spend_limit_enabled (boolean), enabled (boolean), health_webhook_url (url), id (uuid), mms_fall_back_to_sms (boolean), mms_transcoding (boolean), mobile_only (boolean), name (string), number_pool_settings (object | null), organization_id (string), record_type (enum: messaging_profile), redaction_enabled (boolean), redaction_level (integer), resource_group_id (string | null), smart_encoding (boolean), updated_at (date-time), url_shortener_settings (object | null), v1_secret (string), webhook_api_version (enum: 1, 2, 2010-04-01), webhook_failover_url (url), webhook_url (url), whitelisted_destinations (arraystring])
GET /messaging_profiles/{id}
gomessagingProfile, err := client.MessagingProfiles.Get(context.Background(), "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", messagingProfile.Data)
Returns: ai_assistant_id (string | null), alpha_sender (string | null), created_at (date-time), daily_spend_limit (string), daily_spend_limit_enabled (boolean), enabled (boolean), health_webhook_url (url), id (uuid), mms_fall_back_to_sms (boolean), mms_transcoding (boolean), mobile_only (boolean), name (string), number_pool_settings (object | null), organization_id (string), record_type (enum: messaging_profile), redaction_enabled (boolean), redaction_level (integer), resource_group_id (string | null), smart_encoding (boolean), updated_at (date-time), url_shortener_settings (object | null), v1_secret (string), webhook_api_version (enum: 1, 2, 2010-04-01), webhook_failover_url (url), webhook_url (url), whitelisted_destinations (arraystring])
PATCH /messaging_profiles/{id}
Optional: ai_assistant_id (string | null), alpha_sender (string | null), created_at (date-time), daily_spend_limit (string), daily_spend_limit_enabled (boolean), enabled (boolean), id (uuid), mms_fall_back_to_sms (boolean), mms_transcoding (boolean), mobile_only (boolean), name (string), number_pool_settings (object | null), record_type (enum: messaging_profile), smart_encoding (boolean), updated_at (date-time), url_shortener_settings (object | null), v1_secret (string), webhook_api_version (enum: 1, 2, 2010-04-01), webhook_failover_url (url), webhook_url (url), whitelisted_destinations (arraystring])
gomessagingProfile, err := client.MessagingProfiles.Update( context.Background(), "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", telnyx.MessagingProfileUpdateParams{}, ) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", messagingProfile.Data)
Returns: ai_assistant_id (string | null), alpha_sender (string | null), created_at (date-time), daily_spend_limit (string), daily_spend_limit_enabled (boolean), enabled (boolean), health_webhook_url (url), id (uuid), mms_fall_back_to_sms (boolean), mms_transcoding (boolean), mobile_only (boolean), name (string), number_pool_settings (object | null), organization_id (string), record_type (enum: messaging_profile), redaction_enabled (boolean), redaction_level (integer), resource_group_id (string | null), smart_encoding (boolean), updated_at (date-time), url_shortener_settings (object | null), v1_secret (string), webhook_api_version (enum: 1, 2, 2010-04-01), webhook_failover_url (url), webhook_url (url), whitelisted_destinations (arraystring])
DELETE /messaging_profiles/{id}
gomessagingProfile, err := client.MessagingProfiles.Delete(context.Background(), "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", messagingProfile.Data)
Returns: ai_assistant_id (string | null), alpha_sender (string | null), created_at (date-time), daily_spend_limit (string), daily_spend_limit_enabled (boolean), enabled (boolean), health_webhook_url (url), id (uuid), mms_fall_back_to_sms (boolean), mms_transcoding (boolean), mobile_only (boolean), name (string), number_pool_settings (object | null), organization_id (string), record_type (enum: messaging_profile), redaction_enabled (boolean), redaction_level (integer), resource_group_id (string | null), smart_encoding (boolean), updated_at (date-time), url_shortener_settings (object | null), v1_secret (string), webhook_api_version (enum: 1, 2, 2010-04-01), webhook_failover_url (url), webhook_url (url), whitelisted_destinations (arraystring])
GET /messaging_profiles/{id}/phone_numbers
gopage, err := client.MessagingProfiles.ListPhoneNumbers( context.Background(), "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", telnyx.MessagingProfileListPhoneNumbersParams{}, ) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", page)
Returns: country_code (string), created_at (date-time), eligible_messaging_products (arraystring]), features (object), health (object), id (string), messaging_product (string), messaging_profile_id (string | null), organization_id (string), phone_number (string), record_type (enum: messaging_phone_number, messaging_settings), tags (arraystring]), traffic_type (string), type (enum: long-code, toll-free, short-code, longcode, tollfree, shortcode), updated_at (date-time)
GET /messaging_profiles/{id}/short_codes
gopage, err := client.MessagingProfiles.ListShortCodes( context.Background(), "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", telnyx.MessagingProfileListShortCodesParams{}, ) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", page)
Returns: country_code (string), created_at (date-time), id (uuid), messaging_profile_id (string | null), record_type (enum: short_code), short_code (string), tags (array), updated_at (date-time)
GET /short_codes
gopage, err := client.ShortCodes.List(context.Background(), telnyx.ShortCodeListParams{}) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", page)
Returns: country_code (string), created_at (date-time), id (uuid), messaging_profile_id (string | null), record_type (enum: short_code), short_code (string), tags (array), updated_at (date-time)
GET /short_codes/{id}
goshortCode, err := client.ShortCodes.Get(context.Background(), "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", shortCode.Data)
Returns: country_code (string), created_at (date-time), id (uuid), messaging_profile_id (string | null), record_type (enum: short_code), short_code (string), tags (array), updated_at (date-time)
Update the settings for a specific short code. To unbind a short code from a profile, set the messaging_profile_id to null or an empty string. To add or update tags, include the tags field as an array of strings.
PATCH /short_codes/{id} — Required: messaging_profile_id
Optional: tags (array)
goshortCode, err := client.ShortCodes.Update( context.Background(), "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", telnyx.ShortCodeUpdateParams{ MessagingProfileID: "abc85f64-5717-4562-b3fc-2c9600000000", }, ) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", shortCode.Data)
Returns: country_code (string), created_at (date-time), id (uuid), messaging_profile_id (string | null), record_type (enum: short_code), short_code (string), tags (array), updated_at (date-time)
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→pass | 19,423 | 10,929 | -44% | 1 | 1 | 0% | 4,001 | 6,199 | +55% | 0 | 0 | — |
case-02 | fail→pass | 11,759 | 7,490 | -36% | 1 | 1 | 0% | 2,310 | 5,593 | +142% | 0 | 0 | — |
case-03 | fail→fail | 14,146 | 10,094 | -29% | 1 | 1 | 0% | 2,876 | 6,227 | +117% | 0 | 0 | — |
case-04 | fail→pass | 8,602 | 8,665 | +1% | 1 | 1 | 0% | 1,696 | 5,661 | +234% | 0 | 0 | — |
case-05 | pass→pass | 9,094 | 7,709 | -15% | 1 | 1 | 0% | 1,853 | 5,499 | +197% | 0 | 0 | — |
case-17 | fail→pass | 15,018 | 5,533 | -63% | 1 | 1 | 0% | 2,811 | 4,971 | +77% | 0 | 0 | — |
case-18 | pass→pass | 8,421 | 5,226 | -38% | 1 | 1 | 0% | 1,580 | 4,973 | +215% | 0 | 0 | — |
case-10 | fail→pass | 11,165 | 6,476 | -42% | 1 | 1 | 0% | 2,107 | 5,238 | +149% | 0 | 0 | — |
case-16 | fail→pass | 12,661 | 5,248 | -59% | 1 | 1 | 0% | 2,222 | 5,006 | +125% | 0 | 0 | — |
case-06 | pass→pass | 10,399 | 10,077 | -3% | 1 | 1 | 0% | 1,999 | 6,008 | +201% | 0 | 0 | — |
case-07 | fail→pass | 10,442 | 2,504 | -76% | 1 | 1 | 0% | 2,013 | 4,386 | +118% | 0 | 0 | — |
case-08 | fail→pass | 10,445 | 4,650 | -55% | 1 | 1 | 0% | 2,199 | 4,857 | +121% | 0 | 0 | — |
case-09 | pass→pass | 10,328 | 2,917 | -72% | 1 | 1 | 0% | 2,219 | 4,592 | +107% | 0 | 0 | — |
case-11 | pass→pass | 10,239 | 2,542 | -75% | 1 | 1 | 0% | 2,137 | 4,490 | +110% | 0 | 0 | — |
case-12 | fail→pass | 12,099 | 3,510 | -71% | 1 | 1 | 0% | 2,405 | 4,637 | +93% | 0 | 0 | — |
case-13 | pass→pass | 12,070 | 5,991 | -50% | 1 | 1 | 0% | 2,236 | 5,258 | +135% | 0 | 0 | — |
case-14 | fail→pass | 12,572 | 3,684 | -71% | 1 | 1 | 0% | 2,694 | 4,793 | +78% | 0 | 0 | — |
case-15 | pass→pass | 12,700 | 3,609 | -72% | 1 | 1 | 0% | 2,421 | 4,703 | +94% | 0 | 0 | — |
case-19 | fail→pass | 9,085 | 3,454 | -62% | 1 | 1 | 0% | 1,749 | 4,541 | +160% | 0 | 0 | — |
case-20 | pass→pass | 9,685 | 5,440 | -44% | 1 | 1 | 0% | 1,829 | 5,056 | +176% | 0 | 0 | — |
case-21 | fail→pass | 4,451 | 2,147 | -52% | 1 | 1 | 0% | 803 | 4,363 | +443% | 0 | 0 | — |
case-22 | pass→pass | 5,913 | 2,217 | -63% | 1 | 1 | 0% | 1,030 | 4,397 | +327% | 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. 22 cases were attempted. The headline lift of +55 percentage points is the difference between those two pass rates over the 22 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.