Categories
Create Organization
Add Your API
Docs
Log In
Sign Up
Twilio
FREE
By
serg.osipchuk
Updated 10 months ago
SMS
0.2
/
10
Popularity Score
59150ms
Latency
-
Success Rate
Endpoints
API Details
Discussions
Twilio API Documentation
Enable programmable SMS, voice, video and IP Messaging.
View API Details
POST
makeCall
POST
sendMms
POST
sendSms
POST
webhookEvent
POST
makeCall
Test Endpoint
This block allows you to make voice calls
Header Parameters
X-RapidAPI-Host
STRING
REQUIRED
X-RapidAPI-Key
STRING
REQUIRED
Required Parameters
accountSid
CREDENTIALS
REQUIRED
A 34 character string that uniquely identifies this account.
from
STRING
REQUIRED
The phone number or client identifier to use as the caller id. If using a phone number, it must be a Twilio number or a Verified outgoing caller id for your account.
url
STRING
REQUIRED
The fully qualified URL that should be consulted when the call connects. Just like when you set a URL on a phone number for handling inbound calls. See the Url Parameter section below for more details.
accountToken
CREDENTIALS
REQUIRED
The authorization token for this account.
to
STRING
REQUIRED
The phone number, SIP address or client identifier to call.
Optional Parameters
method
STRING
OPTIONAL
The HTTP method Twilio should use when making its request to the above Url parameter's value. Defaults to POST. If an ApplicationSid parameter is present, this parameter is ignored.
fallbackMethod
STRING
OPTIONAL
The HTTP method that Twilio should use to request the FallbackUrl. Must be either GET or POST. Defaults to POST. If an ApplicationSid parameter is present, this parameter is ignored.
record
BOOLEAN
OPTIONAL
Set this parameter to 'true' to record the entirety of a phone call.
sendDigits
STRING
OPTIONAL
A string of keys to dial after connecting to the number, maximum of 32 digits.
recordingStatusCallback
STRING
OPTIONAL
The recordingStatusCallback attribute takes an absolute URL as an argument.
statusCallbackMethod
STRING
OPTIONAL
The HTTP method Twilio should use when requesting the above URL. Defaults to POST. If an ApplicationSid parameter is present, this parameter is ignored.
statusCallbackEvent
STRING
OPTIONAL
The call progress events that Twilio will send webhooks on. Available values are initiated, ringing, answered, and completed.
fallbackUrl
STRING
OPTIONAL
A URL that Twilio will request if an error occurs requesting or executing the TwiML at Url. If an ApplicationSid parameter is present, this parameter is ignored.
applicationSid
STRING
OPTIONAL
Required if url not provided. The 34 character sid of the application Twilio should use to handle this phone call. If this parameter is present, Twilio will ignore all of the voice URLs passed and use the URLs set on the application.
recordingChannels
SELECT
OPTIONAL
Mono or dual. Set this parameter to specify the number of channels in the final recording. Defaults to 'mono'.
timeout
STRING
OPTIONAL
The integer number of seconds that Twilio should allow the phone to ring before assuming there is no answer.
statusCallback
STRING
OPTIONAL
A URL that Twilio will send asynchronous webhook requests to on every call event specified in the StatusCallbackEvent parameter. If no event is present, Twilio will send completed by default. If an ApplicationSid parameter is present, this parameter is ignored. URLs must contain a valid hostname.
recordingStatusCallbackMethod
STRING
OPTIONAL
The HTTP method Twilio should use when requesting the above URL. Defaults to POST
Code Snippet
(Node.js) Unirest
C
Libcurl
C#
RestSharp
Unirest
Go
NewRequest
Java
OkHttp
Unirest
JavaScript
jQuery
fetch
XMLHttpRequest
Node.js
HTTP
Request
Unirest
Axios
Objective-C
NSURLSession
Unirest
OCaml
CoHTTP
PHP
cURL
HTTP v2
Unirest/Request
Powershell
Invoke-WebRequest
Invoke-RestMethod
Python
http.client
Requests
Unirest
Ruby
net::http
Unirest
Shell
cURL
HTTPie
Wget
Swift
NSURLSession
RapidQL
RapidQL
Install SDK
Response Example
Schema
200
Home
SMS
Twilio
Rating: 5 - Votes: 4
Company
About Us
Blog
Careers
Team
Press
Contact
Marketplace
Machine Learning APIs
SMS APIs
Email APIs
Payment APIs
Food APIs
Explore All APIs
For Developers
Why RapidAPI
Docs: Consume APIs
Dashboard
For API Providers
How it Works
Docs: Add/Manage APIs
Provider Dashboard
© 2019 RapidAPI
Terms
Privacy
Install SDK for (Node.js)Unirest
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication
Authorize