Public keys are specifically designed for authenticating the Retell Chat Widget when embedded on your website. Unlike API keys, which should never be exposed in client-side code, public keys are safe to include in frontend applications for this specific purpose.Public keys are used exclusively for:
For security reasons, public keys are restricted to specific domains. This prevents unauthorized use of your public key on other websites.To configure allowed domains:
Navigate to the Public Keys section in your Retell dashboard
Click on the public key you want to configure
Add the domains where your public key can be used (e.g., example.com, app.example.com)
Save your changes
Testing on localhostTo test your integration locally, add localhost to your allowed domains list. This enables development and testing on your local machine before deploying to production.