Twilio SMS

PAID
By twilioOfficial
Updated 2 months ago
SMS
8.5/10
Popularity Score
7561ms
Latency
36%
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 Mobile Phone Numbers

Returns a list of available mobile phone numbers

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
CountryCodeSTRING
REQUIREDThe ISO-3166-1 country code of the country from which to read phone numbers.
AccountSidSTRING
REQUIREDThe SID of the Account requesting the AvailablePhoneNumber resources.
Optional Parameters
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.
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.
excludeAllAddressRequiredSTRING
OPTIONALWhether to exclude phone numbers that require an Address. Can be: true or false and the default is false.
excludeLocalAddressRequiredSTRING
OPTIONALWhether to exclude phone numbers that require a local Address. Can be: true or false and the default is false.
inLocalitySTRING
OPTIONALLimit results to a particular locality or city. Given a phone number, search within the same Locality as that number.
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.
smsEnabledSTRING
OPTIONALWhether the phone numbers can receive MMS messages. Can be: true or false.
distanceSTRING
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.
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.
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.
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.
areaCodeNUMBER
OPTIONALThe area code of the phone numbers to read. Applies to only phone numbers in the US and Canada.
betaSTRING
OPTIONALWhether to read phone numbers that are new to the Twilio platform. Can be: true or false and the default is true.
excludeForeignAddressRequiredSTRING
OPTIONALWhether to exclude phone numbers that require a foreign Address. Can be: true or false and the default is 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.
Code Snippet
Install SDK
Response ExampleSchema

Install SDK for (Node.js)Unirest

OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication