Choosing a 10DLC phone number by area code
When you request a 10 digit long code (10DLC) phone number, you can search for and choose a specific number instead of receiving a random assignment. You can search by area code or by a pattern within the phone number. You can also request an exact phone number. This feature is available for United States 10DLC phone numbers only.
Phone number selection works in two steps:
-
Search – Use the
ListAvailablePhoneNumbersAPI or the console to browse available 10DLC numbers filtered by area code or pattern. -
Request – Use the
RequestPhoneNumberAPI with the optionalNumberPreferenceparameter, or select a number in the console, to request a specific phone number.
Prerequisites
Before you can search for and choose a 10DLC phone number, you must have the following:
-
An approved 10DLC registered brand. For more information, see 10DLC brand registration form.
-
An approved 10DLC registered campaign associated with the brand. For more information, see 10DLC campaign registration form.
The phone number search returns numbers that are available through the aggregator associated with your 10DLC campaign registration. You do not need to specify an aggregator.
Search pattern types
You can search for available phone numbers using the following pattern types:
| Pattern type | Description | Example |
|---|---|---|
StartsWith |
Returns numbers that begin with the specified digits. Use this to search by area code. | Filter +1510 returns numbers in the 510 area code, such as
+15103921111. |
EndsWith |
Returns numbers that end with the specified digits. | Filter 1234 returns numbers ending in 1234, such as
+12025551234. |
Contains |
Returns numbers that contain the specified digits anywhere in the number. | Filter 555 returns numbers containing 555, such as
+15105559876. |
ExactMatch |
Requests a specific phone number. This type is only valid with the
RequestPhoneNumber API, not with
ListAvailablePhoneNumbers. |
Filter +15103921234 requests that exact number. |
Important considerations
-
Phone number availability is not guaranteed. A number shown in search results can be purchased by another customer before you request it. If this happens, request a different number or search again.
-
Search results are not a reservation. Numbers are not held for you between the search step and the request step.
-
Search results return a maximum of 10 numbers per page. To retrieve additional pages of results, use the
NextTokenparameter. -
If you do not specify a
NumberPreferencewhen callingRequestPhoneNumber, the existing behavior is unchanged and AWS End User Messaging SMS assigns a phone number automatically. -
This feature is available for United States 10DLC (
TEN_DLC) phone numbers only.
Search for and request a 10DLC phone number
You can search for and request a specific 10DLC phone number using either the AWS End User Messaging SMS console or the AWS CLI.