Hi. I'm trying to use the whatsapp api but when I send a (one-way) message, it gives me the following error: "The 'From' number +1669******* is not a valid phone number, shortcode, or alphanumeric sender ID." But my number is a valid 10-digit verified number that's working fine for the sms api. Can someone help me out here?
"The 'From' number +1669******* is not a valid phone number, shortcode, or alphanumeric sender ID."
If you are using the WhatsApp API then you need to send the message from a WhatsApp number. WhatsApp numbers are prefixed with whatsapp: too.
whatsapp:
Check out the WhatsApp sandbox in the Twilio console and try again with the WhatsApp sandbox number.
Let me know how you get on.
Thank you so much for your reply. I already tried that in my terminal but then I get the error:
Twilio could not find a Channel with the specified From address
I am also providing the authorization token and accountSid.
Have you been through the full WhatsApp sandbox setup?
yes.
Can you share the code you're using? My DEV connect chat is open if you want to share that privately or in more real time.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi. I'm trying to use the whatsapp api but when I send a (one-way) message, it gives me the following error:
"The 'From' number +1669******* is not a valid phone number, shortcode, or alphanumeric sender ID."But my number is a valid 10-digit verified number that's working fine for the sms api. Can someone help me out here?
If you are using the WhatsApp API then you need to send the message from a WhatsApp number. WhatsApp numbers are prefixed with
whatsapp:too.Check out the WhatsApp sandbox in the Twilio console and try again with the WhatsApp sandbox number.
Let me know how you get on.
Thank you so much for your reply. I already tried that in my terminal but then I get the error:
I am also providing the authorization token and accountSid.
Have you been through the full WhatsApp sandbox setup?
yes.
Can you share the code you're using? My DEV connect chat is open if you want to share that privately or in more real time.