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

21266: 'To' and 'From' numbers cannot be the same

Twilio Messaging DocumentationMessaging

Description

description page anchor

You attempted to send an SMS, but the To phone number you supplied is the same as the From number.

Possible causes

possible-causes page anchor

You attempted to send an SMS from a Twilio number to itself (putting the same Twilio number in the To and From parameters).

Ensure you are not attempting to send a message from a Twilio number to itself.