Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Manage account balance, payments, invoices, webhooks, and view audit logs and detail records. This skill provides Java SDK examples.
.claude/skills/team-telnyx-telnyx-account-java/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 17% | 0% |
| case-02 | ✗→✓ | ▲ Improved | 50% | 0% |
| case-03 | ✗→✓ | ▲ Improved | 69% | 0% |
| case-10 | ✗→✓ | ▲ Improved | 2% | 0% |
| case-07 | ✗→✓ | ▲ Improved | 268% | 0% |
<!-- Auto-generated from Telnyx OpenAPI specs. Do not edit. -->
text<!-- Maven --> <dependency> <groupId>com.telnyx.sdk</groupId> <artifactId>telnyx</artifactId> <version>6.89.0</version> </dependency> // Gradle implementation("com.telnyx.sdk:telnyx:6.89.0")
javaimport com.telnyx.sdk.client.TelnyxClient; import com.telnyx.sdk.client.okhttp.TelnyxOkHttpClient; TelnyxClient client = TelnyxOkHttpClient.fromEnv();
All examples below assume client is already initialized as shown above.
All API calls can fail with network errors, rate limits (429), validation errors (422), or authentication errors (401). Always handle errors in production code:
javaimport com.telnyx.sdk.errors.TelnyxServiceException; try { var result = client.messages().send(params); } catch (TelnyxServiceException e) { System.err.println("API error " + e.statusCode() + ": " + e.getMessage()); if (e.statusCode() == 422) { System.err.println("Validation error — check required fields and formats"); } else if (e.statusCode() == 429) { // Rate limited — wait and retry with exponential backoff Thread.sleep(1000); } }
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).
.autoPager() for automatic iteration: for (var item : page.autoPager()) { ... }. For manual control, use .hasNextPage() and .nextPage().Retrieve a list of audit log entries. Audit logs are a best-effort, eventually consistent record of significant account-related changes.
GET /audit_events
javaimport com.telnyx.sdk.models.auditevents.AuditEventListPage; import com.telnyx.sdk.models.auditevents.AuditEventListParams; AuditEventListPage page = client.auditEvents().list();
Returns: alternate_resource_id (string | null), change_made_by (enum: telnyx, account_manager, account_owner, organization_member), change_type (string), changes (array | null), created_at (date-time), id (uuid), organization_id (uuid), record_type (string), resource_id (string), user_id (uuid)
GET /balance
javaimport com.telnyx.sdk.models.balance.BalanceRetrieveParams; import com.telnyx.sdk.models.balance.BalanceRetrieveResponse; BalanceRetrieveResponse balance = client.balance().retrieve();
Returns: available_credit (string), balance (string), credit_limit (string), currency (string), pending (string), record_type (enum: balance)
Retrieve a detailed breakdown of monthly charges for phone numbers in a specified date range. The date range cannot exceed 31 days.
GET /charges_breakdown
javaimport com.telnyx.sdk.models.chargesbreakdown.ChargesBreakdownRetrieveParams; import com.telnyx.sdk.models.chargesbreakdown.ChargesBreakdownRetrieveResponse; import java.time.LocalDate; ChargesBreakdownRetrieveParams params = ChargesBreakdownRetrieveParams.builder() .startDate(LocalDate.parse("2025-05-01")) .build(); ChargesBreakdownRetrieveResponse chargesBreakdown = client.chargesBreakdown().retrieve(params);
Returns: currency (string), end_date (date), results (arrayobject]), start_date (date), user_email (email), user_id (string)
Retrieve a summary of monthly charges for a specified date range. The date range cannot exceed 31 days.
GET /charges_summary
javaimport com.telnyx.sdk.models.chargessummary.ChargesSummaryRetrieveParams; import com.telnyx.sdk.models.chargessummary.ChargesSummaryRetrieveResponse; import java.time.LocalDate; ChargesSummaryRetrieveParams params = ChargesSummaryRetrieveParams.builder() .endDate(LocalDate.parse("2025-06-01")) .startDate(LocalDate.parse("2025-05-01")) .build(); ChargesSummaryRetrieveResponse chargesSummary = client.chargesSummary().retrieve(params);
Returns: currency (string), end_date (date), start_date (date), summary (object), total (object), user_email (email), user_id (string)
Search for any detail record across the Telnyx Platform
GET /detail_records
javaimport com.telnyx.sdk.models.detailrecords.DetailRecordListPage; import com.telnyx.sdk.models.detailrecords.DetailRecordListParams; DetailRecordListPage page = client.detailRecords().list();
Returns: carrier (string), carrier_fee (string), cld (string), cli (string), completed_at (date-time), cost (string), country_code (string), created_at (date-time), currency (string), delivery_status (string), delivery_status_failover_url (string), delivery_status_webhook_url (string), direction (enum: inbound, outbound), errors (arraystring]), fteu (boolean), mcc (string), message_type (enum: SMS, MMS, RCS), mnc (string), on_net (boolean), parts (integer), profile_id (string), profile_name (string), rate (string), record_type (string), sent_at (date-time), source_country_code (string), status (enum: gw_timeout, delivered, dlr_unconfirmed, dlr_timeout, received, gw_reject, failed), tags (string), updated_at (date-time), user_id (string), uuid (string)
Retrieve a paginated list of invoices.
GET /invoices
javaimport com.telnyx.sdk.models.invoices.InvoiceListPage; import com.telnyx.sdk.models.invoices.InvoiceListParams; InvoiceListPage page = client.invoices().list();
Returns: file_id (uuid), invoice_id (uuid), paid (boolean), period_end (date), period_start (date), url (uri)
Retrieve a single invoice by its unique identifier.
GET /invoices/{id}
javaimport com.telnyx.sdk.models.invoices.InvoiceRetrieveParams; import com.telnyx.sdk.models.invoices.InvoiceRetrieveResponse; InvoiceRetrieveResponse invoice = client.invoices().retrieve("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e");
Returns: download_url (uri), file_id (uuid), invoice_id (uuid), paid (boolean), period_end (date), period_start (date), url (uri)
Returns the payment auto recharge preferences.
GET /payment/auto_recharge_prefs
javaimport com.telnyx.sdk.models.payment.autorechargeprefs.AutoRechargePrefListParams; import com.telnyx.sdk.models.payment.autorechargeprefs.AutoRechargePrefListResponse; AutoRechargePrefListResponse autoRechargePrefs = client.payment().autoRechargePrefs().list();
Returns: enabled (boolean), id (string), invoice_enabled (boolean), preference (enum: credit_paypal, ach), recharge_amount (string), record_type (string), threshold_amount (string)
Update payment auto recharge preferences.
PATCH /payment/auto_recharge_prefs
Optional: enabled (boolean), invoice_enabled (boolean), preference (enum: credit_paypal, ach), recharge_amount (string), threshold_amount (string)
javaimport com.telnyx.sdk.models.payment.autorechargeprefs.AutoRechargePrefUpdateParams; import com.telnyx.sdk.models.payment.autorechargeprefs.AutoRechargePrefUpdateResponse; AutoRechargePrefUpdateResponse autoRechargePref = client.payment().autoRechargePrefs().update();
Returns: enabled (boolean), id (string), invoice_enabled (boolean), preference (enum: credit_paypal, ach), recharge_amount (string), record_type (string), threshold_amount (string)
List all user tags.
GET /user_tags
javaimport com.telnyx.sdk.models.usertags.UserTagListParams; import com.telnyx.sdk.models.usertags.UserTagListResponse; UserTagListResponse userTags = client.userTags().list();
Returns: number_tags (arraystring]), outbound_profile_tags (arraystring])
POST /v2/payment/stored_payment_transactions — Required: amount
javaimport com.telnyx.sdk.models.payment.PaymentCreateStoredPaymentTransactionParams; import com.telnyx.sdk.models.payment.PaymentCreateStoredPaymentTransactionResponse; PaymentCreateStoredPaymentTransactionParams params = PaymentCreateStoredPaymentTransactionParams.builder() .amount("120.00") .build(); PaymentCreateStoredPaymentTransactionResponse response = client.payment().createStoredPaymentTransaction(params);
Returns: amount_cents (integer), amount_currency (string), auto_recharge (boolean), created_at (date-time), id (string), processor_status (string), record_type (enum: transaction), transaction_processing_type (enum: stored_payment)
Lists webhook_deliveries for the authenticated user
GET /webhook_deliveries
javaimport com.telnyx.sdk.models.webhookdeliveries.WebhookDeliveryListPage; import com.telnyx.sdk.models.webhookdeliveries.WebhookDeliveryListParams; WebhookDeliveryListPage page = client.webhookDeliveries().list();
Returns: attempts (arrayobject]), finished_at (date-time), id (uuid), record_type (string), started_at (date-time), status (enum: delivered, failed), user_id (uuid), webhook (object)
Provides webhook_delivery debug data, such as timestamps, delivery status and attempts.
GET /webhook_deliveries/{id}
javaimport com.telnyx.sdk.models.webhookdeliveries.WebhookDeliveryRetrieveParams; import com.telnyx.sdk.models.webhookdeliveries.WebhookDeliveryRetrieveResponse; WebhookDeliveryRetrieveResponse webhookDelivery = client.webhookDeliveries().retrieve("C9C0797E-901D-4349-A33C-C2C8F31A92C2");
Returns: attempts (arrayobject]), finished_at (date-time), id (uuid), record_type (string), started_at (date-time), status (enum: delivered, failed), user_id (uuid), webhook (object)
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→pass | 20,163 | 9,055 | -55% | 1 | 1 | 0% | 4,362 | 5,111 | +17% | 0 | 0 | — |
case-02 | fail→pass | 17,702 | 12,773 | -28% | 1 | 1 | 0% | 4,064 | 6,092 | +50% | 0 | 0 | — |
case-03 | fail→pass | 16,776 | 12,297 | -27% | 1 | 1 | 0% | 3,486 | 5,895 | +69% | 0 | 0 | — |
case-04 | pass→pass | 6,999 | 4,599 | -34% | 1 | 1 | 0% | 1,482 | 3,852 | +160% | 0 | 0 | — |
case-05 | pass→pass | 8,885 | 7,083 | -20% | 1 | 1 | 0% | 2,007 | 4,543 | +126% | 0 | 0 | — |
case-10 | fail→pass | 20,767 | 7,652 | -63% | 1 | 1 | 0% | 4,467 | 4,550 | +2% | 0 | 0 | — |
case-06 | pass→pass | 11,939 | 7,801 | -35% | 1 | 1 | 0% | 2,579 | 4,570 | +77% | 0 | 0 | — |
case-07 | fail→pass | 4,590 | 1,622 | -65% | 1 | 1 | 0% | 862 | 3,176 | +268% | 0 | 0 | — |
case-08 | fail→pass | 5,615 | 1,930 | -66% | 1 | 1 | 0% | 1,006 | 3,331 | +231% | 0 | 0 | — |
case-09 | fail→pass | 10,792 | 4,387 | -59% | 1 | 1 | 0% | 2,205 | 3,854 | +75% | 0 | 0 | — |
case-11 | fail→pass | 10,967 | 6,301 | -43% | 1 | 1 | 0% | 2,279 | 4,237 | +86% | 0 | 0 | — |
case-12 | fail→pass | 10,549 | 4,207 | -60% | 1 | 1 | 0% | 1,947 | 3,837 | +97% | 0 | 0 | — |
case-13 | fail→pass | 9,908 | 6,055 | -39% | 1 | 1 | 0% | 2,157 | 4,292 | +99% | 0 | 0 | — |
case-14 | fail→pass | 10,415 | 3,726 | -64% | 1 | 1 | 0% | 2,007 | 3,744 | +87% | 0 | 0 | — |
case-15 | fail→pass | 8,177 | 4,904 | -40% | 1 | 1 | 0% | 1,597 | 3,556 | +123% | 0 | 0 | — |
case-16 | fail→pass | 9,359 | 6,333 | -32% | 1 | 1 | 0% | 2,185 | 4,419 | +102% | 0 | 0 | — |
case-17 | fail→pass | 13,123 | 3,189 | -76% | 1 | 1 | 0% | 2,608 | 3,552 | +36% | 0 | 0 | — |
case-18 | fail→pass | 9,163 | 5,234 | -43% | 1 | 1 | 0% | 2,073 | 4,149 | +100% | 0 | 0 | — |
case-19 | fail→pass | 17,876 | 28,254 | +58% | 1 | 1 | 0% | 3,130 | 4,032 | +29% | 0 | 0 | — |
case-20 | fail→pass | 7,669 | 1,431 | -81% | 1 | 1 | 0% | 973 | 3,156 | +224% | 0 | 0 | — |
case-21 | fail→pass | 28,703 | 4,490 | -84% | 1 | 1 | 0% | 3,632 | 3,902 | +7% | 0 | 0 | — |
case-22 | fail→pass | 20,424 | 2,700 | -87% | 1 | 1 | 0% | 2,944 | 3,411 | +16% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted. The headline lift of +86 percentage points is the difference between those two pass rates over the 22 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
| Model | Method | Date | Lift |
|---|---|---|---|
| gemini-3.6-flash | verified | 8/22/2026 | +86% |
Other measured skills in the registry, with their headline benchmark lift.