Skip to content
telnyx-webrtc-ruby logo

Telnyx Webrtc - Ruby

telnyx-webrtc-ruby

Manage WebRTC credentials and mobile push notification settings. Use when building browser-based or mobile softphone applications. This skill provides Ruby SDK examples.

SKILL.md

Full skill instructions

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

Telnyx Webrtc - Ruby

Installation

gem install telnyx

Setup

require "telnyx"

client = Telnyx::Client.new(
  api_key: ENV["TELNYX_API_KEY"], # This is the default and can be omitted
)

All examples below assume client is already initialized as shown above.

List mobile push credentials

GET /​mobile_push_credentials

page = client.mobile_push_credentials.list

puts(page)

Creates a new mobile push credential

POST /​mobile_push_credentials

push_credential_response = client.mobile_push_credentials.create(
  create_mobile_push_credential_request: {
    alias: "LucyIosCredential",
    certificate: "-----BEGIN CERTIFICATE----- MIIGVDCCBTKCAQEAsNlRJVZn9ZvXcECQm65czs... -----END CERTIFICATE-----",
    private_key: "-----BEGIN RSA PRIVATE KEY----- MIIEpQIBAAKCAQEAsNlRJVZn9ZvXcECQm65czs... -----END RSA PRIVATE KEY-----",
    type: :ios
  }
)

puts(push_credential_response)

Retrieves a mobile push credential

Retrieves mobile push credential based on the given push_credential_id

GET /​mobile_push_credentials/​{push_credential_id}

push_credential_response = client.mobile_push_credentials.retrieve("0ccc7b76-4df3-4bca-a05a-3da1ecc389f0")

puts(push_credential_response)

Deletes a mobile push credential

Deletes a mobile push credential based on the given push_credential_id

DELETE /​mobile_push_credentials/​{push_credential_id}

result = client.mobile_push_credentials.delete("0ccc7b76-4df3-4bca-a05a-3da1ecc389f0")

puts(result)

List all credentials

List all On-demand Credentials.

GET /​telephony_credentials

page = client.telephony_credentials.list

puts(page)

Create a credential

Create a credential.

POST /​telephony_credentials — Required: connection_id

telephony_credential = client.telephony_credentials.create(connection_id: "1234567890")

puts(telephony_credential)

Get a credential

Get the details of an existing On-demand Credential.

GET /​telephony_credentials/​{id}

telephony_credential = client.telephony_credentials.retrieve("id")

puts(telephony_credential)

Update a credential

Update an existing credential.

PATCH /​telephony_credentials/​{id}

telephony_credential = client.telephony_credentials.update("id")

puts(telephony_credential)

Delete a credential

Delete an existing credential.

DELETE /​telephony_credentials/​{id}

telephony_credential = client.telephony_credentials.delete("id")

puts(telephony_credential)

Create an Access Token.

Create an Access Token (JWT) for the credential.

POST /​telephony_credentials/​{id}/​token

response = client.telephony_credentials.create_token("id")

puts(response)

More skills from team-telnyx

10dlc-registration logo
team-telnyx/telnyx-toolkit

10dlc-registration

Register for 10DLC as a sole proprietor to enable SMS messaging in the USA. Use when setting up A2P SMS, registering brands/campaigns, or assigning phone numbers for compliant US messaging. Requires Telnyx CLI.

3 0
View
telnyx-embeddings logo
team-telnyx/telnyx-toolkit

telnyx-embeddings

Text-to-vector embeddings and semantic search using Telnyx AI. Generate embedding vectors via an OpenAI-compatible API — no OpenAI or Google API keys required.

3 0
View
telnyx-rag logo
team-telnyx/telnyx-toolkit

telnyx-rag

Semantic search and Q&A over workspace files using Telnyx Storage + AI embeddings. Index your memory, knowledge, and skills for natural language retrieval and AI-powered answers.

3 0
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View