This object is used in webhooks and this API and represents a single messaging event for both incoming and outgoing texts.
cid - account ID
logid - unique message ID
flags - tags applied to this message including supplied tags
sender - sender of the message, user id or number, when it is equal to the phone field this means incoming text, same as status=received
proxy- a proxy number that sent or received messagephone- a contact phone number, it is unique within the account (cid)
tcr_cid- TCR campaign id
sent_time- timestamp when the message was sent
update_time - last status update timestamp
text- text of the message sent/received
file- attachment URL for MMS messages
group- a group this contact belongs to at the time the message was sent
action- action this message was part of
status- delivery status: received, delivered, undelivered, failed
status_code- original error code we received in webhook, may not be the same as errcode, this code may be present even for delivered messages
error_text- undelivered error explanation
error_code- normalized error code
error_subcode- additional code for cases of complex errors
price- what we charged for this message
tracking- our short URL used in this message, ID and domain for tracking purposes
contact_flags- a list of all contact flags currently assigned, webhooks only
contact_source - the contact source field, webhooks only
