Twilio SMS
Send SMS, MMS, WhatsApp messages and manage calls
Integrate Twilio into the workflow. Send SMS, MMS, WhatsApp messages. Make and manage calls, look up phone numbers, and send verification codes.
| Parameter | Type | Required | Description |
|---|
phoneNumbers | string | Yes | Phone numbers to send the message to in E.164 format (e.g., +15551234567), separated by newlines |
message | string | Yes | No description |
accountSid | string | Yes | No description |
authToken | string | Yes | No description |
fromNumber | string | Yes | Twilio phone number to send the message from in E.164 format (e.g., +15551234567) |
| Parameter | Type | Description |
|---|
success | boolean | SMS send success status |
messageId | string | Unique Twilio message identifier (SID) |
status | string | Message delivery status from Twilio |
fromNumber | string | Phone number message was sent from |
toNumber | string | Phone number message was sent to |
| Parameter | Type | Required | Description |
|---|
to | string | Yes | No description |
from | string | Yes | No description |
url | string | No | No description |
statusCallback | string | No | No description |
timeout | number | No | No description |
accountSid | string | Yes | No description |
authToken | string | Yes | No description |
| Parameter | Type | Description |
|---|
success | boolean | Whether the call was successfully initiated |
callSid | string | Unique identifier for the call |
status | string | Call status (queued, ringing, in-progress, completed) |
direction | string | Call direction (outbound-api) |
from | string | Phone number the call is from |
to | string | Phone number the call is to |
duration | number | Call duration in seconds |
price | string | Cost of the call |
priceUnit | string | Currency of the price |
error | string | Error message if call failed |
| Parameter | Type | Required | Description |
|---|
to | string | Yes | No description |
from | string | Yes | No description |
body | string | No | No description |
mediaUrl | string | No | No description |
accountSid | string | Yes | No description |
authToken | string | Yes | No description |
| Parameter | Type | Description |
|---|
success | boolean | MMS send success status |
messageId | string | Unique Twilio message identifier (SID) |
status | string | Message delivery status from Twilio |
numMedia | number | Number of media files attached |
| Parameter | Type | Required | Description |
|---|
to | string | Yes | No description |
from | string | Yes | No description |
body | string | No | No description |
mediaUrl | string | No | No description |
accountSid | string | Yes | No description |
authToken | string | Yes | No description |
| Parameter | Type | Description |
|---|
success | boolean | WhatsApp message send success status |
messageId | string | Unique Twilio message identifier (SID) |
status | string | Message delivery status from Twilio |
numMedia | number | Number of media files attached |
| Parameter | Type | Required | Description |
|---|
phoneNumber | string | Yes | No description |
countryCode | string | No | No description |
type | string | No | No description |
accountSid | string | Yes | No description |
authToken | string | Yes | No description |
| Parameter | Type | Description |
|---|
success | boolean | Lookup success status |
phoneNumber | string | Phone number in E.164 format |
nationalFormat | string | Phone number in national format |
countryCode | string | ISO country code |
carrier | json | Carrier information if requested |
callerName | json | Caller name information if requested |
valid | boolean | Whether the phone number is valid |
validationErrors | json | Validation error details |
url | string | The URL of this phone number resource |
| Parameter | Type | Required | Description |
|---|
to | string | Yes | No description |
channel | string | No | No description |
serviceSid | string | Yes | No description |
accountSid | string | Yes | No description |
authToken | string | Yes | No description |
| Parameter | Type | Description |
|---|
success | boolean | Verification send success status |
sid | string | Verification SID |
status | string | Verification status (pending, approved, canceled) |
to | string | Recipient phone number or email |
channel | string | Verification channel used (sms, call, email) |
valid | boolean | Whether the verification request was valid |
sendCodeAttempts | json | Information about the code delivery attempts |
| Parameter | Type | Required | Description |
|---|
to | string | Yes | No description |
code | string | Yes | No description |
serviceSid | string | Yes | No description |
accountSid | string | Yes | No description |
authToken | string | Yes | No description |
| Parameter | Type | Description |
|---|
success | boolean | Verification check success status |
sid | string | Verification SID |
status | string | Verification status (pending, approved) |
to | string | Recipient phone number or email |
channel | string | Channel used (sms, call, email) |
valid | boolean | Whether the verification code was valid |
| Parameter | Type | Required | Description |
|---|
callSid | string | Yes | No description |
accountSid | string | Yes | No description |
authToken | string | Yes | No description |
| Parameter | Type | Description |
|---|
success | boolean | Get call success status |
callSid | string | Unique identifier for the call |
from | string | Phone number the call originated from |
to | string | Phone number called |
status | string | Call status |
direction | string | Call direction (inbound, outbound-api, etc.) |
duration | number | Call duration in seconds |
price | string | Cost of the call |
priceUnit | string | Currency of the price |
startTime | string | Call start time |
endTime | string | Call end time |
dateCreated | string | When the call resource was created |
dateUpdated | string | When the call resource was last updated |
answeredBy | string | How the call was answered (human, machine) |
forwardedFrom | string | Phone number the call was forwarded from |
| Parameter | Type | Required | Description |
|---|
from | string | No | No description |
to | string | No | No description |
status | string | No | No description |
startTime | string | No | No description |
accountSid | string | Yes | No description |
authToken | string | Yes | No description |
| Parameter | Type | Description |
|---|
success | boolean | List calls success status |
calls | json | Array of call records |
total | number | Total number of calls returned |
pageSize | number | Number of calls per page |
page | number | Current page number |
nextPageUri | string | URI for the next page of results |