Skip to main content
telnyx-sip-javascript Configure SIP trunking connections and outbound voice profiles. Use when connecting PBX systems or managing SIP infrastructure. This skill provides JavaScript SDK examples.
Ir a la instalación Skills Marketplace Descubre y explora habilidades de IA creadas por la comunidad.
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Copiar promptMostrar detalles del prompt Un comando directo omite el prompt de revisión. Revisa el origen antes de ejecutarlo.
npx skills add https://github.com/team-telnyx/telnyx-toolkit --skill telnyx-sip-javascriptEl comando permanece en una sola línea. Desplázate horizontalmente para revisarlo antes de copiarlo.
¿Prefieres una copia local? Descarga los archivos que SkillsMP tiene disponibles ahora.
Descargar Zip Descargando... Más de este repositorio Complete Telnyx toolkit — ready-to-use tools (STT, TTS, RAG, Networking, 10DLC) plus SDK documentation for JavaScript, Python, Go, Java, and Ruby.
Automated Telnyx bot account signup via challenge-response
Track agent activities using the Telnyx AI Missions API. Use this skill when executing multi-step tasks that should be logged and tracked. Supports creating voice/SMS agents, scheduling calls, and retrieving conversation insights. Use when tasks involve calling people, sending SMS, or any substantial tracked work.
Ocupaciones relacionadas
SOC
Basado en la clasificación ocupacional SOC
name telnyx-sip-javascript description Configure SIP trunking connections and outbound voice profiles. Use when connecting PBX systems or managing SIP infrastructure. This skill provides JavaScript SDK examples. metadata {"author":"telnyx","product":"sip","language":"javascript","generated_by":"telnyx-ext-skills-generator"}
Telnyx Sip - JavaScript
Installation
npm install telnyx
Setup
import Telnyx from 'telnyx' ;
const client = new Telnyx ({
apiKey : process.env ['TELNYX_API_KEY' ],
});
All examples below assume client is already initialized as shown above.
Get all outbound voice profiles
Get all outbound voice profiles belonging to the user that match the given filters.
GET /outbound_voice_profiles
for await (const outboundVoiceProfile of client. . ()) {
. (outboundVoiceProfile. );
}
outboundVoiceProfiles
list
console
log
id
Create an outbound voice profile Create an outbound voice profile.
POST /outbound_voice_profiles — Required: name
const outboundVoiceProfile = await client.outboundVoiceProfiles .create ({ name : 'office' });
console .log (outboundVoiceProfile.data );
Retrieve an outbound voice profile Retrieves the details of an existing outbound voice profile.
GET /outbound_voice_profiles/{id}
const outboundVoiceProfile = await client.outboundVoiceProfiles .retrieve ('1293384261075731499' );
console .log (outboundVoiceProfile.data );
Updates an existing outbound voice profile. PATCH /outbound_voice_profiles/{id} — Required: name
const outboundVoiceProfile = await client.outboundVoiceProfiles .update ('1293384261075731499' , {
name : 'office' ,
});
console .log (outboundVoiceProfile.data );
Delete an outbound voice profile Deletes an existing outbound voice profile.
DELETE /outbound_voice_profiles/{id}
const outboundVoiceProfile = await client.outboundVoiceProfiles .delete ('1293384261075731499' );
console .log (outboundVoiceProfile.data );
List connections Returns a list of your connections irrespective of type.
for await (const connectionListResponse of client.connections .list ()) {
console .log (connectionListResponse.id );
}
Retrieve a connection Retrieves the high-level details of an existing connection.
const connection = await client.connections .retrieve ('id' );
console .log (connection.data );
List credential connections Returns a list of your credential connections.
GET /credential_connections
for await (const credentialConnection of client.credentialConnections .list ()) {
console .log (credentialConnection.id );
}
Create a credential connection Creates a credential connection.
POST /credential_connections — Required: user_name, password, connection_name
const credentialConnection = await client.credentialConnections .create ({
connection_name : 'my name' ,
password : 'my123secure456password789' ,
user_name : 'myusername123' ,
});
console .log (credentialConnection.data );
Retrieve a credential connection Retrieves the details of an existing credential connection.
GET /credential_connections/{id}
const credentialConnection = await client.credentialConnections .retrieve ('id' );
console .log (credentialConnection.data );
Update a credential connection Updates settings of an existing credential connection.
PATCH /credential_connections/{id}
const credentialConnection = await client.credentialConnections .update ('id' );
console .log (credentialConnection.data );
Delete a credential connection Deletes an existing credential connection.
DELETE /credential_connections/{id}
const credentialConnection = await client.credentialConnections .delete ('id' );
console .log (credentialConnection.data );
Check a Credential Connection Registration Status 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
const response = await client.credentialConnections .actions .checkRegistrationStatus ('id' );
console .log (response.data );
List Ips Get all IPs belonging to the user that match the given filters.
for await (const ip of client.ips .list ()) {
console .log (ip.id );
}
Create an Ip POST /ips — Required: ip_address
const ip = await client.ips .create ({ ip_address : '192.168.0.0' });
console .log (ip.data );
Retrieve an Ip Return the details regarding a specific IP.
const ip = await client.ips .retrieve ('6a09cdc3-8948-47f0-aa62-74ac943d6c58' );
console .log (ip.data );
Update an Ip Update the details of a specific IP.
PATCH /ips/{id} — Required: ip_address
const ip = await client.ips .update ('6a09cdc3-8948-47f0-aa62-74ac943d6c58' , {
ip_address : '192.168.0.0' ,
});
console .log (ip.data );
Delete an Ip const ip = await client.ips .delete ('6a09cdc3-8948-47f0-aa62-74ac943d6c58' );
console .log (ip.data );
List Ip connections Returns a list of your IP connections.
for await (const ipConnection of client.ipConnections .list ()) {
console .log (ipConnection.id );
}
Create an Ip connection Creates an IP connection.
const ipConnection = await client.ipConnections .create ();
console .log (ipConnection.data );
Retrieve an Ip connection Retrieves the details of an existing ip connection.
const ipConnection = await client.ipConnections .retrieve ('id' );
console .log (ipConnection.data );
Update an Ip connection Updates settings of an existing IP connection.
PATCH /ip_connections/{id}
const ipConnection = await client.ipConnections .update ('id' );
console .log (ipConnection.data );
Delete an Ip connection Deletes an existing IP connection.
DELETE /ip_connections/{id}
const ipConnection = await client.ipConnections .delete ('id' );
console .log (ipConnection.data );
List FQDNs Get all FQDNs belonging to the user that match the given filters.
for await (const fqdn of client.fqdns .list ()) {
console .log (fqdn.id );
}
Create an FQDN Create a new FQDN object.
POST /fqdns — Required: fqdn, dns_record_type, connection_id
const fqdn = await client.fqdns .create ({
connection_id : '1516447646313612565' ,
dns_record_type : 'a' ,
fqdn : 'example.com' ,
});
console .log (fqdn.data );
Retrieve an FQDN Return the details regarding a specific FQDN.
const fqdn = await client.fqdns .retrieve ('id' );
console .log (fqdn.data );
Update an FQDN Update the details of a specific FQDN.
const fqdn = await client.fqdns .update ('id' );
console .log (fqdn.data );
Delete an FQDN const fqdn = await client.fqdns .delete ('id' );
console .log (fqdn.data );
List FQDN connections Returns a list of your FQDN connections.
for await (const fqdnConnection of client.fqdnConnections .list ()) {
console .log (fqdnConnection.id );
}
Create an FQDN connection Creates a FQDN connection.
POST /fqdn_connections — Required: connection_name
const fqdnConnection = await client.fqdnConnections .create ({ connection_name : 'string' });
console .log (fqdnConnection.data );
Retrieve an FQDN connection Retrieves the details of an existing FQDN connection.
GET /fqdn_connections/{id}
const fqdnConnection = await client.fqdnConnections .retrieve ('id' );
console .log (fqdnConnection.data );
Update an FQDN connection Updates settings of an existing FQDN connection.
PATCH /fqdn_connections/{id}
const fqdnConnection = await client.fqdnConnections .update ('id' );
console .log (fqdnConnection.data );
Delete an FQDN connection Deletes an FQDN connection.
DELETE /fqdn_connections/{id}
const fqdnConnection = await client.fqdnConnections .delete ('id' );
console .log (fqdnConnection.data );
List Mobile Voice Connections GET /v2/mobile_voice_connections
for await (const mobileVoiceConnection of client.mobileVoiceConnections .list ()) {
console .log (mobileVoiceConnection.id );
}
Create a Mobile Voice Connection POST /v2/mobile_voice_connections
const mobileVoiceConnection = await client.mobileVoiceConnections .create ();
console .log (mobileVoiceConnection.data );
Retrieve a Mobile Voice Connection GET /v2/mobile_voice_connections/{id}
const mobileVoiceConnection = await client.mobileVoiceConnections .retrieve ('id' );
console .log (mobileVoiceConnection.data );
Update a Mobile Voice Connection PATCH /v2/mobile_voice_connections/{id}
const mobileVoiceConnection = await client.mobileVoiceConnections .update ('id' );
console .log (mobileVoiceConnection.data );
Delete a Mobile Voice Connection DELETE /v2/mobile_voice_connections/{id}
const mobileVoiceConnection = await client.mobileVoiceConnections .delete ('id' );
console .log (mobileVoiceConnection.data );