https://retellai.com/?utm_source=discord&utm_medium=seo logo
How do I generate a secret key
# ❓・ai-evy-support
f
@AI Evy How do I generate a secret key
a
Thanks for tagging me @frank4106sf. I'll look through relevant sources and get back to you shortly.
### Answer Based on the available sources, here's how to generate a secret key for use with Retell AI's public key security features: ## For Google reCAPTCHA Secret Key To generate a secret key for Google reCAPTCHA v3 protection with your Retell AI public key: [(1) ](

▾

) [(2) ]() 1. Go to [Google's reCAPTCHA page]() and set up reCAPTCHA [(1) ](

▾

) 2. After setup, you'll receive both a site key and a secret key 3. In Retell AI, navigate to Settings → Keys → Public Keys 4. Add or edit a public key [(1) ](

▾

) [(2) ]() 5. Add your allowed domains 6. Toggle on *Abuse Prevention (Google reCAPTCHA) * [(2) ]() 7. Paste your secret key (not the site key) from Google into the reCAPTCHA Secret Key field [(1) ](

▾

) [(2) ]() 8. Click Save [(1) ](

▾

) Note: When creating a public key name, use short, simple names like "production-key" to avoid validation errors [(3) ]() The secret key is specifically for enabling reCAPTCHA protection on your public keys used with the Retell Chat Widget [(2) ]()
​ To learn more, see the sources I considered: [[1] Retell AI Public Key Security Upgrade](

https://www.youtube.com/watch?v=I-gPtqFaJxY▾

) [[2] Public Keys](https://docs.retellai.com/accounts/public-keys) [[3] I can't create a public key, I keep getting "Invalid public key name."](https://discord.com/channels/1186424376300679209/1421124016264970322) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
f
How do i create a key that stars with retell_sk_
@AI Evy How do I create a key that starts with retell_sk_
a
Thanks for the follow-up, @frank4106sf. I'll get back to you soon.
### Answer Based on the available sources, I don't have specific documentation about creating keys that start with
retell_sk_
. However, I can see from the sources that there are different types of keys in Retell AI: - Public Keys are used for the Retell Chat Widget and are safe to expose in client-side code [(1) ]() - API Keys are mentioned for server-to-server communication - Secret Keys (like
key_57455b2cb601a474e328f92e25ac
) appear in webhook signature verification examples [(2) ]() The
retell_sk_
prefix suggests you're looking for a secret/API key rather than a public key. For server-to-server API authentication, you would typically use API keys rather than public keys [(1) ]() . Would you like a general answer about API key creation based on my knowledge? Alternatively, here are potentially helpful resources: - [Public Keys]() For specific guidance on creating
retell_sk_
prefixed keys, I recommend visiting [Contact Sales]() or checking [) .
​ To learn more, see the sources I considered: [[1] Public Keys](https://docs.retellai.com/accounts/public-keys) [[2] MCP error](https://discord.com/channels/1186424376300679209/1399534474051457135) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
f
@AI Evy I need to generate a server/secret API key (prefix retell_sk_…) for backend REST API calls (/v1/calls), but the UI only allows key_…. Could you enable it for my workspace?
a
Thanks for the follow-up, @frank4106sf. I'll get back to you soon.
### Answer Based on the sources, API keys are created through the dashboard in the "API Keys" section under System "Settings" [(1) ]() . To create a new API key : 1. Click the "Add" button 2. Give your key a descriptive name to identify its purpose These API keys are used to authenticate REST API requests by including them in the request headers [(2) ]() :
Copy code
Authorization: Bearer YOUR_API_KEY
The sources indicate that API keys are used for REST API endpoints, SDK integrations, and webhook endpoints . Each workspace can have multiple API keys, all sharing the same permission level . However, I don't have specific information in the available sources about the
retell_sk_
prefix format you're mentioning or any workspace-specific enablement requirements for different key formats. The documentation shows authentication examples using
YOUR_RETELL_API_KEY
and
YOUR_API_KEY
formats [(3) ]() [(4) ]() . For workspace-specific configuration or if you're experiencing limitations with key generation, I recommend: - Visit [Contact Sales]() - Visit [)
​ To learn more, see the sources I considered: [[1] Manage API Keys](https://docs.retellai.com/accounts/manage-api-keys) [[2] API Key Overview](https://docs.retellai.com/accounts/api-keys-overview) [[3] Create Phone Call](https://docs.retellai.com/api-references/create-phone-call) [[4] Register Phone Call](https://docs.retellai.com/api-references/register-phone-call) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.