https://retellai.com/?utm_source=discord&utm_medium=seo logo
there is an error popping when i'm trying to updat...
# ❓・ai-evy-support
m
@AI Evy there is an error popping when i'm trying to update anything under my phone twilio number in retall ai
a
Thanks for tagging me @moustaphalchemist. I'll look through relevant sources and get back to you shortly.
### Answer When updating a Twilio phone number in Retell AI, you can use the Update Phone Number API endpoint [(1) ]() . The API requires authentication with your API key in the format "Bearer YOUR_API_KEY" . To update a phone number, you can modify several parameters including: -
inbound_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
Copy code
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) ]() .
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
​ To learn more, see the sources I considered: [[1] Update Phone Number](https://docs.retellai.com/api-references/update-phone-number) [[2] Discord message from @conect242004 on 2025-08-12](https://discord.com/channels/1186424376300679209/1294891368505937952/1404835721344450612) [[3] Importing French Number with Twilio: Error](https://discord.com/channels/1186424376300679209/1285278504711098432) ​
m
but why can't i update even the nickname of my phone number....
@AI Evy but why can't i update even the nickname of my phone number....
a
Thanks for the follow-up, @moustaphalchemist. I'll get back to you soon.
### Answer Based on the Retell AI documentation, updating a phone number nickname should be straightforward through the Update Phone Number API [(1) ]() . The
nickname
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 :
Copy code
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?
​ To learn more, see the sources I considered: [[1] Update Phone Number](https://docs.retellai.com/api-references/update-phone-number) [[2] Create Phone Number](https://docs.retellai.com/api-references/create-phone-number) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.