Loading...
Loading...
Build voice applications using TeXML markup language (TwiML-compatible). Manage applications, calls, conferences, recordings, queues, and streams. This skill provides Java SDK examples.
npx skill4agent add team-telnyx/skills telnyx-texml-java<!-- Maven -->
<dependency>
<groupId>com.telnyx.sdk</groupId>
<artifactId>telnyx</artifactId>
<version>6.36.0</version>
</dependency>
// Gradle
implementation("com.telnyx.sdk:telnyx:6.36.0")import com.telnyx.sdk.client.TelnyxClient;
import com.telnyx.sdk.client.okhttp.TelnyxOkHttpClient;
TelnyxClient client = TelnyxOkHttpClient.fromEnv();clientimport 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);
}
}401403404422429.autoPager()for (var item : page.autoPager()) { ... }.hasNextPage().nextPage()GET /texml/Accounts/{account_sid}/Callsimport com.telnyx.sdk.models.texml.accounts.calls.CallRetrieveCallsParams;
import com.telnyx.sdk.models.texml.accounts.calls.CallRetrieveCallsResponse;
CallRetrieveCallsResponse response = client.texml().accounts().calls().retrieveCalls("550e8400-e29b-41d4-a716-446655440000");callsendfirst_page_urinext_page_uripagepage_sizestarturiPOST /texml/Accounts/{account_sid}/CallsToFromApplicationSidAsyncAmdAsyncAmdStatusCallbackAsyncAmdStatusCallbackMethodCallerIdCancelPlaybackOnDetectMessageEndCancelPlaybackOnMachineDetectionCustomHeadersDetectionModeFallbackUrlMachineDetectionMachineDetectionSilenceTimeoutMachineDetectionSpeechEndThresholdMachineDetectionSpeechThresholdMachineDetectionTimeoutPreferredCodecsRecordRecordingChannelsRecordingStatusCallbackRecordingStatusCallbackEventRecordingStatusCallbackMethodRecordingTimeoutRecordingTrackSendRecordingUrlSipAuthPasswordSipAuthUsernameSipRegionStatusCallbackStatusCallbackEventStatusCallbackMethodSuperviseCallSidSupervisingRoleTexmlTimeLimitTimeoutTrimUrlUrlMethodimport com.telnyx.sdk.models.texml.accounts.calls.CallCallsParams;
import com.telnyx.sdk.models.texml.accounts.calls.CallCallsResponse;
CallCallsParams params = CallCallsParams.builder()
.accountSid("550e8400-e29b-41d4-a716-446655440000")
.applicationSid("example-app-sid")
.from("+13120001234")
.to("+13121230000")
.build();
CallCallsResponse response = client.texml().accounts().calls().calls(params);fromstatustoGET /texml/Accounts/{account_sid}/Calls/{call_sid}import com.telnyx.sdk.models.texml.accounts.calls.CallRetrieveParams;
import com.telnyx.sdk.models.texml.accounts.calls.CallRetrieveResponse;
CallRetrieveParams params = CallRetrieveParams.builder()
.accountSid("550e8400-e29b-41d4-a716-446655440000")
.callSid("550e8400-e29b-41d4-a716-446655440000")
.build();
CallRetrieveResponse call = client.texml().accounts().calls().retrieve(params);account_sidanswered_bycaller_namedate_createddate_updateddirectiondurationend_timefromfrom_formattedpriceprice_unitsidstart_timestatustoto_formatteduriPOST /texml/Accounts/{account_sid}/Calls/{call_sid}import com.telnyx.sdk.models.texml.accounts.calls.CallUpdateParams;
import com.telnyx.sdk.models.texml.accounts.calls.CallUpdateResponse;
import com.telnyx.sdk.models.texml.accounts.calls.UpdateCall;
CallUpdateParams params = CallUpdateParams.builder()
.accountSid("550e8400-e29b-41d4-a716-446655440000")
.callSid("550e8400-e29b-41d4-a716-446655440000")
.updateCall(UpdateCall.builder().build())
.build();
CallUpdateResponse call = client.texml().accounts().calls().update(params);account_sidanswered_bycaller_namedate_createddate_updateddirectiondurationend_timefromfrom_formattedpriceprice_unitsidstart_timestatustoto_formatteduriGET /texml/Accounts/{account_sid}/Calls/{call_sid}/Recordings.jsonimport com.telnyx.sdk.models.texml.accounts.calls.recordingsjson.RecordingsJsonRetrieveRecordingsJsonParams;
import com.telnyx.sdk.models.texml.accounts.calls.recordingsjson.RecordingsJsonRetrieveRecordingsJsonResponse;
RecordingsJsonRetrieveRecordingsJsonParams params = RecordingsJsonRetrieveRecordingsJsonParams.builder()
.accountSid("550e8400-e29b-41d4-a716-446655440000")
.callSid("550e8400-e29b-41d4-a716-446655440000")
.build();
RecordingsJsonRetrieveRecordingsJsonResponse response = client.texml().accounts().calls().recordingsJson().retrieveRecordingsJson(params);endfirst_page_urinext_page_uripagepage_sizeprevious_page_urirecordingsstarturiPOST /texml/Accounts/{account_sid}/Calls/{call_sid}/Recordings.jsonimport com.telnyx.sdk.models.texml.accounts.calls.recordingsjson.RecordingsJsonRecordingsJsonParams;
import com.telnyx.sdk.models.texml.accounts.calls.recordingsjson.RecordingsJsonRecordingsJsonResponse;
RecordingsJsonRecordingsJsonParams params = RecordingsJsonRecordingsJsonParams.builder()
.accountSid("550e8400-e29b-41d4-a716-446655440000")
.callSid("550e8400-e29b-41d4-a716-446655440000")
.build();
RecordingsJsonRecordingsJsonResponse response = client.texml().accounts().calls().recordingsJson().recordingsJson(params);account_sidcall_sidchannelsconference_siddate_createddate_updateddurationerror_codepriceprice_unitsidsourcestart_timetrackuriPOST /texml/Accounts/{account_sid}/Calls/{call_sid}/Recordings/{recording_sid}.jsonimport com.telnyx.sdk.models.texml.accounts.calls.recordings.RecordingRecordingSidJsonParams;
import com.telnyx.sdk.models.texml.accounts.calls.recordings.RecordingRecordingSidJsonResponse;
RecordingRecordingSidJsonParams params = RecordingRecordingSidJsonParams.builder()
.accountSid("550e8400-e29b-41d4-a716-446655440000")
.callSid("550e8400-e29b-41d4-a716-446655440000")
.recordingSid("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
.build();
RecordingRecordingSidJsonResponse response = client.texml().accounts().calls().recordings().recordingSidJson(params);account_sidcall_sidchannelsconference_siddate_createddate_updateddurationerror_codepriceprice_unitsidsourcestart_timetrackuriPOST /texml/Accounts/{account_sid}/Calls/{call_sid}/Siprec.jsonimport com.telnyx.sdk.models.texml.accounts.calls.CallSiprecJsonParams;
import com.telnyx.sdk.models.texml.accounts.calls.CallSiprecJsonResponse;
CallSiprecJsonParams params = CallSiprecJsonParams.builder()
.accountSid("550e8400-e29b-41d4-a716-446655440000")
.callSid("550e8400-e29b-41d4-a716-446655440000")
.build();
CallSiprecJsonResponse response = client.texml().accounts().calls().siprecJson(params);account_sidcall_siddate_createddate_updatederror_codesidstart_timestatustrackuriPOST /texml/Accounts/{account_sid}/Calls/{call_sid}/Siprec/{siprec_sid}.jsonimport com.telnyx.sdk.models.texml.accounts.calls.siprec.SiprecSiprecSidJsonParams;
import com.telnyx.sdk.models.texml.accounts.calls.siprec.SiprecSiprecSidJsonResponse;
SiprecSiprecSidJsonParams params = SiprecSiprecSidJsonParams.builder()
.accountSid("550e8400-e29b-41d4-a716-446655440000")
.callSid("550e8400-e29b-41d4-a716-446655440000")
.siprecSid("550e8400-e29b-41d4-a716-446655440000")
.build();
SiprecSiprecSidJsonResponse response = client.texml().accounts().calls().siprec().siprecSidJson(params);account_sidcall_siddate_updatederror_codesidstatusuriPOST /texml/Accounts/{account_sid}/Calls/{call_sid}/Streams.jsonimport com.telnyx.sdk.models.texml.accounts.calls.CallStreamsJsonParams;
import com.telnyx.sdk.models.texml.accounts.calls.CallStreamsJsonResponse;
CallStreamsJsonParams params = CallStreamsJsonParams.builder()
.accountSid("550e8400-e29b-41d4-a716-446655440000")
.callSid("550e8400-e29b-41d4-a716-446655440000")
.build();
CallStreamsJsonResponse response = client.texml().accounts().calls().streamsJson(params);account_sidcall_siddate_updatednamesidstatusuriPOST /texml/Accounts/{account_sid}/Calls/{call_sid}/Streams/{streaming_sid}.jsonimport com.telnyx.sdk.models.texml.accounts.calls.streams.StreamStreamingSidJsonParams;
import com.telnyx.sdk.models.texml.accounts.calls.streams.StreamStreamingSidJsonResponse;
StreamStreamingSidJsonParams params = StreamStreamingSidJsonParams.builder()
.accountSid("550e8400-e29b-41d4-a716-446655440000")
.callSid("550e8400-e29b-41d4-a716-446655440000")
.streamingSid("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
.build();
StreamStreamingSidJsonResponse response = client.texml().accounts().calls().streams().streamingSidJson(params);account_sidcall_siddate_updatedsidstatusuriGET /texml/Accounts/{account_sid}/Conferencesimport com.telnyx.sdk.models.texml.accounts.conferences.ConferenceRetrieveConferencesParams;
import com.telnyx.sdk.models.texml.accounts.conferences.ConferenceRetrieveConferencesResponse;
ConferenceRetrieveConferencesResponse response = client.texml().accounts().conferences().retrieveConferences("550e8400-e29b-41d4-a716-446655440000");conferencesendfirst_page_urinext_page_uripagepage_sizestarturiGET /texml/Accounts/{account_sid}/Conferences/{conference_sid}import com.telnyx.sdk.models.texml.accounts.conferences.ConferenceRetrieveParams;
import com.telnyx.sdk.models.texml.accounts.conferences.ConferenceRetrieveResponse;
ConferenceRetrieveParams params = ConferenceRetrieveParams.builder()
.accountSid("550e8400-e29b-41d4-a716-446655440000")
.conferenceSid("550e8400-e29b-41d4-a716-446655440000")
.build();
ConferenceRetrieveResponse conference = client.texml().accounts().conferences().retrieve(params);account_sidapi_versioncall_sid_ending_conferencedate_createddate_updatedfriendly_namereason_conference_endedregionsidstatussubresource_urisuriPOST /texml/Accounts/{account_sid}/Conferences/{conference_sid}import com.telnyx.sdk.models.texml.accounts.conferences.ConferenceUpdateParams;
import com.telnyx.sdk.models.texml.accounts.conferences.ConferenceUpdateResponse;
ConferenceUpdateParams params = ConferenceUpdateParams.builder()
.accountSid("550e8400-e29b-41d4-a716-446655440000")
.conferenceSid("550e8400-e29b-41d4-a716-446655440000")
.build();
ConferenceUpdateResponse conference = client.texml().accounts().conferences().update(params);account_sidapi_versioncall_sid_ending_conferencedate_createddate_updatedfriendly_namereason_conference_endedregionsidstatussubresource_urisuriGET /texml/Accounts/{account_sid}/Conferences/{conference_sid}/Participantsimport com.telnyx.sdk.models.texml.accounts.conferences.participants.ParticipantRetrieveParticipantsParams;
import com.telnyx.sdk.models.texml.accounts.conferences.participants.ParticipantRetrieveParticipantsResponse;
ParticipantRetrieveParticipantsParams params = ParticipantRetrieveParticipantsParams.builder()
.accountSid("550e8400-e29b-41d4-a716-446655440000")
.conferenceSid("550e8400-e29b-41d4-a716-446655440000")
.build();
ParticipantRetrieveParticipantsResponse response = client.texml().accounts().conferences().participants().retrieveParticipants(params);endfirst_page_urinext_page_uripagepage_sizeparticipantsstarturiPOST /texml/Accounts/{account_sid}/Conferences/{conference_sid}/Participantsimport com.telnyx.sdk.models.texml.accounts.conferences.participants.ParticipantParticipantsParams;
import com.telnyx.sdk.models.texml.accounts.conferences.participants.ParticipantParticipantsResponse;
ParticipantParticipantsParams params = ParticipantParticipantsParams.builder()
.accountSid("550e8400-e29b-41d4-a716-446655440000")
.conferenceSid("550e8400-e29b-41d4-a716-446655440000")
.build();
ParticipantParticipantsResponse response = client.texml().accounts().conferences().participants().participants(params);account_sidcall_sidcoachingcoaching_call_sidconference_sidend_conference_on_exitholdmutedstatusuriGET /texml/Accounts/{account_sid}/Conferences/{conference_sid}/Participants/{call_sid_or_participant_label}import com.telnyx.sdk.models.texml.accounts.conferences.participants.ParticipantRetrieveParams;
import com.telnyx.sdk.models.texml.accounts.conferences.participants.ParticipantRetrieveResponse;
ParticipantRetrieveParams params = ParticipantRetrieveParams.builder()
.accountSid("550e8400-e29b-41d4-a716-446655440000")
.conferenceSid("550e8400-e29b-41d4-a716-446655440000")
.callSidOrParticipantLabel("participant-1")
.build();
ParticipantRetrieveResponse participant = client.texml().accounts().conferences().participants().retrieve(params);account_sidapi_versioncall_sidcall_sid_legacycoachingcoaching_call_sidcoaching_call_sid_legacyconference_siddate_createddate_updatedend_conference_on_exitholdmutedstatusuriPOST /texml/Accounts/{account_sid}/Conferences/{conference_sid}/Participants/{call_sid_or_participant_label}import com.telnyx.sdk.models.texml.accounts.conferences.participants.ParticipantUpdateParams;
import com.telnyx.sdk.models.texml.accounts.conferences.participants.ParticipantUpdateResponse;
ParticipantUpdateParams params = ParticipantUpdateParams.builder()
.accountSid("550e8400-e29b-41d4-a716-446655440000")
.conferenceSid("550e8400-e29b-41d4-a716-446655440000")
.callSidOrParticipantLabel("participant-1")
.build();
ParticipantUpdateResponse participant = client.texml().accounts().conferences().participants().update(params);account_sidapi_versioncall_sidcall_sid_legacycoachingcoaching_call_sidcoaching_call_sid_legacyconference_siddate_createddate_updatedend_conference_on_exitholdmutedstatusuriDELETE /texml/Accounts/{account_sid}/Conferences/{conference_sid}/Participants/{call_sid_or_participant_label}import com.telnyx.sdk.models.texml.accounts.conferences.participants.ParticipantDeleteParams;
ParticipantDeleteParams params = ParticipantDeleteParams.builder()
.accountSid("550e8400-e29b-41d4-a716-446655440000")
.conferenceSid("550e8400-e29b-41d4-a716-446655440000")
.callSidOrParticipantLabel("participant-1")
.build();
client.texml().accounts().conferences().participants().delete(params);GET /texml/Accounts/{account_sid}/Conferences/{conference_sid}/Recordingsimport com.telnyx.sdk.models.texml.accounts.conferences.ConferenceRetrieveRecordingsParams;
import com.telnyx.sdk.models.texml.accounts.conferences.ConferenceRetrieveRecordingsResponse;
ConferenceRetrieveRecordingsParams params = ConferenceRetrieveRecordingsParams.builder()
.accountSid("550e8400-e29b-41d4-a716-446655440000")
.conferenceSid("550e8400-e29b-41d4-a716-446655440000")
.build();
ConferenceRetrieveRecordingsResponse response = client.texml().accounts().conferences().retrieveRecordings(params);endfirst_page_urinext_page_uripagepage_sizeparticipantsrecordingsstarturiGET /texml/Accounts/{account_sid}/Conferences/{conference_sid}/Recordings.jsonimport com.telnyx.sdk.models.texml.accounts.conferences.ConferenceRetrieveRecordingsJsonParams;
import com.telnyx.sdk.models.texml.accounts.conferences.ConferenceRetrieveRecordingsJsonResponse;
ConferenceRetrieveRecordingsJsonParams params = ConferenceRetrieveRecordingsJsonParams.builder()
.accountSid("550e8400-e29b-41d4-a716-446655440000")
.conferenceSid("550e8400-e29b-41d4-a716-446655440000")
.build();
ConferenceRetrieveRecordingsJsonResponse response = client.texml().accounts().conferences().retrieveRecordingsJson(params);endfirst_page_urinext_page_uripagepage_sizeprevious_page_urirecordingsstarturiGET /texml/Accounts/{account_sid}/Queuesimport com.telnyx.sdk.models.texml.accounts.queues.QueueListPage;
import com.telnyx.sdk.models.texml.accounts.queues.QueueListParams;
QueueListPage page = client.texml().accounts().queues().list("550e8400-e29b-41d4-a716-446655440000");endfirst_page_urinext_page_uripagepage_sizequeuesstarturiPOST /texml/Accounts/{account_sid}/Queuesimport com.telnyx.sdk.models.texml.accounts.queues.QueueCreateParams;
import com.telnyx.sdk.models.texml.accounts.queues.QueueCreateResponse;
QueueCreateResponse queue = client.texml().accounts().queues().create("550e8400-e29b-41d4-a716-446655440000");account_sidaverage_wait_timecurrent_sizedate_createddate_updatedmax_sizesidsubresource_urisuriGET /texml/Accounts/{account_sid}/Queues/{queue_sid}import com.telnyx.sdk.models.texml.accounts.queues.QueueRetrieveParams;
import com.telnyx.sdk.models.texml.accounts.queues.QueueRetrieveResponse;
QueueRetrieveParams params = QueueRetrieveParams.builder()
.accountSid("550e8400-e29b-41d4-a716-446655440000")
.queueSid("550e8400-e29b-41d4-a716-446655440000")
.build();
QueueRetrieveResponse queue = client.texml().accounts().queues().retrieve(params);account_sidaverage_wait_timecurrent_sizedate_createddate_updatedmax_sizesidsubresource_urisuriPOST /texml/Accounts/{account_sid}/Queues/{queue_sid}import com.telnyx.sdk.models.texml.accounts.queues.QueueUpdateParams;
import com.telnyx.sdk.models.texml.accounts.queues.QueueUpdateResponse;
QueueUpdateParams params = QueueUpdateParams.builder()
.accountSid("550e8400-e29b-41d4-a716-446655440000")
.queueSid("550e8400-e29b-41d4-a716-446655440000")
.build();
QueueUpdateResponse queue = client.texml().accounts().queues().update(params);account_sidaverage_wait_timecurrent_sizedate_createddate_updatedmax_sizesidsubresource_urisuriDELETE /texml/Accounts/{account_sid}/Queues/{queue_sid}import com.telnyx.sdk.models.texml.accounts.queues.QueueDeleteParams;
QueueDeleteParams params = QueueDeleteParams.builder()
.accountSid("550e8400-e29b-41d4-a716-446655440000")
.queueSid("550e8400-e29b-41d4-a716-446655440000")
.build();
client.texml().accounts().queues().delete(params);GET /texml/Accounts/{account_sid}/Recordings.jsonimport com.telnyx.sdk.models.texml.accounts.AccountRetrieveRecordingsJsonParams;
import com.telnyx.sdk.models.texml.accounts.AccountRetrieveRecordingsJsonResponse;
AccountRetrieveRecordingsJsonResponse response = client.texml().accounts().retrieveRecordingsJson("550e8400-e29b-41d4-a716-446655440000");endfirst_page_urinext_page_uripagepage_sizeprevious_page_urirecordingsstarturiGET /texml/Accounts/{account_sid}/Recordings/{recording_sid}.jsonimport com.telnyx.sdk.models.texml.accounts.TexmlGetCallRecordingResponseBody;
import com.telnyx.sdk.models.texml.accounts.recordings.json.JsonRetrieveRecordingSidJsonParams;
JsonRetrieveRecordingSidJsonParams params = JsonRetrieveRecordingSidJsonParams.builder()
.accountSid("550e8400-e29b-41d4-a716-446655440000")
.recordingSid("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
.build();
TexmlGetCallRecordingResponseBody texmlGetCallRecordingResponseBody = client.texml().accounts().recordings().json().retrieveRecordingSidJson(params);account_sidcall_sidchannelsconference_siddate_createddate_updateddurationerror_codemedia_urlsidsourcestart_timestatussubresources_urisuriDELETE /texml/Accounts/{account_sid}/Recordings/{recording_sid}.jsonimport com.telnyx.sdk.models.texml.accounts.recordings.json.JsonDeleteRecordingSidJsonParams;
JsonDeleteRecordingSidJsonParams params = JsonDeleteRecordingSidJsonParams.builder()
.accountSid("550e8400-e29b-41d4-a716-446655440000")
.recordingSid("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
.build();
client.texml().accounts().recordings().json().deleteRecordingSidJson(params);GET /texml/Accounts/{account_sid}/Transcriptions.jsonimport com.telnyx.sdk.models.texml.accounts.AccountRetrieveTranscriptionsJsonParams;
import com.telnyx.sdk.models.texml.accounts.AccountRetrieveTranscriptionsJsonResponse;
AccountRetrieveTranscriptionsJsonResponse response = client.texml().accounts().retrieveTranscriptionsJson("550e8400-e29b-41d4-a716-446655440000");endfirst_page_urinext_page_uripagepage_sizeprevious_page_uristarttranscriptionsuriGET /texml/Accounts/{account_sid}/Transcriptions/{recording_transcription_sid}.jsonimport com.telnyx.sdk.models.texml.accounts.transcriptions.json.JsonRetrieveRecordingTranscriptionSidJsonParams;
import com.telnyx.sdk.models.texml.accounts.transcriptions.json.JsonRetrieveRecordingTranscriptionSidJsonResponse;
JsonRetrieveRecordingTranscriptionSidJsonParams params = JsonRetrieveRecordingTranscriptionSidJsonParams.builder()
.accountSid("550e8400-e29b-41d4-a716-446655440000")
.recordingTranscriptionSid("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
.build();
JsonRetrieveRecordingTranscriptionSidJsonResponse response = client.texml().accounts().transcriptions().json().retrieveRecordingTranscriptionSidJson(params);account_sidapi_versioncall_siddate_createddate_updateddurationrecording_sidsidstatustranscription_texturiDELETE /texml/Accounts/{account_sid}/Transcriptions/{recording_transcription_sid}.jsonimport com.telnyx.sdk.models.texml.accounts.transcriptions.json.JsonDeleteRecordingTranscriptionSidJsonParams;
JsonDeleteRecordingTranscriptionSidJsonParams params = JsonDeleteRecordingTranscriptionSidJsonParams.builder()
.accountSid("550e8400-e29b-41d4-a716-446655440000")
.recordingTranscriptionSid("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
.build();
client.texml().accounts().transcriptions().json().deleteRecordingTranscriptionSidJson(params);POST /texml/secretsnamevalueimport com.telnyx.sdk.models.texml.TexmlSecretsParams;
import com.telnyx.sdk.models.texml.TexmlSecretsResponse;
TexmlSecretsParams params = TexmlSecretsParams.builder()
.name("My Secret Name")
.value("My Secret Value")
.build();
TexmlSecretsResponse response = client.texml().secrets(params);namevalueGET /texml_applicationsimport com.telnyx.sdk.models.texmlapplications.TexmlApplicationListPage;
import com.telnyx.sdk.models.texmlapplications.TexmlApplicationListParams;
TexmlApplicationListPage page = client.texmlApplications().list();activeanchorsite_overridecall_cost_in_webhookscreated_atdtmf_typefirst_command_timeoutfirst_command_timeout_secsfriendly_nameidinboundoutboundrecord_typestatus_callbackstatus_callback_methodtagsupdated_atvoice_fallback_urlvoice_methodvoice_urlPOST /texml_applicationsfriendly_namevoice_urlactiveanchorsite_overridecall_cost_in_webhooksdtmf_typefirst_command_timeoutfirst_command_timeout_secsinboundoutboundstatus_callbackstatus_callback_methodtagsvoice_fallback_urlvoice_methodimport com.telnyx.sdk.models.texmlapplications.TexmlApplicationCreateParams;
import com.telnyx.sdk.models.texmlapplications.TexmlApplicationCreateResponse;
TexmlApplicationCreateParams params = TexmlApplicationCreateParams.builder()
.friendlyName("call-router")
.voiceUrl("https://example.com")
.build();
TexmlApplicationCreateResponse texmlApplication = client.texmlApplications().create(params);activeanchorsite_overridecall_cost_in_webhookscreated_atdtmf_typefirst_command_timeoutfirst_command_timeout_secsfriendly_nameidinboundoutboundrecord_typestatus_callbackstatus_callback_methodtagsupdated_atvoice_fallback_urlvoice_methodvoice_urlGET /texml_applications/{id}import com.telnyx.sdk.models.texmlapplications.TexmlApplicationRetrieveParams;
import com.telnyx.sdk.models.texmlapplications.TexmlApplicationRetrieveResponse;
TexmlApplicationRetrieveResponse texmlApplication = client.texmlApplications().retrieve("1293384261075731499");activeanchorsite_overridecall_cost_in_webhookscreated_atdtmf_typefirst_command_timeoutfirst_command_timeout_secsfriendly_nameidinboundoutboundrecord_typestatus_callbackstatus_callback_methodtagsupdated_atvoice_fallback_urlvoice_methodvoice_urlPATCH /texml_applications/{id}friendly_namevoice_urlactiveanchorsite_overridecall_cost_in_webhooksdtmf_typefirst_command_timeoutfirst_command_timeout_secsinboundoutboundstatus_callbackstatus_callback_methodtagsvoice_fallback_urlvoice_methodimport com.telnyx.sdk.models.texmlapplications.TexmlApplicationUpdateParams;
import com.telnyx.sdk.models.texmlapplications.TexmlApplicationUpdateResponse;
TexmlApplicationUpdateParams params = TexmlApplicationUpdateParams.builder()
.id("1293384261075731499")
.friendlyName("call-router")
.voiceUrl("https://example.com")
.build();
TexmlApplicationUpdateResponse texmlApplication = client.texmlApplications().update(params);activeanchorsite_overridecall_cost_in_webhookscreated_atdtmf_typefirst_command_timeoutfirst_command_timeout_secsfriendly_nameidinboundoutboundrecord_typestatus_callbackstatus_callback_methodtagsupdated_atvoice_fallback_urlvoice_methodvoice_urlDELETE /texml_applications/{id}import com.telnyx.sdk.models.texmlapplications.TexmlApplicationDeleteParams;
import com.telnyx.sdk.models.texmlapplications.TexmlApplicationDeleteResponse;
TexmlApplicationDeleteResponse texmlApplication = client.texmlApplications().delete("1293384261075731499");activeanchorsite_overridecall_cost_in_webhookscreated_atdtmf_typefirst_command_timeoutfirst_command_timeout_secsfriendly_nameidinboundoutboundrecord_typestatus_callbackstatus_callback_methodtagsupdated_atvoice_fallback_urlvoice_methodvoice_url