Message

struct

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: inbound for incoming messages, outbound-api for messages created by the REST API, outbound-call for messages created during a call, or outbound-reply for messages created in response to an incoming message.

error_code Integer

The error code returned if the Message status is failed or undelivered. If no error was encountered, the value is null.

error_message String

The description of the error_code if the Message status is failed or undelivered. If no error was encountered, the value is null.

from String

The sender's phone number (in E.164 format), alphanumeric sender ID, Wireless SIM, short code, or channel address (e.g., whatsapp:+15554449999).

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. Populated after the message has been sent/received.

price_unit String

The currency in which price is measured, in ISO 4127 format (e.g. usd, eur, jpy).

sid String

The unique, Twilio-provided string that identifies the Message resource.

status String

The status of the Message. Possible values: accepted, scheduled, canceled, queued, sending, sent, failed, delivered, undelivered, receiving, received, read (WhatsApp only) or partially_delivered.

subresource_uris
MapString

A list of related resources identified by their URIs relative to https://api.twilio.com.

to String

The recipient's phone number (in E.164 format) or channel address (e.g. whatsapp:+15552229999).

uri String

The URI of the Message resource, relative to https://api.twilio.com.

part of the Apioo-Project