team-telnyx/ai

telnyx-texml-java

>- Build voice applications using TeXML markup language (TwiML-compatible). Manage applications, calls, conferences, recordings, queues, and streams. This skill provides Java SDK examples.

First seen Apr 27, 2026

Installation

$ npx skills add team-telnyx/ai --skill telnyx-texml-java

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from team-telnyx/ai · top by installs.

npx skills add team-telnyx/ai

Browse all from team-telnyx/ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 213
License LICENSE
Default branch main
Open issues 2
Status Active

Skill metadata

Parsed from SKILL.md frontmatter.

More metadata
author
telnyx
product
texml
language
java
generated_by
telnyx-openapi-pipeline

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 40,062 B
  • docs SUMMARY.md 210 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 13 installs

SKILL.md

<!-- Auto-generated from Telnyx OpenAPI specs. Do not edit. -->

Telnyx Texml - Java

Installation

<!-- 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")

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.

Error Handling

All API calls can fail with network errors, rate limits (429), validation errors (422), or authentication errors (401). Always handle errors in production code:

import 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).

Important Notes

  • Pagination: List methods return a page. Use .autoPager() for automatic iteration: for (var item : page.autoPager()) { ... }. For manual control, use .hasNextPage() and .nextPage().

Fetch multiple call resources

Returns multiple call resources for an account. This endpoint is eventually consistent.

GET /texml/Accounts/{account_sid}/Calls

import 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");

Returns: calls (array[object]), end (integer), firstpageuri (string), nextpageuri (string), page (integer), page_size (integer), start (integer), uri (string)

Initiate an outbound call

Initiate an outbound TeXML call. Telnyx will request TeXML from the XML Request URL configured for the connection in the Mission Control Portal.

POST /texml/Accounts/{account_sid}/Calls — Required: Url

Optional: Texml (object)

import 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")
    .params(CallCallsParams.Params.WithUrl.builder()
        .url("https://www.example.com/texml.xml")
        .build())
    .build();
CallCallsResponse response = client.texml().accounts().calls().calls(params);

Returns: from (string), status (string), to (string)

Fetch a call

Returns an individual call identified by its CallSid. This endpoint is eventually consistent.

GET /texml/Accounts/{accountsid}/Calls/{callsid}

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);

Returns: accountsid (string), answeredby (enum: human, machine, notsure), callername (string), datecreated (string), dateupdated (string), direction (enum: inbound, outbound), duration (string), endtime (string), from (string), fromformatted (string), price (string), priceunit (string), sid (string), starttime (string), status (enum: ringing, in-progress, canceled, completed, failed, busy, no-answer), to (string), to_formatted (string), uri (string)

Update call

Update TeXML call. Please note that the keys present in the payload MUST BE formatted in CamelCase as specified in the example.

POST /texml/Accounts/{accountsid}/Calls/{callsid}

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);

Returns: accountsid (string), answeredby (enum: human, machine, notsure), callername (string), datecreated (string), dateupdated (string), direction (enum: inbound, outbound), duration (string), endtime (string), from (string), fromformatted (string), price (string), priceunit (string), sid (string), starttime (string), status (enum: ringing, in-progress, canceled, completed, failed, busy, no-answer), to (string), to_formatted (string), uri (string)

Fetch recordings for a call

Returns recordings for a call identified by call_sid.

GET /texml/Accounts/{accountsid}/Calls/{callsid}/Recordings.json

import 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);

Returns: end (integer), firstpageuri (uri), nextpageuri (string), page (integer), pagesize (integer), previouspage_uri (uri), recordings (array[object]), start (integer), uri (string)

Request recording for a call

Starts recording with specified parameters for call identified by call_sid.

POST /texml/Accounts/{accountsid}/Calls/{callsid}/Recordings.json

import 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);

Returns: accountsid (string), callsid (string), channels (enum: 1, 2), conferencesid (uuid), datecreated (date-time), dateupdated (date-time), duration (string | null), errorcode (string | null), price (string | null), priceunit (string | null), sid (string), source (enum: StartCallRecordingAPI, StartConferenceRecordingAPI, OutboundAPI, DialVerb, Conference, RecordVerb, Trunking), starttime (date-time), track (enum: inbound, outbound, both), uri (string)

Update recording on a call

Updates recording resource for particular call.

POST /texml/Accounts/{accountsid}/Calls/{callsid}/Recordings/{recording_sid}.json

import 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);

Returns: accountsid (string), callsid (string), channels (enum: 1, 2), conferencesid (uuid), datecreated (date-time), dateupdated (date-time), duration (string | null), errorcode (string | null), price (string | null), priceunit (string | null), sid (string), source (enum: StartCallRecordingAPI, StartConferenceRecordingAPI, OutboundAPI, DialVerb, Conference, RecordVerb, Trunking), starttime (date-time), track (enum: inbound, outbound, both), uri (string)

Request siprec session for a call

Starts siprec session with specified parameters for call identified by call_sid.

POST /texml/Accounts/{accountsid}/Calls/{callsid}/Siprec.json

import 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);

Returns: accountsid (string), callsid (string), datecreated (string), dateupdated (string), errorcode (string), sid (string), starttime (string), status (enum: in-progress, stopped), track (enum: bothtracks, inboundtrack, outbound_track), uri (string)

Updates siprec session for a call

Updates siprec session identified by siprec_sid.

POST /texml/Accounts/{accountsid}/Calls/{callsid}/Siprec/{siprec_sid}.json

import 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);

Returns: accountsid (string), callsid (string), dateupdated (string), errorcode (string), sid (string), status (enum: in-progress, stopped), uri (string)

Start streaming media from a call.

Starts streaming media from a call to a specific WebSocket address.

POST /texml/Accounts/{accountsid}/Calls/{callsid}/Streams.json

import 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);

Returns: accountsid (string), callsid (string), date_updated (date-time), name (string), sid (string), status (enum: in-progress), uri (string)

Update streaming on a call

Updates streaming resource for particular call.

POST /texml/Accounts/{accountsid}/Calls/{callsid}/Streams/{streaming_sid}.json

import 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);

Returns: accountsid (string), callsid (string), date_updated (date-time), sid (string), status (enum: stopped), uri (string)

List conference resources

Lists conference resources.

GET /texml/Accounts/{account_sid}/Conferences

import 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");

Returns: conferences (array[object]), end (integer), firstpageuri (string), nextpageuri (string), page (integer), page_size (integer), start (integer), uri (string)

Fetch a conference resource

Returns a conference resource.

GET /texml/Accounts/{accountsid}/Conferences/{conferencesid}

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);

Returns: accountsid (string), apiversion (string), callsidendingconference (string), datecreated (string), dateupdated (string), friendlyname (string), reasonconferenceended (enum: participant-with-end-conference-on-exit-left, last-participant-left, conference-ended-via-api, time-exceeded), region (string), sid (string), status (enum: init, in-progress, completed), subresource_uris (object), uri (string)

Update a conference resource

Updates a conference resource.

POST /texml/Accounts/{accountsid}/Conferences/{conferencesid}

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);

Returns: accountsid (string), apiversion (string), callsidendingconference (string), datecreated (string), dateupdated (string), friendlyname (string), reasonconferenceended (enum: participant-with-end-conference-on-exit-left, last-participant-left, conference-ended-via-api, time-exceeded), region (string), sid (string), status (enum: init, in-progress, completed), subresource_uris (object), uri (string)

List conference participants

Lists conference participants

GET /texml/Accounts/{accountsid}/Conferences/{conferencesid}/Participants

import 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);

Returns: end (integer), firstpageuri (string), nextpageuri (string), page (integer), page_size (integer), participants (array[object]), start (integer), uri (string)

Dial a new conference participant

Dials a new conference participant

POST /texml/Accounts/{accountsid}/Conferences/{conferencesid}/Participants

import 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);

Returns: accountsid (string), callsid (string), coaching (boolean), coachingcallsid (string), conferencesid (uuid), endconferenceonexit (boolean), hold (boolean), muted (boolean), status (enum: connecting, connected, completed), uri (string)

Get conference participant resource

Gets conference participant resource

GET /texml/Accounts/{accountsid}/Conferences/{conferencesid}/Participants/{callsidorparticipantlabel}

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);

Returns: accountsid (string), apiversion (string), callsid (string), callsidlegacy (string), coaching (boolean), coachingcallsid (string), coachingcallsidlegacy (string), conferencesid (uuid), datecreated (string), dateupdated (string), endconferenceonexit (boolean), hold (boolean), muted (boolean), status (enum: connecting, connected, completed), uri (string)

Update a conference participant

Updates a conference participant

POST /texml/Accounts/{accountsid}/Conferences/{conferencesid}/Participants/{callsidorparticipantlabel}

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);

Returns: accountsid (string), apiversion (string), callsid (string), callsidlegacy (string), coaching (boolean), coachingcallsid (string), coachingcallsidlegacy (string), conferencesid (uuid), datecreated (string), dateupdated (string), endconferenceonexit (boolean), hold (boolean), muted (boolean), status (enum: connecting, connected, completed), uri (string)

Delete a conference participant

Deletes a conference participant

DELETE /texml/Accounts/{accountsid}/Conferences/{conferencesid}/Participants/{callsidorparticipantlabel}

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);

List conference recordings

Lists conference recordings

GET /texml/Accounts/{accountsid}/Conferences/{conferencesid}/Recordings

import 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);

Returns: end (integer), firstpageuri (string), nextpageuri (string), page (integer), page_size (integer), participants (array[object]), recordings (array[object]), start (integer), uri (string)

Fetch recordings for a conference

Returns recordings for a conference identified by conference_sid.

GET /texml/Accounts/{accountsid}/Conferences/{conferencesid}/Recordings.json

import 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);

Returns: end (integer), firstpageuri (uri), nextpageuri (string), page (integer), pagesize (integer), previouspage_uri (uri), recordings (array[object]), start (integer), uri (string)

List queue resources

Lists queue resources.

GET /texml/Accounts/{account_sid}/Queues

import 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");

Returns: end (integer), firstpageuri (string), nextpageuri (string), page (integer), page_size (integer), queues (array[object]), start (integer), uri (string)

Create a new queue

Creates a new queue resource.

POST /texml/Accounts/{account_sid}/Queues

import 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");

Returns: accountsid (string), averagewaittime (integer), currentsize (integer), datecreated (string), dateupdated (string), maxsize (integer), sid (string), subresourceuris (object), uri (string)

Fetch a queue resource

Returns a queue resource.

GET /texml/Accounts/{accountsid}/Queues/{queuesid}

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);

Returns: accountsid (string), averagewaittime (integer), currentsize (integer), datecreated (string), dateupdated (string), maxsize (integer), sid (string), subresourceuris (object), uri (string)

Update a queue resource

Updates a queue resource.

POST /texml/Accounts/{accountsid}/Queues/{queuesid}

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);

Returns: accountsid (string), averagewaittime (integer), currentsize (integer), datecreated (string), dateupdated (string), maxsize (integer), sid (string), subresourceuris (object), uri (string)

Delete a queue resource

Delete a queue resource.

DELETE /texml/Accounts/{accountsid}/Queues/{queuesid}

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);

Fetch multiple recording resources

Returns multiple recording resources for an account.

GET /texml/Accounts/{account_sid}/Recordings.json

import 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");

Returns: end (integer), firstpageuri (uri), nextpageuri (string), page (integer), pagesize (integer), previouspage_uri (uri), recordings (array[object]), start (integer), uri (string)

Fetch recording resource

Returns recording resource identified by recording id.

GET /texml/Accounts/{accountsid}/Recordings/{recordingsid}.json

import 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);

Returns: accountsid (string), callsid (string), channels (enum: 1, 2), conferencesid (uuid), datecreated (date-time), dateupdated (date-time), duration (string | null), errorcode (string | null), mediaurl (uri), sid (string), source (enum: StartCallRecordingAPI, StartConferenceRecordingAPI, OutboundAPI, DialVerb, Conference, RecordVerb, Trunking), starttime (date-time), status (enum: in-progress, completed, paused, stopped), subresources_uris (object), uri (string)

Delete recording resource

Deletes recording resource identified by recording id.

DELETE /texml/Accounts/{accountsid}/Recordings/{recordingsid}.json

import 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);

List recording transcriptions

Returns multiple recording transcription resources for an account.

GET /texml/Accounts/{account_sid}/Transcriptions.json

import 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");

Returns: end (integer), firstpageuri (uri), nextpageuri (string), page (integer), pagesize (integer), previouspage_uri (uri), start (integer), transcriptions (array[object]), uri (string)

Fetch a recording transcription resource

Returns the recording transcription resource identified by its ID.

GET /texml/Accounts/{accountsid}/Transcriptions/{recordingtranscription_sid}.json

import 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);

Returns: accountsid (string), apiversion (string), callsid (string), datecreated (date-time), dateupdated (date-time), duration (string | null), recordingsid (string), sid (string), status (enum: in-progress, completed), transcription_text (string), uri (string)

Delete a recording transcription

Permanently deletes a recording transcription.

DELETE /texml/Accounts/{accountsid}/Transcriptions/{recordingtranscription_sid}.json

import 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);

Initiate an outbound AI call

Initiate an outbound AI call with warm-up support. Validates parameters, builds an internal TeXML with an AI Assistant configuration, encodes instructions into client state, and calls the dial API. The Twiml, Texml, and Url parameters are not allowed and will result in a 422 error.

POST /texml/aicalls/{connectionid} — Required: From, To, AIAssistantId

Optional: AIAssistantDynamicVariables (object), AIAssistantVersion (string), AsyncAmd (boolean), AsyncAmdStatusCallback (string), AsyncAmdStatusCallbackMethod (enum: GET, POST), CallerId (string), ConversationCallback (string), ConversationCallbackMethod (enum: GET, POST), ConversationCallbacks (array[string]), CustomHeaders (array[object]), DetectionMode (enum: Premium, Regular, PremiumCallScreening), MachineDetection (enum: Enable, Disable, DetectMessageEnd), MachineDetectionPromptEndTimeout (integer), MachineDetectionSilenceTimeout (integer), MachineDetectionSpeechEndThreshold (integer), MachineDetectionSpeechThreshold (integer), MachineDetectionTimeout (integer), Passports (string), PreferredCodecs (string), Record (boolean), RecordingChannels (enum: mono, dual), RecordingStatusCallback (string), RecordingStatusCallbackEvent (string), RecordingStatusCallbackMethod (enum: GET, POST), RecordingTimeout (integer), RecordingTrack (enum: inbound, outbound, both), SendRecordingUrl (boolean), SipAuthPassword (string), SipAuthUsername (string), SipRegion (enum: US, Europe, Canada, Australia, Middle East), StatusCallback (string), StatusCallbackEvent (string), StatusCallbackMethod (enum: GET, POST), StatusCallbacks (array[string]), TimeLimit (integer), Timeout (integer), Trim (enum: trim-silence, do-not-trim)

import com.telnyx.sdk.models.texml.TexmlInitiateAiCallParams;
import com.telnyx.sdk.models.texml.TexmlInitiateAiCallResponse;

TexmlInitiateAiCallParams params = TexmlInitiateAiCallParams.builder()
    .connectionId("550e8400-e29b-41d4-a716-446655440000")
    .aiAssistantId("ai-assistant-id-123")
    .from("+13120001234")
    .to("+13121230000")
    .build();
TexmlInitiateAiCallResponse response = client.texml().initiateAiCall(params);

Returns: call_sid (string), from (string), status (string), to (string)

Create a TeXML secret

Create a TeXML secret which can be later used as a Dynamic Parameter for TeXML when using Mustache Templates in your TeXML. In your TeXML you will be able to use your secret name, and this name will be replaced by the actual secret value when processing the TeXML on Telnyx side. The secrets are not visible in any logs.

POST /texml/secrets — Required: name, value

import 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);

Returns: name (string), value (enum: REDACTED)

List all TeXML Applications

Returns a list of your TeXML Applications.

GET /texml_applications

import com.telnyx.sdk.models.texmlapplications.TexmlApplicationListPage;
import com.telnyx.sdk.models.texmlapplications.TexmlApplicationListParams;

TexmlApplicationListPage page = client.texmlApplications().list();

Returns: active (boolean), anchorsiteoverride (enum: Latency, Chicago, IL, Ashburn, VA, San Jose, CA, Sydney, Australia, Amsterdam, Netherlands, London, UK, Toronto, Canada, Vancouver, Canada, Frankfurt, Germany), callcostinwebhooks (boolean), createdat (string), dtmftype (enum: RFC 2833, Inband, SIP INFO), firstcommandtimeout (boolean), firstcommandtimeoutsecs (integer), friendlyname (string), id (string), inbound (object), outbound (object), recordtype (string), statuscallback (uri), statuscallbackmethod (enum: get, post), tags (array[string]), updatedat (string), voicefallbackurl (uri), voicemethod (enum: get, post), voice_url (uri)

Creates a TeXML Application

Creates a TeXML Application.

POST /texmlapplications — Required: friendlyname, voice_url

Optional: active (boolean), anchorsiteoverride (enum: Latency, Chicago, IL, Ashburn, VA, San Jose, CA, Sydney, Australia, Amsterdam, Netherlands, London, UK, Toronto, Canada, Vancouver, Canada, Frankfurt, Germany), callcostinwebhooks (boolean), dtmftype (enum: RFC 2833, Inband, SIP INFO), firstcommandtimeout (boolean), firstcommandtimeoutsecs (integer), inbound (object), outbound (object), statuscallback (uri), statuscallbackmethod (enum: get, post), tags (array[string]), voicefallbackurl (uri), voicemethod (enum: get, post)

import 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);

Returns: active (boolean), anchorsiteoverride (enum: Latency, Chicago, IL, Ashburn, VA, San Jose, CA, Sydney, Australia, Amsterdam, Netherlands, London, UK, Toronto, Canada, Vancouver, Canada, Frankfurt, Germany), callcostinwebhooks (boolean), createdat (string), dtmftype (enum: RFC 2833, Inband, SIP INFO), firstcommandtimeout (boolean), firstcommandtimeoutsecs (integer), friendlyname (string), id (string), inbound (object), outbound (object), recordtype (string), statuscallback (uri), statuscallbackmethod (enum: get, post), tags (array[string]), updatedat (string), voicefallbackurl (uri), voicemethod (enum: get, post), voice_url (uri)

Retrieve a TeXML Application

Retrieves the details of an existing TeXML Application.

GET /texml_applications/{id}

import com.telnyx.sdk.models.texmlapplications.TexmlApplicationRetrieveParams;
import com.telnyx.sdk.models.texmlapplications.TexmlApplicationRetrieveResponse;

TexmlApplicationRetrieveResponse texmlApplication = client.texmlApplications().retrieve("1293384261075731499");

Returns: active (boolean), anchorsiteoverride (enum: Latency, Chicago, IL, Ashburn, VA, San Jose, CA, Sydney, Australia, Amsterdam, Netherlands, London, UK, Toronto, Canada, Vancouver, Canada, Frankfurt, Germany), callcostinwebhooks (boolean), createdat (string), dtmftype (enum: RFC 2833, Inband, SIP INFO), firstcommandtimeout (boolean), firstcommandtimeoutsecs (integer), friendlyname (string), id (string), inbound (object), outbound (object), recordtype (string), statuscallback (uri), statuscallbackmethod (enum: get, post), tags (array[string]), updatedat (string), voicefallbackurl (uri), voicemethod (enum: get, post), voice_url (uri)

Update a TeXML Application

Updates settings of an existing TeXML Application.

PATCH /texmlapplications/{id} — Required: friendlyname, voice_url

Optional: active (boolean), anchorsiteoverride (enum: Latency, Chicago, IL, Ashburn, VA, San Jose, CA, Sydney, Australia, Amsterdam, Netherlands, London, UK, Toronto, Canada, Vancouver, Canada, Frankfurt, Germany), callcostinwebhooks (boolean), dtmftype (enum: RFC 2833, Inband, SIP INFO), firstcommandtimeout (boolean), firstcommandtimeoutsecs (integer), inbound (object), outbound (object), statuscallback (uri), statuscallbackmethod (enum: get, post), tags (array[string]), voicefallbackurl (uri), voicemethod (enum: get, post)

import 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);

Returns: active (boolean), anchorsiteoverride (enum: Latency, Chicago, IL, Ashburn, VA, San Jose, CA, Sydney, Australia, Amsterdam, Netherlands, London, UK, Toronto, Canada, Vancouver, Canada, Frankfurt, Germany), callcostinwebhooks (boolean), createdat (string), dtmftype (enum: RFC 2833, Inband, SIP INFO), firstcommandtimeout (boolean), firstcommandtimeoutsecs (integer), friendlyname (string), id (string), inbound (object), outbound (object), recordtype (string), statuscallback (uri), statuscallbackmethod (enum: get, post), tags (array[string]), updatedat (string), voicefallbackurl (uri), voicemethod (enum: get, post), voice_url (uri)

Deletes a TeXML Application

Deletes a TeXML Application.

DELETE /texml_applications/{id}

import com.telnyx.sdk.models.texmlapplications.TexmlApplicationDeleteParams;
import com.telnyx.sdk.models.texmlapplications.TexmlApplicationDeleteResponse;

TexmlApplicationDeleteResponse texmlApplication = client.texmlApplications().delete("1293384261075731499");

Returns: active (boolean), anchorsiteoverride (enum: Latency, Chicago, IL, Ashburn, VA, San Jose, CA, Sydney, Australia, Amsterdam, Netherlands, London, UK, Toronto, Canada, Vancouver, Canada, Frankfurt, Germany), callcostinwebhooks (boolean), createdat (string), dtmftype (enum: RFC 2833, Inband, SIP INFO), firstcommandtimeout (boolean), firstcommandtimeoutsecs (integer), friendlyname (string), id (string), inbound (object), outbound (object), recordtype (string), statuscallback (uri), statuscallbackmethod (enum: get, post), tags (array[string]), updatedat (string), voicefallbackurl (uri), voicemethod (enum: get, post), voice_url (uri)