TWILIO.SMS.SEND
 This is a premium feature.
info
This function is experimental and subject to change or review.
Sends a SMS message to specified phone number. In its simplest form only text and recipient number are required. But for more advanced settings it is also possible to pass a JSON object containing additional parameters. Please refer to https://www.twilio.com/docs/sms/send-messages for more information about available and supported options (as of 2021-07-30).
Syntax
=TWILIO.SMS.SEND(APIKey, TextOrJSON, [ToContact], [FromContact], [ResponseTarget])
Arguments
| Name | Type | Description | 
|---|---|---|
| APIKey | An API key or JSON to authorize against Twilio service | |
| TextOrJSON | The text to send or a JSON which contains the text and additional required or optional parameters | |
| ToContact (optional) | String | The recipient phone number, in E.164 format. Not required if specified within passed JSON. | 
| FromContact (optional) | String | A Twilio phone number of the sender, in E.164 format, or short code. Not required if specified within passed JSON. | 
| ResponseTarget (optional) | Specify inbox, outbox, cell or cell-range to write any response to | 
Return
A unique random request ID which can be used with REQUESTINFO to check the state of the request. In case of an error the corresponding error-code is returned.
Examples
| A | B | |
|---|---|---|
| 1 | User | account-sid | 
| 2 | Password | auth token | 
| 3 | body | Hello from Twilio! | 
| 4 | to | +4915123456780 | 
| 5 | from | +4915123456789 | 
| Formula | Result | Comment | 
|---|---|---|
 | Sends a SMS with text "Hello from Twilio!" to +4915123456780 | |
 | Same as before but using JSON to specify required information |