21663: 'From' phone number routing configuration is incorrect
MESSAGING
ERROR
This error occurs when the From phone number's routing configuration doesn't match the Twilio Region used for the outbound Messaging API request. Twilio phone numbers are global resources, but each phone number can have a distinct configuration in each Region. If no specific routing is set, US1 is used by default.
- The
Fromphone number is configured forIE1, but the message request was sent to the defaultUS1endpoint atapi.twilio.com. - The
Fromphone number is configured forUS1, but the message request was sent to theIE1endpoint atapi.dublin.ie1.twilio.com. - The
Fromphone number doesn't have an explicit non-US1routing configuration, so requests sent toIE1don't match the number's active routing.
- Send the message request to the endpoint that matches the
Fromphone number's routing Region. Useapi.dublin.ie1.twilio.comforIE1orapi.twilio.comforUS1. - Review the phone number's regional configuration in Console and make sure the number is configured in the Region where you want to send Messaging traffic.
- If you use a Twilio server-side SDK, set both
edgeandregionso the client targets the intended Region instead of falling back toUS1. - If the number should send traffic from a different Region, update the phone number's routing configuration before retrying the request.