Complete Telnyx toolkit — ready-to-use tools (STT, TTS, RAG, Networking, 10DLC) plus SDK documentation for JavaScript, Python, Go, Java, and Ruby.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install telnyx-toolkit或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install telnyx-toolkit⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/telnyx-toolkit/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: telnyx-toolkit description: Complete Telnyx toolkit — ready-to-use tools (STT, TTS, RAG, Networking, 10DLC) plus SDK documentation for JavaScript, Python, Go, Java, and Ruby. metadata: {"openclaw":{"emoji":"📞","requires":{"env":["TELNYX_API_KEY"]},"primaryEnv":"TELNYX_API_KEY"}} ---
The complete toolkit for building with Telnyx. Includes ready-to-use tools and SDK documentation for all Telnyx APIs.
export TELNYX_API_KEY="your_key_here"
---
Two companion skills handle account lifecycle. They are included with the toolkit and can also be installed independently via ClawHub.
| Skill | Purpose | Path | Install standalone | |-------|---------|------|--------------------| | Telnyx Bot Signup | Create a new account or sign into an existing one (PoW challenge → email → API key) | {baseDir}/getting-started/telnyx-bot-signup/ | clawhub install telnyx-bot-signup | | Telnyx Freemium Upgrade | Upgrade freemium → professional via GitHub or LinkedIn identity verification | {baseDir}/getting-started/telnyx-freemium-upgrade/ | clawhub install telnyx-freemium-upgrade |
Hand off to telnyx-bot-signup when ANY of these are true:
TELNYX_API_KEY not set, ~/.config/telnyx/config.json missing)> Note: The bot_signup endpoint handles both new and existing accounts transparently — just provide the user's email.
Hand off to telnyx-freemium-upgrade when ANY of these are true:
| Trigger | Detection | |---------|-----------| | Error 10039 | SMS send fails: "destination not verified" | | Error D60 | Voice call fails: "destination not verified" | | Error 10038 | Feature blocked: "not available on current plan" | | Number limit hit | Second phone number purchase fails | | Cannot add funds | Freemium account cannot add payment method or top up | | Explicit request | User says "upgrade my account" |
Before handing off, check ~/.telnyx/upgrade.json — if decision is APPROVED, the account is already upgraded (retry the operation instead). If PASS_TO_HUMAN, it's under review (don't retry). See the telnyx-freemium-upgrade SKILL.md for full decision tree.
Each skill has its own SKILL.md with complete instructions. Read the skill's SKILL.md before executing its workflow.
---
Use these endpoints to check balance and add funds programmatically.
> Important: Top-ups charge the payment method (credit card, PayPal, or ACH) saved in the Telnyx Portal. There is no API to add a payment method — this is done by the user in the portal. Do not prompt the user about this upfront — just attempt the top-up when needed. If it returns 403, that's when you inform the user they need to add a payment method in the portal.
curl -s https://api.telnyx.com/v2/balance -H "Authorization: Bearer $TELNYX_API_KEY"
Response:
{
"data": {
"balance": "300.00",
"credit_limit": "100.00",
"available_credit": "400.00",
"currency": "USD"
}
}
Check whether auto-recharge is enabled. If it is, the account will top up automatically when balance drops below the threshold — the agent can just wait and retry instead of manually topping up.
curl -s https://api.telnyx.com/v2/payment/auto_recharge_prefs -H "Authorization: Bearer $TELNYX_API_KEY"
Response:
{
"data": {
"enabled": true,
"threshold_amount": "100.00",
"recharge_amount": "100.00",
"preference": "credit_paypal"
}
}
If enabled is true and the agent hits 20100, wait briefly and retry — auto-recharge should handle it. If enabled is false, proceed with the top-up endpoint below.
> Note: Enabling or configuring auto-recharge is a human decision — use the Telnyx Portal to change these settings.
Charges the stored payment method on file. Requires a payment method already configured in the Telnyx Portal.
curl -s -X POST https://api.telnyx.com/v2/payment/stored_payment_transactions -H "Authorization: Bearer $TELNYX_API_KEY" -H "Content-Type: application/json" -d '{"amount": "100.00"}'
The amount field is in dollars and cents (e.g., "100.00", "25.50").
Response:
{
"data": {
"id": "de06811a-2e43-4561-af5a-7d0a26e20aaa",
"record_type": "transaction",
"amount_cents": 10000,
"processor_status": "submitted_for_settlement",
"amount_currency": "USD",
"created_at": "2026-02-25T10:00:00Z",
"auto_recharge": false
}
}
Error handling:
| Status | Meaning | Action | |--------|---------|--------| | 200 | Transaction submitted | Wait for settlement, then retry the original operation | | 401 | Unauthorized | API key is invalid — hand off to telnyx-bot-signup | | 403 | Forbidden | No stored payment method on file — direct user to Telnyx Portal to add one | | 422 | Invalid amount | Amount must be a string with dollars and cents (e.g., "120.00") |
When a Telnyx API call fails with a payment-related error, follow this tree. The agent does not need to know the account tier upfront — the error codes and response codes reveal the right path.
Step 1: Identify the error
| Error Code | Meaning | Go to | |-----------|---------|-------| | 10038 / 10039 | Feature not permitted / limited | Step 2 (upgrade) | | 20100 / 20012 | Insufficient Funds / Account inactive | Step 3 (try top-up) |
> Note: The API may return 20100 (Insufficient Funds) even on freemium accounts where 10038/10039 would be more accurate. Don't assume 20100 means the account is professional — always attempt the top-up and let the response tell you.
Step 2: Feature restriction → Upgrade first
Errors 10038/10039 mean the account is freemium. Freemium accounts cannot add payment methods or top up — they must upgrade first.
Step 3: Insufficient funds → Try to top up
Always attempt the top-up regardless of account tier — the response will reveal the right path.
GET /v2/balance — check current available creditGET /v2/payment/auto_recharge_prefs — if enabled: true, wait briefly and retry (auto-recharge will handle it). If it does, stop herePOST /v2/payment/stored_payment_transactions — top up via API - Check ~/.telnyx/upgrade.json — if decision is APPROVED, the account is professional but has no payment method → direct user to Telnyx Portal to add one - Otherwise, the account is likely freemium → hand off to telnyx-freemium-upgrade (Step 2)
---
These are standalone utilities with scripts you can run directly:
...
安装 Telnyx Toolkit 后,可以对 AI 说这些话来触发它
Help me get started with Telnyx Toolkit
Explains what Telnyx Toolkit does, walks through the setup, and runs a quick demo based on your current project
Use Telnyx Toolkit to complete Telnyx toolkit — ready-to-use tools (STT, TTS, RAG, Networ...
Invokes Telnyx Toolkit with the right parameters and returns the result directly in the conversation
What can I do with Telnyx Toolkit in my developer & devops workflow?
Lists the top use cases for Telnyx Toolkit, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/telnyx-toolkit/ 目录(个人级,所有项目可用),或 .claude/skills/telnyx-toolkit/(项目级)。重启 AI 客户端后,用 /telnyx-toolkit 主动调用,或让 AI 根据上下文自动发现并使用。
Telnyx Toolkit 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Telnyx Toolkit 可免费安装使用。请查阅仓库了解许可证信息。
Complete Telnyx toolkit — ready-to-use tools (STT, TTS, RAG, Networking, 10DLC) plus SDK documentation for JavaScript, Python, Go, Java, and Ruby.
Telnyx Toolkit 属于「Developer & DevOps」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my developer & devops tasks using Telnyx Toolkit
Identifies repetitive steps in your workflow and sets up Telnyx Toolkit to handle them automatically