MessageContract
An object representing an SMS or MMS message.
Properties
body
• body: string
Body of the message.
context
• context: string
The topic the message-object is associated with. Topic was previously called context
.
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 media URLs.
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.