/telnyx-10dlc-go
10DLC brand and campaign registration for US A2P messaging compliance. Assign phone numbers to campaigns.
$ npx -y skills add team-telnyx/ai --skill telnyx-10dlc-go --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/telnyx-10dlc-go
Context preview
The summary Claude sees to decide when to auto-load this skill.
10DLC brand and campaign registration for US A2P messaging compliance. Assign phone numbers to campaigns.
SKILL.md
telnyx-10dlc-go.SKILL.mdname: telnyx-10dlc-go
description: >-
10DLC brand and campaign registration for US A2P messaging compliance. Assign
phone numbers to campaigns.
metadata:
author: telnyx
product: 10dlc
language: go
generated_by: telnyx-ext-skills-generator
profile: northstar-v2
<!-- Auto-generated from Telnyx OpenAPI specs. Do not edit. -->
Telnyx 10DLC - Go
Installation
go get github.com/team-telnyx/telnyx-go
Setup
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.
Error Handling
All API calls can fail with network errors, rate limits (429), validation errors (422), or authentication errors (401). Always handle errors in production code:
import "errors"
telnyxBrand, err := client.Messaging10dlc.Brand.New(context.Background(), telnyx.Messaging10dlcBrandNewParams{
Country: "US",
DisplayName: "ABC Mobile",
Email: "support@example.com",
EntityType: telnyx.EntityTypePrivateProfit,
Vertical: telnyx.VerticalTechnology,
})
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:
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).
Important Notes
- **Pagination:** Use `ListAutoPaging()` for automatic iteration: `iter := client.Resource.ListAutoPaging(ctx, params); for iter.Next() { item := iter.Current() }`.
Operational Caveats
- 10DLC is sequential: create the brand first, then submit the campaign, then attach messaging infrastructure such as the messaging profile.
- Registration calls are not enough by themselves. Messaging cannot use the campaign until the assignment step completes successfully.
- Treat registration status fields as part of the control flow. Do not assume the campaign is send-ready until the returned status fields confirm it.
Reference Use Rules
Do not invent Telnyx parameters, enums, response fields, or webhook fields.
- If the parameter, enum, or response field you need is not shown inline in this skill, read [references/api-details.md](references/api-details.md) before writing code.
- Before using any operation in `## Additional Operations`, read [the optional-parameters section](references/api-details.md#optional-parameters) and [the response-schemas section](references/api-details.md#response-schemas).
- Before reading or matching webhook fields beyond the inline examples, read [the webhook payload reference](references/api-details.md#webhook-payload-fields).
Core Tasks
Create a brand
Brand registration is the entrypoint for any US A2P 10DLC campaign flow.
`client.Messaging10dlc.Brand.New()` — `POST /10dlc/brand`
| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | `EntityType` | object | Yes | Entity type behind the brand. | | `DisplayName` | string | Yes | Display name, marketing name, or DBA name of the brand. | | `Country` | string | Yes | ISO2 2 characters country code. | | `Email` | string | Yes | Valid email address of brand support contact. | | `Vertical` | object | Yes | Vertical or industry segment of the brand. | | `CompanyName` | string | No | (Required for Non-profit/private/public) Legal company name. | | `FirstName` | string | No | First name of business contact. | | `LastName` | string | No | Last name of business contact. | | ... | | | +16 optional params in [references/api-details.md](references/api-details.md) |
telnyxBrand, err := client.Messaging10dlc.Brand.New(context.Background(), telnyx.Messaging10dlcBrandNewParams{
Country: "US",
DisplayName: "ABC Mobile",
Email: "support@example.com",
EntityType: telnyx.EntityTypePrivateProfit,
Vertical: telnyx.VerticalTechnology,
})
if err != nil {
log.Fatal(err)
}
fmt.Printf("%+v\n", telnyxBrand.IdentityStatus)Primary response fields:
- `telnyxBrand.BrandID`
- `telnyxBrand.IdentityStatus`
- `telnyxBrand.Status`
- `telnyxBrand.DisplayName`
- `telnyxBrand.State`
- `telnyxBrand.AltBusinessID`
Submit a campaign
Campaign submission is the compliance-critical step that determines whether traffic can be provisioned.
`client.Messaging10dlc.CampaignBuilder.Submit()` — `POST /10dlc/campaignBuilder`
| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | `BrandId` | string (UUID) | Yes | Alphanumeric identifier of the brand associated with this ca... | | `Description` | string | Yes | Summary description of this campaign. | | `Usecase` | string | Yes | Campaign usecase. | | `AgeGated` | boolean | No | Age gated message content in campaign. | | `AutoRenewal` | boolean | No | Campaign subscription auto-renewal option. | | `DirectLending` | boolean | No | Direct lending or loan arrangement | | ... | | | +29 optional params in [references/api-details.md](references/api-details.md) |
telnyxCampaignCsp, err := client.Messaging10dlc.CampaignBuilder.Submit(context.Background(), telnyx.Messaging10dlcCampaignBuilderSubmitParams{
BrandID: "BXXXXXX",
Description: "Two-factor authentication messages",
Usecase: "2FA",
Sample1: telnyx.String("Your verification code is {{code}}"),
})
if err != nil {
log.Fatal(err)
}
fmt.Printf("%+v\n", telnyxCampaignCsp.BrandID)Primary response fields:
- `telnyxCampaignCsp.CampaignID`
- `telnyxCampaignCsp.BrandID`
- `tel
Read more
name: telnyx-10dlc-go description: >- 10DLC brand and campaign registration for US A2P messaging compliance. Assign phone numbers to campaigns. metadata: author: telnyx product: 10dlc language: go generated_by: telnyx-ext-skills-generator profile: northstar-v2
<!-- Auto-generated from Telnyx OpenAPI specs. Do not edit. -->
Telnyx 10DLC - Go
Installation
go get github.com/team-telnyx/telnyx-go
Setup
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.
Error Handling
All API calls can fail with network errors, rate limits (429), validation errors (422), or authentication errors (401). Always handle errors in production code:
import "errors"
telnyxBrand, err := client.Messaging10dlc.Brand.New(context.Background(), telnyx.Messaging10dlcBrandNewParams{
Country: "US",
DisplayName: "ABC Mobile",
Email: "support@example.com",
EntityType: telnyx.EntityTypePrivateProfit,
Vertical: telnyx.VerticalTechnology,
})
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:
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).
Important Notes
- **Pagination:** Use `ListAutoPaging()` for automatic iteration: `iter := client.Resource.ListAutoPaging(ctx, params); for iter.Next() { item := iter.Current() }`.
Operational Caveats
- 10DLC is sequential: create the brand first, then submit the campaign, then attach messaging infrastructure such as the messaging profile.
- Registration calls are not enough by themselves. Messaging cannot use the campaign until the assignment step completes successfully.
- Treat registration status fields as part of the control flow. Do not assume the campaign is send-ready until the returned status fields confirm it.
Reference Use Rules
Do not invent Telnyx parameters, enums, response fields, or webhook fields.
- If the parameter, enum, or response field you need is not shown inline in this skill, read [references/api-details.md](references/api-details.md) before writing code.
- Before using any operation in `## Additional Operations`, read [the optional-parameters section](references/api-details.md#optional-parameters) and [the response-schemas section](references/api-details.md#response-schemas).
- Before reading or matching webhook fields beyond the inline examples, read [the webhook payload reference](references/api-details.md#webhook-payload-fields).
Core Tasks
Create a brand
Brand registration is the entrypoint for any US A2P 10DLC campaign flow.
`client.Messaging10dlc.Brand.New()` — `POST /10dlc/brand`
| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | `EntityType` | object | Yes | Entity type behind the brand. | | `DisplayName` | string | Yes | Display name, marketing name, or DBA name of the brand. | | `Country` | string | Yes | ISO2 2 characters country code. | | `Email` | string | Yes | Valid email address of brand support contact. | | `Vertical` | object | Yes | Vertical or industry segment of the brand. | | `CompanyName` | string | No | (Required for Non-profit/private/public) Legal company name. | | `FirstName` | string | No | First name of business contact. | | `LastName` | string | No | Last name of business contact. | | ... | | | +16 optional params in [references/api-details.md](references/api-details.md) |
telnyxBrand, err := client.Messaging10dlc.Brand.New(context.Background(), telnyx.Messaging10dlcBrandNewParams{
Country: "US",
DisplayName: "ABC Mobile",
Email: "support@example.com",
EntityType: telnyx.EntityTypePrivateProfit,
Vertical: telnyx.VerticalTechnology,
})
if err != nil {
log.Fatal(err)
}
fmt.Printf("%+v\n", telnyxBrand.IdentityStatus)Primary response fields:
- `telnyxBrand.BrandID`
- `telnyxBrand.IdentityStatus`
- `telnyxBrand.Status`
- `telnyxBrand.DisplayName`
- `telnyxBrand.State`
- `telnyxBrand.AltBusinessID`
Submit a campaign
Campaign submission is the compliance-critical step that determines whether traffic can be provisioned.
`client.Messaging10dlc.CampaignBuilder.Submit()` — `POST /10dlc/campaignBuilder`
| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | `BrandId` | string (UUID) | Yes | Alphanumeric identifier of the brand associated with this ca... | | `Description` | string | Yes | Summary description of this campaign. | | `Usecase` | string | Yes | Campaign usecase. | | `AgeGated` | boolean | No | Age gated message content in campaign. | | `AutoRenewal` | boolean | No | Campaign subscription auto-renewal option. | | `DirectLending` | boolean | No | Direct lending or loan arrangement | | ... | | | +29 optional params in [references/api-details.md](references/api-details.md) |
telnyxCampaignCsp, err := client.Messaging10dlc.CampaignBuilder.Submit(context.Background(), telnyx.Messaging10dlcCampaignBuilderSubmitParams{
BrandID: "BXXXXXX",
Description: "Two-factor authentication messages",
Usecase: "2FA",
Sample1: telnyx.String("Your verification code is {{code}}"),
})
if err != nil {
log.Fatal(err)
}
fmt.Printf("%+v\n", telnyxCampaignCsp.BrandID)Primary response fields:
- `telnyxCampaignCsp.CampaignID`
- `telnyxCampaignCsp.BrandID`
- `tel
This repo is the one-stop shop for AI Agents and AI-first developers building with Telnyx — everything an agent needs to build production-grade applications and manage its account, from signup to funding.
Repo: team-telnyx/ai
Other skills on team-telnyx-ai.
- /telnyx-ai-assistants-curl
AI voice assistants with custom instructions, knowledge bases, and tool integrations.
Open skill - /telnyx-ai-assistants-go
AI voice assistants with custom instructions, knowledge bases, and tool integrations.
Open skill - /telnyx-ai-assistants-java
AI voice assistants with custom instructions, knowledge bases, and tool integrations.
Open skill - /telnyx-ai-assistants-javascript
AI voice assistants with custom instructions, knowledge bases, and tool integrations.
Open skill - /telnyx-ai-assistants-python
AI voice assistants with custom instructions, knowledge bases, and tool integrations.
Open skill - /telnyx-ai-assistants-ruby
AI voice assistants with custom instructions, knowledge bases, and tool integrations.
Open skill

