api/java/telnyx-sip-java/SKILL.md
Configure SIP trunking connections and outbound voice profiles. Use when connecting PBX systems or managing SIP infrastructure. This skill provides Java SDK examples.
npx skillsauth add team-telnyx/telnyx-toolkit telnyx-sip-javaInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
// See https://github.com/team-telnyx/telnyx-java for Maven/Gradle setup
import 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.
Get all outbound voice profiles belonging to the user that match the given filters.
GET /outbound_voice_profiles
import com.telnyx.sdk.models.outboundvoiceprofiles.OutboundVoiceProfileListPage;
import com.telnyx.sdk.models.outboundvoiceprofiles.OutboundVoiceProfileListParams;
OutboundVoiceProfileListPage page = client.outboundVoiceProfiles().list();
Create an outbound voice profile.
POST /outbound_voice_profiles — Required: name
import com.telnyx.sdk.models.outboundvoiceprofiles.OutboundVoiceProfileCreateParams;
import com.telnyx.sdk.models.outboundvoiceprofiles.OutboundVoiceProfileCreateResponse;
OutboundVoiceProfileCreateParams params = OutboundVoiceProfileCreateParams.builder()
.name("office")
.build();
OutboundVoiceProfileCreateResponse outboundVoiceProfile = client.outboundVoiceProfiles().create(params);
Retrieves the details of an existing outbound voice profile.
GET /outbound_voice_profiles/{id}
import com.telnyx.sdk.models.outboundvoiceprofiles.OutboundVoiceProfileRetrieveParams;
import com.telnyx.sdk.models.outboundvoiceprofiles.OutboundVoiceProfileRetrieveResponse;
OutboundVoiceProfileRetrieveResponse outboundVoiceProfile = client.outboundVoiceProfiles().retrieve("1293384261075731499");
PATCH /outbound_voice_profiles/{id} — Required: name
import com.telnyx.sdk.models.outboundvoiceprofiles.OutboundVoiceProfileUpdateParams;
import com.telnyx.sdk.models.outboundvoiceprofiles.OutboundVoiceProfileUpdateResponse;
OutboundVoiceProfileUpdateParams params = OutboundVoiceProfileUpdateParams.builder()
.id("1293384261075731499")
.name("office")
.build();
OutboundVoiceProfileUpdateResponse outboundVoiceProfile = client.outboundVoiceProfiles().update(params);
Deletes an existing outbound voice profile.
DELETE /outbound_voice_profiles/{id}
import com.telnyx.sdk.models.outboundvoiceprofiles.OutboundVoiceProfileDeleteParams;
import com.telnyx.sdk.models.outboundvoiceprofiles.OutboundVoiceProfileDeleteResponse;
OutboundVoiceProfileDeleteResponse outboundVoiceProfile = client.outboundVoiceProfiles().delete("1293384261075731499");
Returns a list of your connections irrespective of type.
GET /connections
import com.telnyx.sdk.models.connections.ConnectionListPage;
import com.telnyx.sdk.models.connections.ConnectionListParams;
ConnectionListPage page = client.connections().list();
Retrieves the high-level details of an existing connection.
GET /connections/{id}
import com.telnyx.sdk.models.connections.ConnectionRetrieveParams;
import com.telnyx.sdk.models.connections.ConnectionRetrieveResponse;
ConnectionRetrieveResponse connection = client.connections().retrieve("id");
Returns a list of your credential connections.
GET /credential_connections
import com.telnyx.sdk.models.credentialconnections.CredentialConnectionListPage;
import com.telnyx.sdk.models.credentialconnections.CredentialConnectionListParams;
CredentialConnectionListPage page = client.credentialConnections().list();
Creates a credential connection.
POST /credential_connections — Required: user_name, password, connection_name
import com.telnyx.sdk.models.credentialconnections.CredentialConnectionCreateParams;
import com.telnyx.sdk.models.credentialconnections.CredentialConnectionCreateResponse;
CredentialConnectionCreateParams params = CredentialConnectionCreateParams.builder()
.connectionName("my name")
.password("my123secure456password789")
.userName("myusername123")
.build();
CredentialConnectionCreateResponse credentialConnection = client.credentialConnections().create(params);
Retrieves the details of an existing credential connection.
GET /credential_connections/{id}
import com.telnyx.sdk.models.credentialconnections.CredentialConnectionRetrieveParams;
import com.telnyx.sdk.models.credentialconnections.CredentialConnectionRetrieveResponse;
CredentialConnectionRetrieveResponse credentialConnection = client.credentialConnections().retrieve("id");
Updates settings of an existing credential connection.
PATCH /credential_connections/{id}
import com.telnyx.sdk.models.credentialconnections.CredentialConnectionUpdateParams;
import com.telnyx.sdk.models.credentialconnections.CredentialConnectionUpdateResponse;
CredentialConnectionUpdateResponse credentialConnection = client.credentialConnections().update("id");
Deletes an existing credential connection.
DELETE /credential_connections/{id}
import com.telnyx.sdk.models.credentialconnections.CredentialConnectionDeleteParams;
import com.telnyx.sdk.models.credentialconnections.CredentialConnectionDeleteResponse;
CredentialConnectionDeleteResponse credentialConnection = client.credentialConnections().delete("id");
Checks the registration_status for a credential connection, (registration_status) as well as the timestamp for the last SIP registration event (registration_status_updated_at)
POST /credential_connections/{id}/actions/check_registration_status
import com.telnyx.sdk.models.credentialconnections.actions.ActionCheckRegistrationStatusParams;
import com.telnyx.sdk.models.credentialconnections.actions.ActionCheckRegistrationStatusResponse;
ActionCheckRegistrationStatusResponse response = client.credentialConnections().actions().checkRegistrationStatus("id");
Get all IPs belonging to the user that match the given filters.
GET /ips
import com.telnyx.sdk.models.ips.IpListPage;
import com.telnyx.sdk.models.ips.IpListParams;
IpListPage page = client.ips().list();
Create a new IP object.
POST /ips — Required: ip_address
import com.telnyx.sdk.models.ips.IpCreateParams;
import com.telnyx.sdk.models.ips.IpCreateResponse;
IpCreateParams params = IpCreateParams.builder()
.ipAddress("192.168.0.0")
.build();
IpCreateResponse ip = client.ips().create(params);
Return the details regarding a specific IP.
GET /ips/{id}
import com.telnyx.sdk.models.ips.IpRetrieveParams;
import com.telnyx.sdk.models.ips.IpRetrieveResponse;
IpRetrieveResponse ip = client.ips().retrieve("6a09cdc3-8948-47f0-aa62-74ac943d6c58");
Update the details of a specific IP.
PATCH /ips/{id} — Required: ip_address
import com.telnyx.sdk.models.ips.IpUpdateParams;
import com.telnyx.sdk.models.ips.IpUpdateResponse;
IpUpdateParams params = IpUpdateParams.builder()
.id("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
.ipAddress("192.168.0.0")
.build();
IpUpdateResponse ip = client.ips().update(params);
Delete an IP.
DELETE /ips/{id}
import com.telnyx.sdk.models.ips.IpDeleteParams;
import com.telnyx.sdk.models.ips.IpDeleteResponse;
IpDeleteResponse ip = client.ips().delete("6a09cdc3-8948-47f0-aa62-74ac943d6c58");
Returns a list of your IP connections.
GET /ip_connections
import com.telnyx.sdk.models.ipconnections.IpConnectionListPage;
import com.telnyx.sdk.models.ipconnections.IpConnectionListParams;
IpConnectionListPage page = client.ipConnections().list();
Creates an IP connection.
POST /ip_connections
import com.telnyx.sdk.models.ipconnections.IpConnectionCreateParams;
import com.telnyx.sdk.models.ipconnections.IpConnectionCreateResponse;
IpConnectionCreateResponse ipConnection = client.ipConnections().create();
Retrieves the details of an existing ip connection.
GET /ip_connections/{id}
import com.telnyx.sdk.models.ipconnections.IpConnectionRetrieveParams;
import com.telnyx.sdk.models.ipconnections.IpConnectionRetrieveResponse;
IpConnectionRetrieveResponse ipConnection = client.ipConnections().retrieve("id");
Updates settings of an existing IP connection.
PATCH /ip_connections/{id}
import com.telnyx.sdk.models.ipconnections.IpConnectionUpdateParams;
import com.telnyx.sdk.models.ipconnections.IpConnectionUpdateResponse;
IpConnectionUpdateResponse ipConnection = client.ipConnections().update("id");
Deletes an existing IP connection.
DELETE /ip_connections/{id}
import com.telnyx.sdk.models.ipconnections.IpConnectionDeleteParams;
import com.telnyx.sdk.models.ipconnections.IpConnectionDeleteResponse;
IpConnectionDeleteResponse ipConnection = client.ipConnections().delete("id");
Get all FQDNs belonging to the user that match the given filters.
GET /fqdns
import com.telnyx.sdk.models.fqdns.FqdnListPage;
import com.telnyx.sdk.models.fqdns.FqdnListParams;
FqdnListPage page = client.fqdns().list();
Create a new FQDN object.
POST /fqdns — Required: fqdn, dns_record_type, connection_id
import com.telnyx.sdk.models.fqdns.FqdnCreateParams;
import com.telnyx.sdk.models.fqdns.FqdnCreateResponse;
FqdnCreateParams params = FqdnCreateParams.builder()
.connectionId("1516447646313612565")
.dnsRecordType("a")
.fqdn("example.com")
.build();
FqdnCreateResponse fqdn = client.fqdns().create(params);
Return the details regarding a specific FQDN.
GET /fqdns/{id}
import com.telnyx.sdk.models.fqdns.FqdnRetrieveParams;
import com.telnyx.sdk.models.fqdns.FqdnRetrieveResponse;
FqdnRetrieveResponse fqdn = client.fqdns().retrieve("id");
Update the details of a specific FQDN.
PATCH /fqdns/{id}
import com.telnyx.sdk.models.fqdns.FqdnUpdateParams;
import com.telnyx.sdk.models.fqdns.FqdnUpdateResponse;
FqdnUpdateResponse fqdn = client.fqdns().update("id");
Delete an FQDN.
DELETE /fqdns/{id}
import com.telnyx.sdk.models.fqdns.FqdnDeleteParams;
import com.telnyx.sdk.models.fqdns.FqdnDeleteResponse;
FqdnDeleteResponse fqdn = client.fqdns().delete("id");
Returns a list of your FQDN connections.
GET /fqdn_connections
import com.telnyx.sdk.models.fqdnconnections.FqdnConnectionListPage;
import com.telnyx.sdk.models.fqdnconnections.FqdnConnectionListParams;
FqdnConnectionListPage page = client.fqdnConnections().list();
Creates a FQDN connection.
POST /fqdn_connections — Required: connection_name
import com.telnyx.sdk.models.fqdnconnections.FqdnConnectionCreateParams;
import com.telnyx.sdk.models.fqdnconnections.FqdnConnectionCreateResponse;
FqdnConnectionCreateParams params = FqdnConnectionCreateParams.builder()
.connectionName("string")
.build();
FqdnConnectionCreateResponse fqdnConnection = client.fqdnConnections().create(params);
Retrieves the details of an existing FQDN connection.
GET /fqdn_connections/{id}
import com.telnyx.sdk.models.fqdnconnections.FqdnConnectionRetrieveParams;
import com.telnyx.sdk.models.fqdnconnections.FqdnConnectionRetrieveResponse;
FqdnConnectionRetrieveResponse fqdnConnection = client.fqdnConnections().retrieve("id");
Updates settings of an existing FQDN connection.
PATCH /fqdn_connections/{id}
import com.telnyx.sdk.models.fqdnconnections.FqdnConnectionUpdateParams;
import com.telnyx.sdk.models.fqdnconnections.FqdnConnectionUpdateResponse;
FqdnConnectionUpdateResponse fqdnConnection = client.fqdnConnections().update("id");
Deletes an FQDN connection.
DELETE /fqdn_connections/{id}
import com.telnyx.sdk.models.fqdnconnections.FqdnConnectionDeleteParams;
import com.telnyx.sdk.models.fqdnconnections.FqdnConnectionDeleteResponse;
FqdnConnectionDeleteResponse fqdnConnection = client.fqdnConnections().delete("id");
GET /v2/mobile_voice_connections
import com.telnyx.sdk.models.mobilevoiceconnections.MobileVoiceConnectionListPage;
import com.telnyx.sdk.models.mobilevoiceconnections.MobileVoiceConnectionListParams;
MobileVoiceConnectionListPage page = client.mobileVoiceConnections().list();
POST /v2/mobile_voice_connections
import com.telnyx.sdk.models.mobilevoiceconnections.MobileVoiceConnectionCreateParams;
import com.telnyx.sdk.models.mobilevoiceconnections.MobileVoiceConnectionCreateResponse;
MobileVoiceConnectionCreateResponse mobileVoiceConnection = client.mobileVoiceConnections().create();
GET /v2/mobile_voice_connections/{id}
import com.telnyx.sdk.models.mobilevoiceconnections.MobileVoiceConnectionRetrieveParams;
import com.telnyx.sdk.models.mobilevoiceconnections.MobileVoiceConnectionRetrieveResponse;
MobileVoiceConnectionRetrieveResponse mobileVoiceConnection = client.mobileVoiceConnections().retrieve("id");
PATCH /v2/mobile_voice_connections/{id}
import com.telnyx.sdk.models.mobilevoiceconnections.MobileVoiceConnectionUpdateParams;
import com.telnyx.sdk.models.mobilevoiceconnections.MobileVoiceConnectionUpdateResponse;
MobileVoiceConnectionUpdateResponse mobileVoiceConnection = client.mobileVoiceConnections().update("id");
DELETE /v2/mobile_voice_connections/{id}
import com.telnyx.sdk.models.mobilevoiceconnections.MobileVoiceConnectionDeleteParams;
import com.telnyx.sdk.models.mobilevoiceconnections.MobileVoiceConnectionDeleteResponse;
MobileVoiceConnectionDeleteResponse mobileVoiceConnection = client.mobileVoiceConnections().delete("id");
tools
Build cross-platform VoIP calling apps with React Native using Telnyx Voice SDK. High-level reactive API with automatic lifecycle management, CallKit/ConnectionService integration, and push notifications. Use for mobile VoIP apps with minimal setup.
tools
Build browser-based VoIP calling apps using Telnyx WebRTC JavaScript SDK. Covers authentication, voice calls, events, debugging, call quality metrics, and AI Agent integration. Use for web-based real-time communication.
tools
Build VoIP calling apps on iOS using Telnyx WebRTC SDK. Covers authentication, making/receiving calls, CallKit integration, PushKit/APNS push notifications, call quality metrics, and AI Agent integration. Use when implementing real-time voice communication on iOS.
tools
Build cross-platform VoIP calling apps with Flutter using Telnyx WebRTC SDK. Covers authentication, making/receiving calls, push notifications (FCM + APNS), call quality metrics, and AI Agent integration. Works on Android, iOS, and Web.