This is the API V2 documentation. To switch out of beta revert back to our API V1.

Open SidemenuDocs
Docs
Close Sidemenu
WebRTC

WebRTC

The WebRTC platform allows users to embed real-time communication into their applications.

Get Started with the Telnyx WebRTC SDKget-started-with-the-telnyx-webrtc-sdk

Telnyx WebRTC is enabled using Credential Connections. You can set up several connections to differentiate between use cases. A Credential Connection groups configuration for your calls, such as which codecs to use (tip: enable VP8 coded for video).

A Credential Connection will be used to set up On Demand Credentials which provide expiring telephony credentials sharing the connection configuration. A JWT (JSON Web Token) can be created for these On Demand Credentials to be used by client-facing applications using a WebRTC SDK.

Every On Demand Credential can be used to receive Inbound Calls using SIP addresses and for placing Outbound Calls.

To create a Credential Connection, On Demand Credentials and JWTs, use our HTTPS API and authenticate using the API Key associated with your Mission Control account under API Keys. Find out more about authenticating with API V2 here.

Adding WebRTC functionality to your app can be done using one of our WebRTC SDKs. For testing purposes we provide a sample application that uses our Javascript SDKTelnyx Developers. With this application you can authenticate to Telnyx WebRTC servers using either a SIP username/password or a JWT and be able to receive and place calls using audio and video.

Glossaryglossary

Credential Connection Used to configure inbound/outbound calls for one or more credential.
Outbound Voice Profile Used to configure outbound traffic and billing for one or more phone numbers.
On Demand Credential An expiring SIP credential associated with a Connection, created via API.
WebRTC SDK A library used to provide real-time communication features to your application using Telnyx WebRTC platform.