https://retellai.com/?utm_source=discord&utm_medium=seo logo
I am getting this error when trying to update my p...
# ❓・ai-evy-support
e
@AI Evy I am getting this error when trying to update my phone number, which has SMS enabled, to use a chat agent I have created as the Inbound SMS agent. I also get the same error trying to add any chat agent to the Outbound SMS Agent: 3913-86ffa4a5047698d1.js:1 PATCH https://api.retellai.com/update-phone-number/+{phone number} 404 (Not Found) (anonymous) @ 3913-86ffa4a5047698d1.js:1 xhr @ 3913-86ffa4a5047698d1.js:1 tn @ 3913-86ffa4a5047698d1.js:1 _request @ 3913-86ffa4a5047698d1.js:1 request @ 3913-86ffa4a5047698d1.js:1 (anonymous) @ 3913-86ffa4a5047698d1.js:1 (anonymous) @ 3913-86ffa4a5047698d1.js:1 tw @ 4158-a60adb91a763067e.js:1 eU @ page-d544e3486f40cbd0.js:1 onAgentChange @ page-d544e3486f40cbd0.js:1 onSelect @ page-d544e3486f40cbd0.js:1 e.addEventListener.once @ 8248-c903162cf71b5d90.js:1
a
Thanks for tagging me @elders7130. I'll look through relevant sources and get back to you shortly.
​ To learn more, see the sources I considered: [[1] Update Phone Number](https://docs.retellai.com/api-references/update-phone-number) [[2] Get Phone Number](https://docs.retellai.com/api-references/get-phone-number) [[3] List Phone Numbers](https://docs.retellai.com/api-references/list-phone-numbers) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
### Answer The 404 error you're encountering suggests the phone number endpoint isn't being found. Based on the Update Phone Number API documentation [(1) ]() , the correct endpoint format should be:
Copy code
PATCH /update-phone-number/{phone_number}
The phone number parameter should be in E.164 format (+country code, then number with no space, no special characters) . In your case,
+15204165449
appears to be correctly formatted . A few things to check: 1. **API Authentication**: Ensure your request includes the proper Authorization header with format "Bearer YOUR_API_KEY" 2. **Phone Number Verification**: Verify the phone number exists in your account by using the Get Phone Number endpoint [(2) ]() or List Phone Numbers endpoint [(3) ]() first 3. **Request Body Format**: The update request should include the appropriate fields in the request body as application/json [(1) ]() Since you're specifically trying to update SMS agent assignments, make sure you're including the correct agent IDs in your request body for the inbound and outbound agent configurations . If the phone number exists but you're still getting a 404, this might be a platform-specific issue that would be best addressed through direct support channels.
e
I am trying to add it directly from the dashboard. the UI shows this when I try to add an SMS agent: Error Failed to update agent, please try again.
@AI Evy I am trying to add it directly from the dashboard. the UI shows this when I try to add an SMS agent: Error Failed to update agent, please try again.
a
Thanks for the follow-up, @elders7130. I'll get back to you soon.
### Answer The "Failed to update agent, please try again" error you're experiencing in the dashboard is a known issue that has been reported by other users [(1) ]() [(2) ]() . According to a recent report from the Retell AI team, this was identified as a bug that affected the ability to assign phone numbers to agents through the dashboard interface [(1) ]() . The issue was acknowledged and a fix was pushed, with the team indicating it should be resolved within 30 minutes of the fix deployment . Another user also reported a similar error when "assigning a twilio number to a text agent" [(2) ]() , which suggests this may be related to SMS/text agent assignments specifically. Since this appears to be a platform bug rather than a configuration issue on your end, I'd recommend: 1. Wait a bit and try again, as the fix may already be deployed 2. If the issue persists, contact support directly as this seems to be a known platform issue that requires backend attention Visit [Contact Sales]() or [) for direct support.
​ To learn more, see the sources I considered: [[1] Error: I can't assign a phone number to an Agent](https://discord.com/channels/1186424376300679209/1361308023624175756) [[2] Discord message from @conect242004 on 2025-08-12](https://discord.com/channels/1186424376300679209/1294891368505937952/1404835721344450612) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.