Skip to contentSkip to navigationSkip to topbar
Page toolsOn this pageProducts used
Looking for more inspiration?Visit the

21663: 'From' phone number routing configuration is incorrect


ERROR: 21663

error-21663 page anchor
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.

Possible causes

possible-causes page anchor
  • The From phone number is configured for IE1, but the message request was sent to the default US1 endpoint at api.twilio.com.
  • The From phone number is configured for US1, but the message request was sent to the IE1 endpoint at api.dublin.ie1.twilio.com.
  • The From phone number doesn't have an explicit non-US1 routing configuration, so requests sent to IE1 don't match the number's active routing.
  • Send the message request to the endpoint that matches the From phone number's routing Region. Use api.dublin.ie1.twilio.com for IE1 or api.twilio.com for US1.
  • 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 edge and region so the client targets the intended Region instead of falling back to US1.
  • If the number should send traffic from a different Region, update the phone number's routing configuration before retrying the request.

Additional resources

additional-resources page anchor