A Message resource represents an inbound or outbound message (SMS, MMS, WhatsApp or other channel).
| Property | Type | Description |
|---|---|---|
| account_sid | String |
The SID of the Account associated with the Message resource. |
| api_version | String |
The API version used to process the Message. |
| body | String |
The text content of the message. |
| date_created | String |
The RFC 2822 timestamp (in GMT) of when the Message resource was created. |
| date_sent | String |
The RFC 2822 timestamp (in GMT) of when the Message was sent. For an outgoing message, this is when Twilio sent the message. For an incoming message, this is when Twilio sent the HTTP request to your incoming message webhook URL. |
| date_updated | String |
The RFC 2822 timestamp (in GMT) of when the Message resource was last updated. |
| direction | String |
The direction of the message. Can be: |
| error_code | Integer |
The error code returned if the Message |
| error_message | String |
The description of the |
| from | String |
The sender's phone number (in E.164 format), alphanumeric sender ID, Wireless SIM, short code, or channel address (e.g., |
| messaging_service_sid | String |
The SID of the Messaging Service associated with the Message resource. |
| num_media | String |
The number of media files associated with the Message resource. |
| num_segments | String |
The number of segments that make up the complete message. SMS message bodies that exceed the character limit are segmented and charged as multiple messages. |
| price | String |
The amount billed for the message in the currency specified by |
| price_unit | String |
The currency in which |
| sid | String |
The unique, Twilio-provided string that identifies the Message resource. |
| status | String |
The status of the Message. Possible values: |
| subresource_uris |
A list of related resources identified by their URIs relative to |
|
| to | String |
The recipient's phone number (in E.164 format) or channel address (e.g. |
| uri | String |
The URI of the Message resource, relative to |