Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Manage WebRTC credentials and mobile push notification settings. Use when building browser-based or mobile softphone applications. This skill provides Java SDK examples.
.claude/skills/team-telnyx-telnyx-webrtc-java/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | -26% | 0% |
| case-02 | ✗→✓ | ▲ Improved | 20% | 0% |
| case-08 | ✗→✓ | ▲ Improved | 81% | 0% |
| case-07 | ✗→✓ | ▲ Improved | 33% | 0% |
| case-03 | ✗→✓ | ▲ Improved | 50% | 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().GET /mobile_push_credentials
javaimport com.telnyx.sdk.models.mobilepushcredentials.MobilePushCredentialListPage; import com.telnyx.sdk.models.mobilepushcredentials.MobilePushCredentialListParams; MobilePushCredentialListPage page = client.mobilePushCredentials().list();
Returns: alias (string), certificate (string), created_at (date-time), id (string), private_key (string), project_account_json_file (object), record_type (string), type (string), updated_at (date-time)
POST /mobile_push_credentials — Required: type, certificate, private_key, alias
javaimport com.telnyx.sdk.models.mobilepushcredentials.MobilePushCredentialCreateParams; import com.telnyx.sdk.models.mobilepushcredentials.PushCredentialResponse; MobilePushCredentialCreateParams.CreateMobilePushCredentialRequest.Ios params = MobilePushCredentialCreateParams.CreateMobilePushCredentialRequest.Ios.builder() .alias("LucyIosCredential") .certificate("-----BEGIN CERTIFICATE----- MIIGVDCCBTKCAQEAsNlRJVZn9ZvXcECQm65czs... -----END CERTIFICATE-----") .privateKey("-----BEGIN RSA PRIVATE KEY----- MIIEpQIBAAKCAQEAsNlRJVZn9ZvXcECQm65czs... -----END RSA PRIVATE KEY-----") .build(); PushCredentialResponse pushCredentialResponse = client.mobilePushCredentials().create(params);
Returns: alias (string), certificate (string), created_at (date-time), id (string), private_key (string), project_account_json_file (object), record_type (string), type (string), updated_at (date-time)
Retrieves mobile push credential based on the given push_credential_id
GET /mobile_push_credentials/{push_credential_id}
javaimport com.telnyx.sdk.models.mobilepushcredentials.MobilePushCredentialRetrieveParams; import com.telnyx.sdk.models.mobilepushcredentials.PushCredentialResponse; PushCredentialResponse pushCredentialResponse = client.mobilePushCredentials().retrieve("0ccc7b76-4df3-4bca-a05a-3da1ecc389f0");
Returns: alias (string), certificate (string), created_at (date-time), id (string), private_key (string), project_account_json_file (object), record_type (string), type (string), updated_at (date-time)
Deletes a mobile push credential based on the given push_credential_id
DELETE /mobile_push_credentials/{push_credential_id}
javaimport com.telnyx.sdk.models.mobilepushcredentials.MobilePushCredentialDeleteParams; client.mobilePushCredentials().delete("0ccc7b76-4df3-4bca-a05a-3da1ecc389f0");
List all On-demand Credentials.
GET /telephony_credentials
javaimport com.telnyx.sdk.models.telephonycredentials.TelephonyCredentialListPage; import com.telnyx.sdk.models.telephonycredentials.TelephonyCredentialListParams; TelephonyCredentialListPage page = client.telephonyCredentials().list();
Returns: created_at (string), expired (boolean), expires_at (string), id (string), name (string), record_type (string), resource_id (string), sip_password (string), sip_username (string), updated_at (string), user_id (string)
Create a credential.
POST /telephony_credentials — Required: connection_id
Optional: expires_at (string), name (string), tag (string)
javaimport com.telnyx.sdk.models.telephonycredentials.TelephonyCredentialCreateParams; import com.telnyx.sdk.models.telephonycredentials.TelephonyCredentialCreateResponse; TelephonyCredentialCreateParams params = TelephonyCredentialCreateParams.builder() .connectionId("1234567890") .build(); TelephonyCredentialCreateResponse telephonyCredential = client.telephonyCredentials().create(params);
Returns: created_at (string), expired (boolean), expires_at (string), id (string), name (string), record_type (string), resource_id (string), sip_password (string), sip_username (string), updated_at (string), user_id (string)
Get the details of an existing On-demand Credential.
GET /telephony_credentials/{id}
javaimport com.telnyx.sdk.models.telephonycredentials.TelephonyCredentialRetrieveParams; import com.telnyx.sdk.models.telephonycredentials.TelephonyCredentialRetrieveResponse; TelephonyCredentialRetrieveResponse telephonyCredential = client.telephonyCredentials().retrieve("550e8400-e29b-41d4-a716-446655440000");
Returns: created_at (string), expired (boolean), expires_at (string), id (string), name (string), record_type (string), resource_id (string), sip_password (string), sip_username (string), updated_at (string), user_id (string)
Update an existing credential.
PATCH /telephony_credentials/{id}
Optional: connection_id (string), expires_at (string), name (string), tag (string)
javaimport com.telnyx.sdk.models.telephonycredentials.TelephonyCredentialUpdateParams; import com.telnyx.sdk.models.telephonycredentials.TelephonyCredentialUpdateResponse; TelephonyCredentialUpdateResponse telephonyCredential = client.telephonyCredentials().update("550e8400-e29b-41d4-a716-446655440000");
Returns: created_at (string), expired (boolean), expires_at (string), id (string), name (string), record_type (string), resource_id (string), sip_password (string), sip_username (string), updated_at (string), user_id (string)
Delete an existing credential.
DELETE /telephony_credentials/{id}
javaimport com.telnyx.sdk.models.telephonycredentials.TelephonyCredentialDeleteParams; import com.telnyx.sdk.models.telephonycredentials.TelephonyCredentialDeleteResponse; TelephonyCredentialDeleteResponse telephonyCredential = client.telephonyCredentials().delete("550e8400-e29b-41d4-a716-446655440000");
Returns: created_at (string), expired (boolean), expires_at (string), id (string), name (string), record_type (string), resource_id (string), sip_password (string), sip_username (string), updated_at (string), user_id (string)
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→pass | 28,226 | 43,548 | +54% | 1 | 1 | 0% | 6,538 | 4,868 | -26% | 0 | 0 | — |
case-02 | fail→pass | 17,304 | 10,324 | -40% | 1 | 1 | 0% | 4,164 | 4,998 | +20% | 0 | 0 | — |
case-08 | fail→pass | 22,970 | 3,598 | -84% | 1 | 1 | 0% | 1,729 | 3,136 | +81% | 0 | 0 | — |
case-07 | fail→pass | 10,119 | 2,640 | -74% | 1 | 1 | 0% | 2,148 | 2,856 | +33% | 0 | 0 | — |
case-03 | fail→pass | 14,464 | 9,569 | -34% | 1 | 1 | 0% | 3,135 | 4,690 | +50% | 0 | 0 | — |
case-04 | fail→pass | 3,909 | 2,555 | -35% | 1 | 1 | 0% | 784 | 2,842 | +263% | 0 | 0 | — |
case-05 | fail→pass | 8,641 | 36,810 | +326% | 1 | 1 | 0% | 1,849 | 3,880 | +110% | 0 | 0 | — |
case-06 | fail→pass | 10,651 | 3,563 | -67% | 1 | 1 | 0% | 2,183 | 3,149 | +44% | 0 | 0 | — |
case-09 | fail→pass | 11,155 | 4,212 | -62% | 1 | 1 | 0% | 2,433 | 3,218 | +32% | 0 | 0 | — |
case-10 | fail→pass | 11,117 | 2,679 | -76% | 1 | 1 | 0% | 2,104 | 2,886 | +37% | 0 | 0 | — |
case-11 | fail→pass | 12,130 | 2,613 | -78% | 1 | 1 | 0% | 2,336 | 2,833 | +21% | 0 | 0 | — |
case-12 | pass→pass | 13,115 | 2,000 | -85% | 1 | 1 | 0% | 2,332 | 2,677 | +15% | 0 | 0 | — |
case-13 | pass→pass | 10,217 | 2,986 | -71% | 1 | 1 | 0% | 1,737 | 2,872 | +65% | 0 | 0 | — |
case-14 | fail→pass | 13,462 | 5,196 | -61% | 1 | 1 | 0% | 2,618 | 3,498 | +34% | 0 | 0 | — |
case-15 | fail→pass | 14,708 | 4,751 | -68% | 1 | 1 | 0% | 2,962 | 3,334 | +13% | 0 | 0 | — |
case-16 | fail→pass | 5,685 | 1,926 | -66% | 1 | 1 | 0% | 979 | 2,634 | +169% | 0 | 0 | — |
case-17 | fail→pass | 11,859 | 6,683 | -44% | 1 | 1 | 0% | 2,389 | 3,811 | +60% | 0 | 0 | — |
case-18 | fail→pass | 25,191 | 1,843 | -93% | 1 | 1 | 0% | 4,788 | 2,660 | -44% | 0 | 0 | — |
case-19 | pass→pass | 10,202 | 1,606 | -84% | 1 | 1 | 0% | 1,787 | 2,583 | +45% | 0 | 0 | — |
case-20 | pass→pass | 14,143 | 6,995 | -51% | 1 | 1 | 0% | 2,124 | 3,718 | +75% | 0 | 0 | — |
case-21 | pass→pass | 5,609 | 3,490 | -38% | 1 | 1 | 0% | 1,127 | 3,005 | +167% | 0 | 0 | — |
case-22 | pass→pass | 6,535 | 5,851 | -10% | 1 | 1 | 0% | 1,350 | 3,669 | +172% | 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 +73 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 | +76% |
Other measured skills in the registry, with their headline benchmark lift.