In order to use watchRTC, you’ll need a special API key for it.
This API key is used to associate the SDK with your account.
To create and use an API key, follow these steps:
#1 – Enable watchRTC
If you created your own evaluation account in testRTC, then watchRTC isn’t enabled for you by default.
You will need to approach our support asking for such access. You can do that by submitting a support ticket or by using the chat widget. At that point, we will be asking you of your requirements, nature of the application, etc.
How do you know if watchRTC is enabled in your account? The watchRTC sidebar should be visible and open to you:
#2 – Set an API key
Now that your account is enabled, you can create your API key.
In the sidebar, select Settings | watchRTC and find the API key field.
Click on the Regenerate button and place the API key shown in your watchRTC SDK initialization sequence.
#3 – Define domains being collected
We use a configuration of enabled domains. This makes sure that your watchRTC API key isn’t abused to collect data for others. To configure these domains, you can submit a support ticket, indicating which watchRTC domains you wish to collect data from.
When the watchRTC SDK is initialized, the server will check to make sure the page watchRTC is executed on is from a valid domain.
- Domain names are provided as substrings. If your app for example has WebRTC sessions created on *.myapp.com, then providing us with myapp.com will catch all of its subdomains as well
- On the Settings | watchRTC configuration page you can see the domains that are approved for your watchRTC SDK