moustaphalchemist
08/27/2025, 2:19 AMAI Evy
08/27/2025, 2:19 AMAI Evy
08/27/2025, 2:19 AMinbound_agent_id - Agent for inbound calls
- outbound_agent_id - Agent for outbound calls
- inbound_agent_version and outbound_agent_version - Specific agent versions
- nickname - Reference name for the number
- inbound_webhook_url - Webhook for inbound call customization
javascript
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: 'YOUR_RETELL_API_KEY',
}) ;
Based on community discussions, some users have experienced similar update errors with Twilio numbers [(2) ]() . One user reported getting "Failed to update agent, please try again..." when trying to assign a Twilio number to a text agent .
To troubleshoot your update error:
1. Verify your API authentication is correct [(1) ]()
2. Ensure the phone number is in E.164 format (+country code, no spaces or special characters)
3. Check that all required parameters are properly formatted
If the issue persists, you may want to check if your number is properly imported and visible in your Retell AI dashboard, as one user found their number wasn't showing in the database [(3) ]() .AI Evy
08/27/2025, 2:19 AMAI Evy
08/27/2025, 2:19 AMmoustaphalchemist
08/27/2025, 2:24 AMmoustaphalchemist
08/27/2025, 2:25 AMAI Evy
08/27/2025, 2:25 AMAI Evy
08/27/2025, 2:25 AMnickname parameter is optional and is described as "for your reference only" .
Here are potential reasons why the nickname update might be failing:
1. Authentication Issues
The API requires proper authentication with the header format "Bearer YOUR_API_KEY" . Verify your API key is correct and properly formatted.
2. Phone Number Format
The phone number must be in E.164 format (+country code, then number with no space, no special characters) as the unique identifier . For example: "+14157774444".
3. Request Format
The nickname should be sent as a string in the request body :
javascript
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: 'YOUR_RETELL_API_KEY',
}) ;
[(2) ]()
4. Phone Number Type Compatibility
Since you mentioned it's a Twilio number, ensure the phone number type is "retell-twilio" [(1) ]() . The documentation shows this is a valid phone number type for Retell AI.
5. API Endpoint Verification
Make sure you're using the correct PATCH endpoint with the phone number as a path parameter .
If you're still experiencing issues with even simple nickname updates, this suggests there might be a deeper integration issue with your Twilio number setup or API authentication.
For account-level issues that persist despite following the documentation, I'd recommend:
- Visit [Contact Sales]()
- Visit [)
Would you like a general answer based on my knowledge instead?AI Evy
08/27/2025, 2:25 AMAI Evy
08/27/2025, 2:25 AM