# 63031: Channels message cannot have same 'From' and 'To'

Log Type: APPLICATION

Log Level: ERROR

## Description

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}`.

### Possible causes

* Your API request sent the same channel address in both `From` and `To`.
* Your application copied a recipient address into `From` instead 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 in `From` and the recipient in `To`.
* You passed a specific `From` value while sending with a Messaging Service, and that sender value matched the destination address.

### Possible solutions

* Update your request so `From` and `To` contain different values.
* Set `From` to a sender that belongs to your Twilio account and is hosted within Twilio.
* Set `To` to the destination user's channel address in the correct channel format.
* For WhatsApp, use your approved sender address in `From` and the recipient's WhatsApp address in `To`.
* If you send with a Messaging Service, provide `MessagingServiceSid` and omit `From` so 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.

#### Additional resources

* [Messages resource](/docs/messaging/api/message-resource)
* [Twilio Messaging Channels](/docs/messaging/channels)
* [Test WhatsApp messaging with the Sandbox](/docs/whatsapp/sandbox)
