Token导航 LogoToken导航TokenDH.com
开发敏感数据github未标认证来源可访问许可证需确认审计通过

telnyx-10dlc-gotelnyx 10dlc 去

Agent Skill

telnyx-10dlc-go 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

563

周安装

23

GitHub Stars

169

下载量

180
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:telnyx-10dlc-go(telnyx 10dlc 去)
来源仓库:https://github.com/team-telnyx/skills
仓库路径:skills/telnyx-10dlc-go
安装命令:
npx skills add https://github.com/team-telnyx/skills --skill telnyx-10dlc-go
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/team-telnyx/skills --skill telnyx-10dlc-go

简介

telnyx-10dlc-go 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态、代码变更或协作事项进行整理。
  • 通过 npx skills add 命令从指定仓库安装,具体实现需结合 README 理解。
  • 使用前应评估是否涉及系统调用或外部依赖,确保运行环境兼容。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

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.

Core Tasks

Create a brand

Brand registration is the entrypoint for any US A2P 10DLC campaign flow.

client.Messaging10dlc.Brand.New()POST /10dlc/brand

ParameterTypeRequiredDescription
EntityTypeobjectYesEntity type behind the brand.
DisplayNamestringYesDisplay name, marketing name, or DBA name of the brand.
CountrystringYesISO2 2 characters country code.
EmailstringYesValid email address of brand support contact.
VerticalobjectYesVertical or industry segment of the brand.
CompanyNamestringNo(Required for Non-profit/private/public) Legal company name.
FirstNamestringNoFirst name of business contact.
LastNamestringNoLast name of business contact.
...+16 optional params in 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

ParameterTypeRequiredDescription
BrandIdstring (UUID)YesAlphanumeric identifier of the brand associated with this ca...
DescriptionstringYesSummary description of this campaign.
UsecasestringYesCampaign usecase.
AgeGatedbooleanNoAge gated message content in campaign.
AutoRenewalbooleanNoCampaign subscription auto-renewal option.
DirectLendingbooleanNoDirect lending or loan arrangement
...+29 optional params in references/api-details.md
	telnyxCampaignCsp, err := client.Messaging10dlc.CampaignBuilder.Submit(context.Background(), telnyx.Messaging10dlcCampaignBuilderSubmitParams{
		BrandID: "BXXXXXX",
		Description: "Two-factor authentication messages",
		Usecase: "2FA",
		SampleMessages: []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
  • telnyxCampaignCsp.CampaignStatus
  • telnyxCampaignCsp.SubmissionStatus
  • telnyxCampaignCsp.FailureReasons
  • telnyxCampaignCsp.Status

Assign a messaging profile to a campaign

Messaging profile assignment is the practical handoff from registration to send-ready messaging infrastructure.

client.Messaging10dlc.PhoneNumberAssignmentByProfile.Assign()POST /10dlc/phoneNumberAssignmentByProfile

ParameterTypeRequiredDescription
MessagingProfileIdstring (UUID)YesThe ID of the messaging profile that you want to link to the...
CampaignIdstring (UUID)YesThe ID of the campaign you want to link to the specified mes...
TcrCampaignIdstring (UUID)NoThe TCR ID of the shared campaign you want to link to the sp...
	response, err := client.Messaging10dlc.PhoneNumberAssignmentByProfile.Assign(context.Background(), telnyx.Messaging10dlcPhoneNumberAssignmentByProfileAssignParams{
		MessagingProfileID: "4001767e-ce0f-4cae-9d5f-0d5e636e7809",
		CampaignID: telnyx.String("CXXX001"),
	})
	if err != nil {
		log.Fatal(err)
	}
	fmt.Printf("%+v\n", response.MessagingProfileID)

Primary response fields:

  • response.MessagingProfileID
  • response.CampaignID
  • response.TaskID
  • response.TCRCampaignID

Webhook Verification

Telnyx signs webhooks with Ed25519. Each request includes telnyx-signature-ed25519 and telnyx-timestamp headers. Always verify signatures in production:

// In your webhook handler:
func handleWebhook(w http.ResponseWriter, r *http.Request) {
  body, _ := io.ReadAll(r.Body)
  event, err := client.Webhooks.Unwrap(body, r.Header)
  if err != nil {
    http.Error(w, "Invalid signature", http.StatusBadRequest)
    return
  }
  // Signature valid — event is the parsed webhook payload
  fmt.Println("Received event:", event.Data.EventType)
  w.WriteHeader(http.StatusOK)
}

Webhooks

These webhook payload fields are inline because they are part of the primary integration path.

Campaign Status Update

FieldTypeDescription
brandIdstringBrand ID associated with the campaign.
campaignIdstringThe ID of the campaign.
createDatestringUnix timestamp when campaign was created.
cspIdstringAlphanumeric identifier of the CSP associated with this campaign.
isTMobileRegisteredbooleanIndicates whether the campaign is registered with T-Mobile.
typeenum: TELNYX_EVENT, REGISTRATION, MNO_REVIEW, TELNYX_REVIEW, NUMBER_POOL_PROVISIONED, NUMBER_POOL_DEPROVISIONED, TCR_EVENT, VERIFIED
descriptionstringDescription of the event.
statusenum: ACCEPTED, REJECTED, DORMANT, success, failedThe status of the campaign.

If you need webhook fields that are not listed inline here, read the webhook payload reference before writing the handler.


Important Supporting Operations

Use these when the core tasks above are close to your flow, but you need a common variation or follow-up step.

Get Brand

Inspect the current state of an existing brand registration.

client.Messaging10dlc.Brand.Get()GET /10dlc/brand/{brandId}

ParameterTypeRequiredDescription
BrandIdstring (UUID)Yes
	brand, err := client.Messaging10dlc.Brand.Get(context.Background(), "brandId")
	if err != nil {
		log.Fatal(err)
	}
	fmt.Printf("%+v\n", brand)

Primary response fields:

  • brand.Status
  • brand.State
  • brand.AltBusinessID
  • brand.AltBusinessIDType
  • brand.AssignedCampaignsCount
  • brand.BrandID

Qualify By Usecase

Fetch the current state before updating, deleting, or making control-flow decisions.

client.Messaging10dlc.CampaignBuilder.Brand.QualifyByUsecase()GET /10dlc/campaignBuilder/brand/{brandId}/usecase/{usecase}

ParameterTypeRequiredDescription
UsecasestringYes
BrandIdstring (UUID)Yes
	response, err := client.Messaging10dlc.CampaignBuilder.Brand.QualifyByUsecase(
		context.Background(),
		"usecase",
		telnyx.Messaging10dlcCampaignBuilderBrandQualifyByUsecaseParams{
			BrandID: "BXXX001",
		},
	)
	if err != nil {
		log.Fatal(err)
	}
	fmt.Printf("%+v\n", response.AnnualFee)

Primary response fields:

  • response.AnnualFee
  • response.MaxSubUsecases
  • response.MinSubUsecases
  • response.MNOMetadata
  • response.MonthlyFee
  • response.QuarterlyFee

Create New Phone Number Campaign

Create or provision an additional resource when the core tasks do not cover this flow.

client.Messaging10dlc.PhoneNumberCampaigns.New()POST /10dlc/phone_number_campaigns

ParameterTypeRequiredDescription
PhoneNumberstring (E.164)YesThe phone number you want to link to a specified campaign.
CampaignIdstring (UUID)YesThe ID of the campaign you want to link to the specified pho...
	phoneNumberCampaign, err := client.Messaging10dlc.PhoneNumberCampaigns.New(context.Background(), telnyx.Messaging10dlcPhoneNumberCampaignNewParams{
		PhoneNumberCampaignCreate: telnyx.PhoneNumberCampaignCreateParam{
			CampaignID:  "4b300178-131c-d902-d54e-72d90ba1620j",
			PhoneNumber: "+18005550199",
		},
	})
	if err != nil {
		log.Fatal(err)
	}
	fmt.Printf("%+v\n", phoneNumberCampaign.CampaignID)

Primary response fields:

  • phoneNumberCampaign.AssignmentStatus
  • phoneNumberCampaign.BrandID
  • phoneNumberCampaign.CampaignID
  • phoneNumberCampaign.CreatedAt
  • phoneNumberCampaign.FailureReasons
  • phoneNumberCampaign.PhoneNumber

Get campaign

Inspect the current state of an existing campaign registration.

client.Messaging10dlc.Campaign.Get()GET /10dlc/campaign/{campaignId}

ParameterTypeRequiredDescription
CampaignIdstring (UUID)Yes
	telnyxCampaignCsp, err := client.Messaging10dlc.Campaign.Get(context.Background(), "campaignId")
	if err != nil {
		log.Fatal(err)
	}
	fmt.Printf("%+v\n", telnyxCampaignCsp.BrandID)

Primary response fields:

  • telnyxCampaignCsp.Status
  • telnyxCampaignCsp.AgeGated
  • telnyxCampaignCsp.AutoRenewal
  • telnyxCampaignCsp.BilledDate
  • telnyxCampaignCsp.BrandDisplayName
  • telnyxCampaignCsp.BrandID

List Brands

Inspect available resources or choose an existing resource before mutating it.

client.Messaging10dlc.Brand.List()GET /10dlc/brand

ParameterTypeRequiredDescription
Sortenum (assignedCampaignsCount, -assignedCampaignsCount, brandId, -brandId, createdAt,...)NoSpecifies the sort order for results.
PageintegerNo
RecordsPerPageintegerNonumber of records per page.
...+6 optional params in references/api-details.md
	page, err := client.Messaging10dlc.Brand.List(context.Background(), telnyx.Messaging10dlcBrandListParams{})
	if err != nil {
		log.Fatal(err)
	}
	fmt.Printf("%+v\n", page)

Primary response fields:

  • page.Page
  • page.Records
  • page.TotalRecords

Get Brand Feedback By Id

Fetch the current state before updating, deleting, or making control-flow decisions.

client.Messaging10dlc.Brand.GetFeedback()GET /10dlc/brand/feedback/{brandId}

ParameterTypeRequiredDescription
BrandIdstring (UUID)Yes
	response, err := client.Messaging10dlc.Brand.GetFeedback(context.Background(), "brandId")
	if err != nil {
		log.Fatal(err)
	}
	fmt.Printf("%+v\n", response.BrandID)

Primary response fields:

  • response.BrandID
  • response.Category

Additional Operations

Use the core tasks above first. The operations below are indexed here with exact SDK methods and required params; use references/api-details.md for full optional params, response schemas, and lower-frequency webhook payloads. Before using any operation below, read the optional-parameters section and the response-schemas section so you do not guess missing fields.

OperationSDK methodEndpointUse whenRequired params
Get Brand SMS OTP Statusclient.Messaging10dlc.Brand.GetSMSOtpByReference()GET /10dlc/brand/smsOtp/{referenceId}Fetch the current state before updating, deleting, or making control-flow decisions.ReferenceId
Update Brandclient.Messaging10dlc.Brand.Update()PUT /10dlc/brand/{brandId}Inspect the current state of an existing brand registration.EntityType, DisplayName, Country, Email, +2 more
Delete Brandclient.Messaging10dlc.Brand.Delete()DELETE /10dlc/brand/{brandId}Inspect the current state of an existing brand registration.BrandId
Resend brand 2FA emailclient.Messaging10dlc.Brand.Resend2faEmail()POST /10dlc/brand/{brandId}/2faEmailCreate or provision an additional resource when the core tasks do not cover this flow.BrandId
List External Vettingsclient.Messaging10dlc.Brand.ExternalVetting.List()GET /10dlc/brand/{brandId}/externalVettingFetch the current state before updating, deleting, or making control-flow decisions.BrandId
Order Brand External Vettingclient.Messaging10dlc.Brand.ExternalVetting.Order()POST /10dlc/brand/{brandId}/externalVettingCreate or provision an additional resource when the core tasks do not cover this flow.EvpId, VettingClass, BrandId
Import External Vetting Recordclient.Messaging10dlc.Brand.ExternalVetting.Imports()PUT /10dlc/brand/{brandId}/externalVettingModify an existing resource without recreating it.EvpId, VettingId, BrandId
Revet Brandclient.Messaging10dlc.Brand.Revet()PUT /10dlc/brand/{brandId}/revetModify an existing resource without recreating it.BrandId
Get Brand SMS OTP Status by Brand IDclient.Messaging10dlc.Brand.GetSMSOtpStatus()GET /10dlc/brand/{brandId}/smsOtpFetch the current state before updating, deleting, or making control-flow decisions.BrandId
Trigger Brand SMS OTPclient.Messaging10dlc.Brand.TriggerSMSOtp()POST /10dlc/brand/{brandId}/smsOtpCreate or provision an additional resource when the core tasks do not cover this flow.PinSms, SuccessSms, BrandId
Verify Brand SMS OTPclient.Messaging10dlc.Brand.VerifySMSOtp()PUT /10dlc/brand/{brandId}/smsOtpModify an existing resource without recreating it.OtpPin, BrandId
List Campaignsclient.Messaging10dlc.Campaign.List()GET /10dlc/campaignInspect available resources or choose an existing resource before mutating it.None
Accept Shared Campaignclient.Messaging10dlc.Campaign.AcceptSharing()POST /10dlc/campaign/acceptSharing/{campaignId}Create or provision an additional resource when the core tasks do not cover this flow.CampaignId
Get Campaign Costclient.Messaging10dlc.Campaign.Usecase.GetCost()GET /10dlc/campaign/usecase/costInspect available resources or choose an existing resource before mutating it.None
Update campaignclient.Messaging10dlc.Campaign.Update()PUT /10dlc/campaign/{campaignId}Inspect the current state of an existing campaign registration.CampaignId
Deactivate campaignclient.Messaging10dlc.Campaign.Deactivate()DELETE /10dlc/campaign/{campaignId}Inspect the current state of an existing campaign registration.CampaignId
Submit campaign appeal for manual reviewclient.Messaging10dlc.Campaign.SubmitAppeal()POST /10dlc/campaign/{campaignId}/appealCreate or provision an additional resource when the core tasks do not cover this flow.AppealReason, CampaignId
Get Campaign Mno Metadataclient.Messaging10dlc.Campaign.GetMnoMetadata()GET /10dlc/campaign/{campaignId}/mnoMetadataFetch the current state before updating, deleting, or making control-flow decisions.CampaignId
Get campaign operation statusclient.Messaging10dlc.Campaign.GetOperationStatus()GET /10dlc/campaign/{campaignId}/operationStatusFetch the current state before updating, deleting, or making control-flow decisions.CampaignId
Get OSR campaign attributesclient.Messaging10dlc.Campaign.Osr.GetAttributes()GET /10dlc/campaign/{campaignId}/osr/attributesFetch the current state before updating, deleting, or making control-flow decisions.CampaignId
Get Sharing Statusclient.Messaging10dlc.Campaign.GetSharingStatus()GET /10dlc/campaign/{campaignId}/sharingFetch the current state before updating, deleting, or making control-flow decisions.CampaignId
List shared partner campaignsclient.Messaging10dlc.PartnerCampaigns.ListSharedByMe()GET /10dlc/partnerCampaign/sharedByMeInspect available resources or choose an existing resource before mutating it.None
Get Sharing Statusclient.Messaging10dlc.PartnerCampaigns.GetSharingStatus()GET /10dlc/partnerCampaign/{campaignId}/sharingFetch the current state before updating, deleting, or making control-flow decisions.CampaignId
List Shared Campaignsclient.Messaging10dlc.PartnerCampaigns.List()GET /10dlc/partner_campaignsInspect available resources or choose an existing resource before mutating it.None
Get Single Shared Campaignclient.Messaging10dlc.PartnerCampaigns.Get()GET /10dlc/partner_campaigns/{campaignId}Fetch the current state before updating, deleting, or making control-flow decisions.CampaignId
Update Single Shared Campaignclient.Messaging10dlc.PartnerCampaigns.Update()PATCH /10dlc/partner_campaigns/{campaignId}Modify an existing resource without recreating it.CampaignId
Get Assignment Task Statusclient.Messaging10dlc.PhoneNumberAssignmentByProfile.GetStatus()GET /10dlc/phoneNumberAssignmentByProfile/{taskId}Fetch the current state before updating, deleting, or making control-flow decisions.TaskId
Get Phone Number Statusclient.Messaging10dlc.PhoneNumberAssignmentByProfile.ListPhoneNumberStatus()GET /10dlc/phoneNumberAssignmentByProfile/{taskId}/phoneNumbersFetch the current state before updating, deleting, or making control-flow decisions.TaskId
List phone number campaignsclient.Messaging10dlc.PhoneNumberCampaigns.List()GET /10dlc/phone_number_campaignsInspect available resources or choose an existing resource before mutating it.None
Get Single Phone Number Campaignclient.Messaging10dlc.PhoneNumberCampaigns.Get()GET /10dlc/phone_number_campaigns/{phoneNumber}Fetch the current state before updating, deleting, or making control-flow decisions.PhoneNumber
Create New Phone Number Campaignclient.Messaging10dlc.PhoneNumberCampaigns.Update()PUT /10dlc/phone_number_campaigns/{phoneNumber}Modify an existing resource without recreating it.PhoneNumber, CampaignId, PhoneNumber
Delete Phone Number Campaignclient.Messaging10dlc.PhoneNumberCampaigns.Delete()DELETE /10dlc/phone_number_campaigns/{phoneNumber}Remove, detach, or clean up an existing resource.PhoneNumber

For exhaustive optional parameters, full response schemas, and complete webhook payloads, see references/api-details.md.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.53%
按下载量换算68

Claude

26.99%
按下载量换算49

Cursor

17.51%
按下载量换算32

Gemini CLI

9.6%
按下载量换算17

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills