21635: 'To' number cannot be a landline
MESSAGING
ERROR
This error occurs when you attempt to send an SMS message to a To number that is identified as a landline. In countries where Twilio does not attempt SMS delivery to landlines, the API rejects the request with this error.
- The destination
Tonumber is a landline. - You attempted to send an SMS to a landline in a country where Twilio blocks landline delivery attempts instead of sending the message to the carrier.
- Confirm that the destination number is not a landline by checking it with the Lookup API.
- Validate recipient numbers before sending so that your application only sends SMS to numbers that can receive text messages.
- If you still want to attempt delivery where supported, include the
ForceDeliveryAPI parameter in your Message request. This does not guarantee that the recipient can receive the message. - Review how landline delivery is handled for the recipient's country before retrying. For landline numbers in the US, Canada, and the UK, Twilio may attempt delivery. In other countries, Twilio returns 21635.