crcdlx
08/01/2025, 10:51 PMAI Evy
08/01/2025, 10:51 PMAI Evy
08/01/2025, 10:51 PMAI Evy
08/01/2025, 10:51 PMAI Evy
08/01/2025, 10:51 PMcrcdlx
08/01/2025, 10:52 PMcrcdlx
08/01/2025, 10:52 PMAI Evy
08/01/2025, 10:52 PMAI Evy
08/01/2025, 10:53 PMjavascript
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: 'YOUR_RETELL_API_KEY',
}) ;
await client.phoneNumber.delete('+14157774444') ;
The API uses a DELETE request to /delete-phone-number/{phone_number} where the phone number must be in E.164 format .
If you're experiencing internal server errors, this could be related to TTS provider issues as mentioned in the Discord discussions [(2) ]() . According to one support response, if the voice you select goes down, Retell switches to a fallback voice, and if the fallback also fails, the system returns a 500 Internal Server Error .
For troubleshooting internal server errors:
- Check the Retell Status page for any TTS provider outages
- Ensure your API key is correctly formatted as "Bearer YOUR_API_KEY" [(1) ]()
- Verify the phone number is in the correct E.164 format
If the issue persists, you can contact support:
- Visit [Contact Sales]()
- Visit [)
Would you like me to provide a general answer based on my knowledge instead?AI Evy
08/01/2025, 10:53 PMAI Evy
08/01/2025, 10:53 PM