一键导入
telnyx-account-go
Manage account balance, payments, invoices, webhooks, and view audit logs and detail records. This skill provides Go SDK examples.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Manage account balance, payments, invoices, webhooks, and view audit logs and detail records. This skill provides Go SDK examples.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Automated Telnyx bot account signup via obfuscated mathematical challenge
Track agent activities using the Telnyx AI Missions API. Use this skill when executing multi-step tasks that should be logged and tracked. Supports creating voice/SMS agents, scheduling calls, and retrieving conversation insights. Use when tasks involve calling people, sending SMS, or any substantial tracked work.
Automatically upgrade Telnyx account from freemium to professional tier
Test VoIP push notifications for Telnyx WebRTC iOS (APNs) and Android (FCM) apps. Use when debugging push notification delivery, validating certificate/credential setup, or testing that a device receives VoIP pushes correctly.
Text-to-vector embeddings and semantic search using Telnyx AI. Generate embedding vectors via an OpenAI-compatible API — no OpenAI or Google API keys required.
Register brands and campaigns for 10DLC (10-digit long code) A2P messaging compliance in the US. Manage campaign assignments to phone numbers. This skill provides Go SDK examples.
| name | telnyx-account-go |
| description | Manage account balance, payments, invoices, webhooks, and view audit logs and detail records. This skill provides Go SDK examples. |
| metadata | {"author":"telnyx","product":"account","language":"go","generated_by":"telnyx-ext-skills-generator"} |
go get github.com/team-telnyx/telnyx-go
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.
Retrieve a list of audit log entries.
GET /audit_events
page, err := client.AuditEvents.List(context.TODO(), telnyx.AuditEventListParams{})
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", page)
GET /balance
balance, err := client.Balance.Get(context.TODO())
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", balance.Data)
Search for any detail record across the Telnyx Platform
GET /detail_records
page, err := client.DetailRecords.List(context.TODO(), telnyx.DetailRecordListParams{})
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", page)
Retrieve a paginated list of invoices.
GET /invoices
page, err := client.Invoices.List(context.TODO(), telnyx.InvoiceListParams{})
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", page)
Retrieve a single invoice by its unique identifier.
GET /invoices/{id}
invoice, err := client.Invoices.Get(
context.TODO(),
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
telnyx.InvoiceGetParams{},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", invoice.Data)
Returns the payment auto recharge preferences.
GET /payments/auto_recharge_prefs
autoRechargePrefs, err := client.Payment.AutoRechargePrefs.List(context.TODO())
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", autoRechargePrefs.Data)
Update payment auto recharge preferences.
PATCH /payments/auto_recharge_prefs
autoRechargePref, err := client.Payment.AutoRechargePrefs.Update(context.TODO(), telnyx.PaymentAutoRechargePrefUpdateParams{})
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", autoRechargePref.Data)
List all user tags.
GET /user_tags
userTags, err := client.UserTags.List(context.TODO(), telnyx.UserTagListParams{})
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", userTags.Data)
Lists webhook_deliveries for the authenticated user
GET /webhook_deliveries
page, err := client.WebhookDeliveries.List(context.TODO(), telnyx.WebhookDeliveryListParams{})
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", page)
Provides webhook_delivery debug data, such as timestamps, delivery status and attempts.
GET /webhook_deliveries/{id}
webhookDelivery, err := client.WebhookDeliveries.Get(context.TODO(), "C9C0797E-901D-4349-A33C-C2C8F31A92C2")
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", webhookDelivery.Data)