The message object

A message from a Podium conversation. Messages include each exchange within a conversation and include
conversations for all channels within Podium (Facebook Messenger, SMS text, GMB, etc).

Deprecations

The contact and sender object fields have been deprecated, they are currently only available in webhook
and will be completely removed at some point in the future.

AttributeTypeDescription
location.uidstringPodium unique identifier for location.
location.organizationUidstringPodium unique identifier for organization.
itemsarrayA list of all items associated with the message uid. This includes text bodies and attachments.
items[].typestringThe type of the message item.
items[].bodystringBody of the message.
items[].uidstringPodium unique identifier for message item.
items[].createdAtstringWhen the message item was created.
items[].attachmentUrlstringPublic URL of the message attachment. NOTE: There is an expiry of 7 days on this URL.
items[].attachmentContentTypestringMIME type of the message attachment.
items[].deliveryStatusstringStatus of the message item.
items[].encryptedAtstringWhen the item was encrypted. null if the item is not encrypted.
items[].sendBodystringThe send body of the message item that the end consumer sees.
items[].sourceTypestringThe source type of the message item.
bodystringBody of the message.
uidstringPodium unique identifier for message.
contact.namestringName of the contact.
contact.uidstringPodium unique identifier for contact.
contact.externalIdentifierstringIdentifier of the contact that is used external to Podium.
sender.uidstringPodium unique identifier for user.
conversation.uidstringPodium unique identifier for conversation.
conversation.channel.typestringMessenger channel for the conversation. Possible values: ["apple", "car_wars", "email", "facebook", "fallback_email", "google", "google_brand", "iframe", "instagram", "phone", "secure", "sms", "text", "whatsapp"]
conversation.channel.identifierstringIdentifies the Messenger channel. Must be a valid email address or a phone number. Non-US/Canada numbers must include the country code (e.g. +61 for AUS)
conversation.assignedUserUidstringPodium unique identifier for user.
conversation.startedAtstringWhen the conversation was started.
createdAtstringWhen the message was created.
contactNamestringName of the contact.
attachmentUrlstringURL of message attachment. This field is deprecated, please refer to the attachmentUrl in the items array.
failureReasonstringIf the message failed to send, this will be the reason.
senderUidstringPodium unique identifier for user. If the message was sent from Podium then this will be the Podium user who sent it.
{
  "location": {
    "uid": "00000000-0000-0000-0000-000000000000",
    "organizationUid": "00000000-0000-0000-0000-000000000000"
  },
  "items": [
    {
      "type": "attachment",
      "body": "https://www.podium.com/image.png",
      "uid": "00000000-0000-0000-0000-000000000000",
      "createdAt": "2015-01-23T23:50:07Z",
      "attachmentUrl": "https://www.podium.com/image.png",
      "attachmentContentType": "image/png",
      "deliveryStatus": "sent",
      "encryptedAt": "2015-01-23T23:50:07Z",
      "sendBody": "null",
      "sourceType": "outbound"
    }
  ],
  "body": "Hello there.",
  "uid": "00000000-0000-0000-0000-000000000000",
  "contact": {
    "name": "Joe Orange",
    "uid": "00000000-0000-0000-0000-000000000000",
    "externalIdentifier": "123-abc"
  },
  "sender": {
    "uid": "00000000-0000-0000-0000-000000000000"
  },
  "conversation": {
    "uid": "00000000-0000-0000-0000-000000000000",
    "channel": {
      "type": "email",
      "identifier": "[email protected]"
    },
    "assignedUserUid": "00000000-0000-0000-0000-000000000000",
    "startedAt": "2015-01-23T23:50:07Z"
  },
  "createdAt": "2015-01-23T23:50:07Z",
  "contactName": "Joe Orange",
  "attachmentUrl": "https://www.podium.com/",
  "failureReason": "Attempted to send SMS to a landline.",
  "senderUid": "00000000-0000-0000-0000-000000000000"
}