63031: Channels message cannot have same 'From' and 'To'
MESSAGING
ERROR
Twilio returns this error when your channel message request uses the same address for From and To. Use a sender address for From and a recipient address for To. For channel messaging, Twilio expects channel-specific addresses such as whatsapp:{phone_number}, messenger:{messenger_page_id}, messenger:{messenger_user_id}, or rcs:{unique_id}.
- Your API request sent the same channel address in both
FromandTo. - Your application copied a recipient address into
Frominstead of using your Twilio-hosted channel sender. - For WhatsApp, your request used the same
whatsapp:address for both parameters instead of using your approved WhatsApp sender inFromand the recipient inTo. - You passed a specific
Fromvalue while sending with a Messaging Service, and that sender value matched the destination address.
- Update your request so
FromandTocontain different values. - Set
Fromto a sender that belongs to your Twilio account and is hosted within Twilio. - Set
Toto the destination user's channel address in the correct channel format. - For WhatsApp, use your approved sender address in
Fromand the recipient's WhatsApp address inTo. - If you send with a Messaging Service, provide
MessagingServiceSidand omitFromso Twilio can select a sender from your Sender Pool. - Verify that each channel address uses the correct prefix and format before you send the request.