Twilio SMS

PAID
By twilioOfficial
Updated a month 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
POSTUpdate a Phone Number

Update a phone number

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
SidSTRING
REQUIREDThe Twilio-provided string that uniquely identifies the IncomingPhoneNumber resource to update.
AccountSidSTRING
REQUIREDThe SID of the Account that created the IncomingPhoneNumber resource to update. For more information, see Exchanging Numbers Between Subaccounts.
Optional Parameters
trunkSidSTRING
OPTIONALThe SID of the Trunk we should use to handle phone calls to the phone number. If a trunk_sid is present, we ignore all of the voice urls and voice applications and use only those set on the Trunk. Setting a trunk_sid will automatically delete your voice_application_sid and vice versa.
statusCallbackMethodSTRING
OPTIONALThe HTTP method we should use to call status_callback. Can be: GET or POST and defaults to POST.
apiVersionSTRING
OPTIONALThe API version to use for incoming calls made to the phone number. The default is 2010-04-01.
friendlyNameSTRING
OPTIONALA descriptive string that you created to describe this phone number. It can be up to 64 characters long. By default, this is a formatted version of the phone number.
addressSidSTRING
OPTIONALThe SID of the Address resource we should associate with the phone number. Some regions require addresses to meet local regulations.
voiceCallerIdLookupBOOLEAN
OPTIONALWhether to lookup the caller's name from the CNAM database and post it to your app. Can be: true or false and defaults to false.
smsApplicationSidSTRING
OPTIONALThe SID of the application that should handle SMS messages sent to the number. If an sms_application_sid is present, we ignore all of the sms_*_url urls and use those set on the application.
identitySidSTRING
OPTIONALThe SID of the Identity resource that we should associate with the phone number. Some regions require an identity to meet local regulations.
statusCallbackSTRING
OPTIONALThe URL we should call using the status_callback_method to send status information to your application.
emergencyAddressSidSTRING
OPTIONALThe SID of the emergency address configuration to use for emergency calling from this phone number.
emergencyStatusSTRING
OPTIONALThe configuration status parameter that determines whether the phone number is enabled for emergency calling.
voiceApplicationSidSTRING
OPTIONALThe SID of the application we should use to handle phone calls to the phone number. If a voice_application_sid is present, we ignore all of the voice urls and use only those set on the application. Setting a voice_application_sid will automatically delete your trunk_sid and vice versa.
Code Snippet
Install SDK
Response ExampleSchema

Install SDK for (Node.js)Unirest

OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication