Twilio SMS

PAID
By twilioOfficial
Updated 3 months ago
SMS
8.9/10
Popularity
6774ms
Latency
47%
Success Rate

Twilio SMS API Documentation

Twilio's Programmable SMS API helps you add robust messaging capabilities to your applications. Please read pricing details carefully.

View API Details
GETFetch an Account Resource
Message Resource
POSTUpdate a Message Resource
GETFetch Multiple Message Resources
GETFetch a Message Resource
DELETEDelete a Message Resource
POSTSend SMS (Create a Message Resource)
Media Resource
GETRead Multiple Media Resources
GETFetch a Media Resource
DELETEDelete a Media Resouce
Pricing
GETMessaging Pricing by Country
Service Resource
POSTUpdate a Service Resource
GETRead Multiple Service Resources
DELETEDelete a Service Resource
GETFetch a Service Resource
POSTCreate a Service Resource
Phone Numbers
GETAvailable Mobile Phone Numbers
GETFetch a Phone Number
GETAvailable Local Phone Numbers
POSTUpdate a Phone Number
DELETEDelete a Phone Number
GETFetch Multiple Phone Numbers
POSTBuy a Phone Number
GETAvailable Local Phone Numbers

Returns a list of available local phone numbers

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
AccountSidSTRING
REQUIREDThe SID of the Account requesting the AvailablePhoneNumber resources.
CountryCodeSTRING
REQUIREDThe ISO-3166-1 country code of the country from which to read phone numbers.
Optional Parameters
areaCodeNUMBER
OPTIONALThe area code of the phone numbers to read. Applies to only phone numbers in the US and Canada.
inPostalCodeSTRING
OPTIONALLimit results to a particular postal code. Given a phone number, search within the same postal code as that number. Applies to only phone numbers in the US and Canada.
smsEnabledBOOLEAN
OPTIONALWhether the phone numbers can receive text messages. Can be: true or false.
inRegionSTRING
OPTIONALLimit results to a particular region, state, or province. Given a phone number, search within the same region as that number. Applies to only phone numbers in the US and Canada.
inRateCenterSTRING
OPTIONALLimit results to a specific rate center, or given a phone number search within the same rate center as that number. Requires in_lata to be set as well. Applies to only phone numbers in the US and Canada.
nearLatLongSTRING
OPTIONALGiven a latitude/longitude pair lat,long find geographically close numbers within distance miles. Applies to only phone numbers in the US and Canada.
inLocalitySTRING
OPTIONALLimit results to a particular locality or city. Given a phone number, search within the same Locality as that number.
excludeForeignAddressRequiredBOOLEAN
OPTIONALWhether to exclude phone numbers that require a foreign Address. Can be: true or false and the default is false.
distanceNUMBER
OPTIONALThe search radius, in miles, for a near_ query. Can be up to 500 and the default is 25. Applies to only phone numbers in the US and Canada.
excludeAllAddressRequiredBOOLEAN
OPTIONALWhether to exclude phone numbers that require an Address. Can be: true or false and the default is false.
mmsEnabledBOOLEAN
OPTIONALWhether the phone numbers can receive MMS messages. Can be: true or false.
inLataSTRING
OPTIONALLimit results to a specific local access and transport area (LATA). Given a phone number, search within the same LATA as that number. Applies to only phone numbers in the US and Canada.
excludeLocalAddressRequiredBOOLEAN
OPTIONALWhether to exclude phone numbers that require a local Address. Can be: true or false and the default is false.
nearNumberSTRING
OPTIONALGiven a phone number, find a geographically close number within distance miles. Distance defaults to 25 miles. Applies to only phone numbers in the US and Canada.
betaBOOLEAN
OPTIONALWhether to read phone numbers that are new to the Twilio platform. Can be: true or false and the default is true.
containsSTRING
OPTIONALThe pattern on which to match phone numbers. Valid characters are *, 0-9, a-z, and A-Z. The * character matches any single digit. For examples, see Example 2 and Example 3. If specified, this value must have at least two characters.
Code Snippet
Install SDK
Response ExampleSchema

Install SDK for (Node.js)Unirest

OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication