team-telnyx/ai/telnyx-acp-payment

Claude Code and agent skill by team-telnyx/ai

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

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.

Install

npx vskill@latest install team-telnyx/ai/telnyx-acp-payment

SKILL.md

The same SKILL.md was published earlier as majiayu000/claude-skill-registry/telnyx-acp-payment.

Pay into your Telnyx account with ACP

Use 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.

When to use this skill

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:

text
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}/cancel

There 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.

Before you pay

  • These payments move real funds. Check the amount, payment method, and Telnyx account before you approve anything.
  • Use an API key for the account you want to credit. Telnyx gets the account from your API key. Do not send account_id.
  • Write the amount in whole US cents as an integer, such as 1200 for $12.00.
  • Per-payment amount limits apply and may change. An amount outside them is rejected with a generic 400 invalid_request that does not state the limits; if a well-formed create request gets that error, try a smaller amount or contact Telnyx Support.
  • Send API-Version: 2026-04-17 on every request. Other versions are rejected.
  • Generate and save one Idempotency-Key per logical operation (create, complete, cancel) before you start. Re-use that key if you have to re-send the same request after a network failure; never mint a new key per attempt, and never use a new key to get past a conflict.
  • A checkout expires. Check expires_at and start a new checkout if it has passed. Checkouts cannot be updated; create a new one instead.
  • The payment is tied to the account and amount in the checkout's challenge. Do not change either after you approve or sign it.
  • Complete a checkout exactly once. Never reuse a Link spend request, Shared Payment Token, Tempo payment credential, or completed challenge.
  • Link accepts eligible cards in supported regions — currently cards issued in the United States or Canada.
  • Never print, commit, or send your API key, Link access token, Shared Payment Token, wallet private key, or a signed Payment ... credential.

Setup

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.

Environment variables

VariableRequiredDescription
TELNYX_API_KEYYesAPI key for the Telnyx account that will receive the credit
ACP_AMOUNT_CENTSYesPositive integer amount in US cents
ACP_BASE_URLYeshttps://api.telnyx.com
ACP_CREATE_KEY, ACP_COMPLETE_KEY, ACP_CANCEL_KEYYesOne Idempotency-Key per logical operation, generated up front and kept for support
ACP_CHECKOUT_IDAfter createCheckout id returned by the create request
LINK_PAYMENT_METHOD_IDLink onlyEligible Link card payment-method ID
LINK_NETWORK_IDLink onlyconfig.merchant_id from the checkout's Stripe handler
LINK_SPEND_REQUEST_IDLink onlyApproved, one-time Link spend-request ID

Keep the API key in your shell environment rather than putting it directly in a command or file:

sh
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.

Read your starting balance

sh
curl -sS "$ACP_BASE_URL/v2/balance" \
-H "Authorization: Bearer $TELNYX_API_KEY"

Save data.available_credit so you can confirm the credit later.

Create the checkout

Save the response in a private temporary file because it contains the payment challenge for your account:

sh
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 response should be HTTP 201 with status: "ready_for_payment". Check the checkout before you pay:

sh
jq '{id, status, currency, total: (.totals[] | select(.type=="total") | .amount), expires_at,
handlers: [.capabilities.payment.handlers[] | {id, name}]}' "$CHECKOUT"
export ACP_CHECKOUT_ID="$(jq -r '.id' "$CHECKOUT")"

Confirm that the total equals ACP_AMOUNT_CENTS, that expires_at is in the future, and that the handler you plan to use is listed:

Handler nameHandler idPays with
com.telnyx.mpp.stripestripe_shared_payment_tokenStripe Link Shared Payment Token backed by an eligible card
com.telnyx.mpp.tempotempo_usdc_mppUSDC on Tempo from a funded wallet

Each handler's config.challenge is an MPP Payment ... challenge bound to your account and amount. Keep it private. Repeating the create request with the same Idempotency-Key and body returns the same checkout with an Idempotent-Replayed: true header instead of creating a second one.

Pay with Link

Sign in
sh
npx --yes @stripe/link-cli@0.16.0 auth status

If you are not signed in:

sh
npx --yes @stripe/link-cli@0.16.0 auth login \
--client-name 'Telnyx ACP payer' \
--timeout 600

Open the URL shown by the CLI, confirm the phrase, and approve access.

Choose a card
sh
npx --yes @stripe/link-cli@0.16.0 payment-methods list --format json

Choose a card whose capabilities.agentic_payments.eligible is not false. Link accepts eligible cards in supported regions — currently cards issued in the United States or Canada.

sh
export LINK_PAYMENT_METHOD_ID='<csmrpd-id>'
Read the merchant from the checkout

The Stripe handler carries the merchant profile that Link must pay. Always take it from the current checkout:

sh
export LINK_NETWORK_ID="$(jq -r '.capabilities.payment.handlers[] | select(.name=="com.telnyx.mpp.stripe") | .config.merchant_id' "$CHECKOUT")"
echo "$LINK_NETWORK_ID"

The value looks like profile_....

Create and approve the spend request
sh
npx --yes @stripe/link-cli@0.16.0 spend-request create \
--payment-method-id "$LINK_PAYMENT_METHOD_ID" \
--credential-type shared_payment_token \
--network-id "$LINK_NETWORK_ID" \
--amount "$ACP_AMOUNT_CENTS" \
--currency usd \
--context 'Authorize one card payment to add the specified USD credit to my Telnyx account through an ACP checkout using Stripe Link.' \
--request-approval \
--format json

The output includes the spend-request id and an approval URL of the form https://app.link.com/activity/approve/<lsrq-id>. The CLI may return at once with status: "pending_approval" or keep waiting until the request is approved, denied, or expired. Either way, open the URL, check the card and amount, and click Approve. Save the spend-request ID:

sh
export LINK_SPEND_REQUEST_ID='<lsrq-id>'

Each spend request can be used once. Create and approve a new one for every payment.

Retrieve the token

Write the token to a private file. Never put the token in a command argument:

sh
umask 077
SPEND="$(mktemp /tmp/telnyx-acp-spend.XXXXXX)"
npx --yes @stripe/link-cli@0.16.0 spend-request retrieve "$LINK_SPEND_REQUEST_ID" \
--include shared_payment_token --format json > "$SPEND"
jq -e '.status == "approved" or .status == "succeeded"' "$SPEND" > /dev/null \
&& echo 'APPROVED' \
|| echo 'NOT APPROVED: wait for the Link approval, then run this block again'

Continue only when the check prints APPROVED. If it prints NOT APPROVED, wait about 10 seconds and run this block again; give up and cancel the checkout if the spend request is denied or expires.

Complete the checkout

The block checks that an spt_... token is present before it builds the body, and stops otherwise:

sh
COMPLETE_BODY="$(mktemp /tmp/telnyx-acp-complete.XXXXXX)"
COMPLETE_RESULT="$(mktemp /tmp/telnyx-acp-result.XXXXXX)"
if jq -e '.shared_payment_token.id | strings | startswith("spt_")' "$SPEND" > /dev/null \
&& jq '{payment_data: {handler_id: "stripe_shared_payment_token",
instrument: {type: "card", credential: {type: "spt", token: .shared_payment_token.id}}}}' \
"$SPEND" > "$COMPLETE_BODY"; then
COMPLETE_STATUS="$(curl -sS --output "$COMPLETE_RESULT" --write-out '%{http_code}' \
-X POST "$ACP_BASE_URL/v2/checkout_sessions/$ACP_CHECKOUT_ID/complete" \
-H "Authorization: Bearer $TELNYX_API_KEY" \
-H 'API-Version: 2026-04-17' \
-H "Idempotency-Key: $ACP_COMPLETE_KEY" \
-H 'Content-Type: application/json' \
--data-binary "@$COMPLETE_BODY")"
echo "completion HTTP $COMPLETE_STATUS"
else
echo 'STOPPED: no Shared Payment Token in the spend request. Retrieve it again after approval; do not complete.'
fi

Submit the completion once. Read Check whether the payment went through before doing anything else.

Pay with Tempo USDC

Prepare your wallet

Create a named mainnet wallet if you do not already have one:

sh
npx --yes mppx@0.6.28 account create --account my-telnyx-payer --network mainnet

Back up the wallet and keep its private key secret. Transfer enough USDC.e (0x20C000000000000000000000b9537d11c60E8b50 on Tempo) to cover the payment plus network fees, then confirm the wallet address and check its balance in your wallet tooling:

sh
npx --yes mppx@0.6.28 account view --account my-telnyx-payer --network mainnet --format json
Inspect the checkout's challenge

The Tempo handler's config.challenge is the exact MPP challenge to pay. Save it, validate it, and decode its request parameter (base64url JSON):

sh
umask 077
TEMPO_CHALLENGE="$(mktemp /tmp/telnyx-acp-tempo-challenge.XXXXXX)"
TEMPO_CREDENTIAL="$(mktemp /tmp/telnyx-acp-tempo-credential.XXXXXX)"
jq -r '.capabilities.payment.handlers[] | select(.name=="com.telnyx.mpp.tempo") | .config.challenge' "$CHECKOUT" > "$TEMPO_CHALLENGE"
npx --yes mppx@0.6.28 sign --network mainnet --dry-run --challenge "$(cat "$TEMPO_CHALLENGE")"
sed -E 's/.*request="([^"]+)".*/\1/' "$TEMPO_CHALLENGE" \
| node -e 'let s="";process.stdin.on("data",d=>s+=d).on("end",()=>console.log(JSON.stringify(JSON.parse(Buffer.from(s.trim(),"base64url").toString()),null,2)))'

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
219
Repository forks
21
7-day trend score
27

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/team-telnyx/ai/telnyx-acp-payment/badge)](https://verified-skill.com/skills/team-telnyx/ai/telnyx-acp-payment)

Something wrong with this skill or its page? Tell us.