MessageContract

Messaging.MessageContract

An object representing an SMS or MMS message.

Properties

body

body: string

Body of the message


context

context: string

The context of the message.


direction

direction: string

The direction of the message: inbound or outbound.


from

from: string

The phone number the message comes from.


id

id: string

The unique identifier of the message.


media

media: string[]

Array of URLs media.


reason

Optional reason: string

Reason why the message was not sent. This is present only in case of failure.


segments

segments: number

Number of segments of the message.


state

state: MessagingMessageState

The current state of the message.


tags

tags: string[]

Array of strings with message tags.


to

to: string

The destination number of the message.