From and To parameters in the API Request should be of the same channel.
You are trying to send a message between different channels, eg. from an SMS capable number to a WhatsApp number.
Ensure From and To parameters are the same channel, eg. both are SMS or both are WhatsApp.