# Send SMS action
This action sends an SMS (text) message.
Send SMS action
# Input
Input field | Description |
---|---|
From | The Twilio phone number from which the SMS is sent. |
To | The phone number to which the SMS is sent. The phone number must include the country code. For example, +14235550001 . |
Message | The message you plan to send. This field is limited to 160 characters. |
# Output
Output field | Description |
---|---|
Body | The content of the SMS. |
num_segments | The number of segments within the SMS. |
Direction | The direction (inbound or outbound) of the SMS. Sent messages are outbound. |
From | The number from which the SMS was sent. For example, +14325550001 . |
Date_updated | The date the message was updated. For example, Tue, 05 Dec 2023 18:57:20 +0000 . |
Price | The amount it cost to send the SMS. This value is null if there is no cost per message for the phone plan. |
Error message | This value is null if the message is sent successfully. |
URI | The unique identifier for the SMS. |
Account_SID | This is the string identifier. This provides unique key that is used to identify specific resources. Each SID has 34 digits. |
Num media | The multimedia (for example, images or emojis) within the SMS. This value is null if the SMS contains no media. |
To | The phone number to which the SMS was sent. |
Date_created | The date the SMS was created. |
Status | The status of the SMS. For example, failed, success, or queued. |
SID | This is the string identifier. This provides a unique key that is used to identify specific resources. Each SID has 34 digits. |
Date sent | The date the SMS was sent. |
Messaging service SID | The SID of the messaging service. This value is null if a messaging service wasn't used. |
Error_code | The error code if the message failed. |
Price_unit | The unit used to identify the price to send the message, for example, USD. |
API_version | The Twilio API version used by the sender. For example, 2010-04-01 . |
Subresource URIs | If subresources, such as recordings or notifications, are present, the URIs display in the subresource URIs property. This value is blank if no subresource URIs are present. |
Last updated: 12/12/2023, 2:18:13 PM