SolePurpose (Frizzy45)
03/23/2026, 9:12 AMAI Evy
03/23/2026, 9:13 AMAI Evy
03/23/2026, 9:13 AMAI Evy
03/23/2026, 9:13 AMjavascript
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: 'YOUR_RETELL_API_KEY',
}) ;
await client.agent.publish('16b980523634a6dc504898cda492e939') ;
Troubleshooting Steps:
1. Verify your agent ID is correct
2. Ensure your API key is valid and properly formatted as "Bearer YOUR_API_KEY"
3. Check that the agent exists and has a draft version ready to publish
4. Review any validation errors in your agent configuration before attempting to publish
The API can return several error codes including 400 (invalid request format) , 401 (authentication issues) , 404 (agent not found) , 422 (validation error) , or 500 (server error) .
If the issue persists after checking these items, I recommend:
- Visit [Contact Sales]()
- Visit [Documentation]()
Would you like a general answer based on my knowledge instead?AI Evy
03/23/2026, 9:13 AMSolePurpose (Frizzy45)
03/23/2026, 9:14 AMAI Evy
03/23/2026, 9:14 AMAI Evy
03/23/2026, 9:14 AMresponse_engine - must reference a valid LLM ID and version
- voice_id - must be a valid voice
- Required fields like language
Verify API Key Status:
Your API key might have been invalidated or needs regeneration [(2) ]() . Go to Settings → API keys to verify your key is active .
Identity Verification Issue:
One community member experienced publishing failures related to persona identity verification not completing successfully [(3) ]() . If you see a "Verify your identity to make outbound calls" button that hasn't disappeared, this could be blocking publishing . In that case, contact support@retellai.com .
Publishing Process:
When you publish an agent, it creates a new version and generates a new draft agent with a newer version [(4) ]() . The is_published field should change to true after successful publishing [(1) ]() .
Next Steps:
1. Verify your API key is still valid in Settings → API keys [(2) ]()
2. Check if there's an identity verification pending [(3) ]()
3. Review your agent configuration for any validation errors before publishing
4. If the issue persists, email support@retellai.com with your agent IDAI Evy
03/23/2026, 9:14 AMAI Evy
03/23/2026, 9:14 AMSolePurpose (Frizzy45)
03/24/2026, 6:23 AMSolePurpose (Frizzy45)
03/24/2026, 6:24 AMAI Evy
03/24/2026, 6:24 AMAI Evy
03/24/2026, 6:24 AMjavascript
{
"status": "error",
"message": "Invalid request format, please check API reference."
}
Checking via Dashboard:
Unfortunately, the available sources don't specify if the Dashboard UI displays detailed error codes when publishing fails through the interface. The error codes listed above are from the API documentation .
Recommendations:
1. If you're publishing through the Dashboard, check your browser's developer console (F12) for network errors that might show the actual API response
2. Try publishing via the API directly to see the specific error code and message
3. Use the Get Agent endpoint to verify your agent configuration before attempting to publish [(2) ]()
If the Dashboard isn't showing detailed error information, you may need to contact support@retellai.com with your agent ID to get specific details about why publishing is failing.AI Evy
03/24/2026, 6:24 AMAI Evy
03/24/2026, 6:24 AM