Create destination alpha sender
A Messaging Service resource to add, fetch or remove Destination and Default Alpha Sender IDs from a Messaging Service. Destination Alpha Sender can send to a particular ISO country code. Default Alpha Senders can send to all countries.
Path parameters
-
The SID of the Service to create the resource under.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^MG[0-9a-fA-F]{32}$
.
Body
-
The Alphanumeric Sender ID string. Can be up to 11 characters long. Valid characters are A-Z, a-z, 0-9, space, hyphen
-
, plus+
, underscore_
and ampersand&
. This value cannot contain only numbers. -
The Optional Two Character ISO Country Code the Alphanumeric Sender ID will be used for. If the IsoCountryCode is not provided, a default Alpha Sender will be created that can be used across all countries.
curl \
--request POST 'https://messaging.twilio.com/v1/Services/{ServiceSid}/DestinationAlphaSenders' \
--user "username:password" \
--header "Content-Type: application/x-www-form-urlencoded" \
--data 'AlphaSender=Twilio&IsoCountryCode=FR'
{"AlphaSender"=>"Twilio", "IsoCountryCode"=>"FR"}
{
"sid": "AIaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"url": "https://messaging.twilio.com/v1/Services/MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/DestinationAlphaSenders/AIaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"service_sid": "MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"alpha_sender": "Twilio",
"capabilities": [
"SMS"
],
"date_created": "2015-07-30T20:12:31Z",
"date_updated": "2015-07-30T20:12:33Z",
"iso_country_code": "FR"
}