5

I am trying to send an SMS with Twilio using the alphanumeric 'from' address. I'm in Australia, sending to an Australian mobile number. My cURL request looks like this:

curl -X POST 'https://api.twilio.com/2010-04-01/Accounts/<Account SID>/Messages.json' \
--data-urlencode 'To=+614XXXXXXXX'  \
--data-urlencode 'From=Test'  \
--data-urlencode 'Body=Test' \
-u <Account SID>:<Auth Token>

The response I am receiving is:

{
    "code": 21212, 
    "message": "The 'From' number Test is not a valid phone number, shortcode, or alphanumeric sender ID.", 
    "more_info": "https://www.twilio.com/docs/errors/21212", 
    "status": 400
}

I've tried a number of different alphanumeric sender IDs and none have been successful. My sender ID does appear to meet the [a-zA-Z0-9 ] with max length 11 and at least 1 alpha character requirement. I've double checked my Account SID and Auth Token as well as the ability to send Alphanumeric SMS within Australia. I've also verified I'm not accidentally using my Test code incase that would have any effect. My account also does have credit on it.

Thanks in advance for any insight you can offer :)

Megan Speir
  • 3,745
  • 1
  • 15
  • 25
dave
  • 1,127
  • 2
  • 10
  • 26

1 Answers1

7

Twilio developer evangelist here.

You're doing everything right for sending a message using an alphanumeric sender ID. However, in order to get your account setup for sending these messages you need to contact support and request your account is enabled to use alphanumeric sender IDs.

Let me know if that helps at all.

philnash
  • 70,667
  • 10
  • 60
  • 88
  • We have got the permission fromTwilio but still unable to send Message using Alphanumeric ID. Can you please suggest what else we can do in this case? – jitendra Nov 17 '16 at 07:25
  • @jitendra I'd like to help, but I need to see your code. Or, is it possible that you are trying to send messages using an alpha ID to a country that doesn't support it? – philnash Nov 20 '16 at 12:37
  • Thanx for your valuable reply. I was trying to use Alphanumeric for US and India. For the US I found it doesn't support. But for India, it supports but it need registration. I want to know that what is this extra permission/registration on Country Level and How can we get it? – jitendra Nov 21 '16 at 08:38
  • If you need to register then get in touch with help@twilio.com and they can help you out. – philnash Nov 21 '16 at 08:39