telnyx-ai-assistants-c…
AI voice assistants with custom instructions, knowledge bases, and tool integrations.
Add credit to a Telnyx account through an Agentic Commerce Protocol (ACP) checkout, paying with a Stripe Link agent wallet or Tempo USDC, then verify the order and balance.
$ npx -y skills add team-telnyx/ai --skill telnyx-acp-payment --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/telnyx-acp-paymentContext preview
The summary Claude sees to decide when to auto-load this skill.
Add credit to a Telnyx account through an Agentic Commerce Protocol (ACP) checkout, paying with a Stripe Link agent wallet or Tempo USDC, then verify the order and balance.
name: telnyx-acp-payment
description: >-
Add credit to a Telnyx account through an Agentic Commerce Protocol (ACP)
checkout, paying with a Stripe Link agent wallet or Tempo USDC, then verify
the order and balance.
metadata:
author: telnyx
product: payments
requires:
bins:
- curl
- jq
- node
- npm
- npx
env:
- TELNYX_API_KEYUse Agentic Commerce Protocol (ACP) to add USD credit to your Telnyx account. You create a checkout, pay it with a Stripe Link agent wallet backed by an eligible card or with USDC from a funded Tempo wallet, and complete the checkout once. Telnyx credits the account that owns the API key.
Use this skill when you want an ACP checkout lifecycle around a Telnyx account-credit payment: a checkout you can retrieve, cancel, and reconcile, with idempotency keys on every write and an order record when it completes. If you only want the single-request HTTP `402` flow, the `telnyx-mpp-payment` skill funds the same account with the same Link or Tempo credentials.
All Telnyx ACP account-credit checkouts use these endpoints:
POST https://api.telnyx.com/v2/checkout_sessions
GET https://api.telnyx.com/v2/checkout_sessions/{checkout_id}
POST https://api.telnyx.com/v2/checkout_sessions/{checkout_id}/complete
POST https://api.telnyx.com/v2/checkout_sessions/{checkout_id}/cancelThere is one product: USD account credit, catalog item `account_credit_usd`. Each checkout advertises the payment handlers it accepts. Telnyx uses Machine Payment Protocol (MPP) challenges inside those handlers, so the Link and Tempo payment steps are the same ones used for a direct MPP payment.
You need `curl`, `jq`, Node.js, npm, and a Telnyx API key. Link payments use `@stripe/link-cli@0.16.0`. Tempo payments use `mppx@0.6.28` and a funded Tempo wallet. Both tools run through `npx`, so nothing is installed into your project.
Run every command block below in the same shell session. Later blocks reuse variables such as `CHECKOUT` and `ACP_CHECKOUT_ID` that earlier blocks set.
| Variable | Required | Description | |---|---|---| | `TELNYX_API_KEY` | Yes | API key for the Telnyx account that will receive the credit | | `ACP_AMOUNT_CENTS` | Yes | Positive integer amount in US cents | | `ACP_BASE_URL` | Yes | `https://api.telnyx.com` | | `ACP_CREATE_KEY`, `ACP_COMPLETE_KEY`, `ACP_CANCEL_KEY` | Yes | One `Idempotency-Key` per logical operation, generated up front and kept for support | | `ACP_CHECKOUT_ID` | After create | Checkout `id` returned by the create request | | `LINK_PAYMENT_METHOD_ID` | Link only | Eligible Link card payment-method ID | | `LINK_NETWORK_ID` | Link only | `config.merchant_id` from the checkout's Stripe handler | | `LINK_SPEND_REQUEST_ID` | Link only | Approved, one-time Link spend-request ID |
Keep the API key in your shell environment rather than putting it directly in a command or file:
export TELNYX_API_KEY='KEYxxxxx' export ACP_AMOUNT_CENTS='1200' export ACP_BASE_URL='https://api.telnyx.com' export ACP_CREATE_KEY="$(node -e 'console.log(crypto.randomUUID())')" export ACP_COMPLETE_KEY="$(node -e 'console.log(crypto.randomUUID())')" export ACP_CANCEL_KEY="$(node -e 'console.log(crypto.randomUUID())')" echo "create=$ACP_CREATE_KEY complete=$ACP_COMPLETE_KEY cancel=$ACP_CANCEL_KEY"
Record the three keys now. Support can trace an operation by its key, and the same key is what you re-send if a request is interrupted.
curl -sS "$ACP_BASE_URL/v2/balance" \ -H "Authorization: Bearer $TELNYX_API_KEY"
Save `data.available_credit` so you can confirm the credit later.
Save the response in a private temporary file because it contains the payment challenge for your account:
umask 077
CHECKOUT="$(mktemp /tmp/telnyx-acp-checkout.XXXXXX)"
curl -sS \
--output "$CHECKOUT" \
--write-out '%{http_code}\n' \
-X POST "$ACP_BASE_URL/v2/checkout_sessions" \
-H "Authorization: Bearer $TELNYX_API_KEY" \
-H 'API-Version: 2026-04-17' \
-H "Idempotency-Key: $ACP_CREATE_KEY" \
-H 'Content-Type: application/json' \
--data "{\"line_items\":[{\"id\":\"account_credit_usd\",\"unit_amount\":$ACP_AMOUNT_CENTS}],\"currency\":\"usd\",\"capabilities\":{}}"The res
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
AI voice assistants with custom instructions, knowledge bases, and tool integrations.
AI voice assistants with custom instructions, knowledge bases, and tool integrations.
AI voice assistants with custom instructions, knowledge bases, and tool integrations.
AI voice assistants with custom instructions, knowledge bases, and tool integrations.
AI voice assistants with custom instructions, knowledge bases, and tool integrations.
AI voice assistants with custom instructions, knowledge bases, and tool integrations.