Skip to main content
telnyx-webrtc-javascript Manage WebRTC credentials and mobile push notification settings. Use when building browser-based or mobile softphone applications. This skill provides JavaScript SDK examples.
跳到安装 Skills Marketplace 发现并探索由社区构建的 Agent Skills
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/team-telnyx/telnyx-toolkit --skill telnyx-webrtc-javascript命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
下载 Zip 下载中... name telnyx-webrtc-javascript description Manage WebRTC credentials and mobile push notification settings. Use when building browser-based or mobile softphone applications. This skill provides JavaScript SDK examples. metadata {"author":"telnyx","product":"webrtc","language":"javascript","generated_by":"telnyx-ext-skills-generator"}
Telnyx Webrtc - 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.
List mobile push credentials
GET /mobile_push_credentials
for await (const pushCredential of client.mobilePushCredentials .list ()) {
. (pushCredential. );
}
console
log
id
Creates a new mobile push credential POST /mobile_push_credentials
const pushCredentialResponse = await client.mobilePushCredentials .create ({
createMobilePushCredentialRequest : {
alias : 'LucyIosCredential' ,
certificate :
'-----BEGIN CERTIFICATE----- MIIGVDCCBTKCAQEAsNlRJVZn9ZvXcECQm65czs... -----END CERTIFICATE-----' ,
private_key :
'-----BEGIN RSA PRIVATE KEY----- MIIEpQIBAAKCAQEAsNlRJVZn9ZvXcECQm65czs... -----END RSA PRIVATE KEY-----' ,
type : 'ios' ,
},
});
console .log (pushCredentialResponse.data );
Retrieves a mobile push credential Retrieves mobile push credential based on the given push_credential_id
GET /mobile_push_credentials/{push_credential_id}
const pushCredentialResponse = await client.mobilePushCredentials .retrieve (
'0ccc7b76-4df3-4bca-a05a-3da1ecc389f0' ,
);
console .log (pushCredentialResponse.data );
Deletes a mobile push credential Deletes a mobile push credential based on the given push_credential_id
DELETE /mobile_push_credentials/{push_credential_id}
await client.mobilePushCredentials .delete ('0ccc7b76-4df3-4bca-a05a-3da1ecc389f0' );
List all credentials List all On-demand Credentials.
GET /telephony_credentials
for await (const telephonyCredential of client.telephonyCredentials .list ()) {
console .log (telephonyCredential.id );
}
Create a credential POST /telephony_credentials — Required: connection_id
const telephonyCredential = await client.telephonyCredentials .create ({
connection_id : '1234567890' ,
});
console .log (telephonyCredential.data );
Get a credential Get the details of an existing On-demand Credential.
GET /telephony_credentials/{id}
const telephonyCredential = await client.telephonyCredentials .retrieve ('id' );
console .log (telephonyCredential.data );
Update a credential Update an existing credential.
PATCH /telephony_credentials/{id}
const telephonyCredential = await client.telephonyCredentials .update ('id' );
console .log (telephonyCredential.data );
Delete a credential Delete an existing credential.
DELETE /telephony_credentials/{id}
const telephonyCredential = await client.telephonyCredentials .delete ('id' );
console .log (telephonyCredential.data );
Create an Access Token. Create an Access Token (JWT) for the credential.
POST /telephony_credentials/{id}/token
const response = await client.telephonyCredentials .createToken ('id' );
console .log (response);
相关职业
SOC
同仓库更多 Skills 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.