As of 2024, Twilio has released a portability api: https://www.twilio.com/docs/phone-numbers/port-in/portability-api