An object representing an SMS or MMS message.
Body of the message.
The context of the message.
The direction of the message:
The phone number the message comes from.
The unique identifier of the message.
Array of media URLs.
Reason why the message was not sent. This is present only in case of failure.
Number of segments of the message.
The current state of the message.
Array of strings with message tags.
The destination number of the message.
The state a message can be in.
queued: The message has been queued in Relay.
initiated: Relay has initiated the process of sending the message.
sent: Relay has sent the message.
delivered: The message has been successfully delivered. Due to the nature of SMS and MMS, receiving a
deliveredevent is not guaranteed, even if the message is delivered successfully.
undelivered: The message has not been delivered. Due to the nature of SMS and MMS, receiving a
undeliveredevent is not guaranteed, even if the message fails to be delivered.
failed: The request has failed.