messaging.message.sent

The messaging.message.sent event is triggered when a new message is sent in either a one-to-one chat or a group conversation. This event provides complete message details including sender information, content, recipient details, and the full status history of the message.

Payload JSON

Chat Message

{
  "eventBatchId": "aa331a3b-ee6c-4175-82ba-e602ba15f71c",
  "eventSubscriptionId": "7477120c-0229-44ea-9d87-b36fef2566ef",
  "eventBatchTime": "2026-03-31T14:12:13.7660462Z",
  "eventsData": [
    {
      "eventType": "message.sent",
      "eventVersion": 1,
      "eventData": {
        "registeredOn": "2026-03-31T14:12:13Z",
        "messageId": "06033478-37f2-469e-8e04-4fa764ab66f2",
        "conversationId": "1e8ee916-ab83-4402-8048-0d949231d586:8340b144-e4d3-463b-a6d3-b8ea6074651c",
        "conversationType": "chat",
        "sender": {
          "senderId": "1e8ee916-ab83-4402-8048-0d949231d586",
          "roleType": "User"
        },
        "recipientId": "8340b144-e4d3-463b-a6d3-b8ea6074651c",
        "contentType": "text",
        "content": "8",
        "replyToMessageId": null,
        "statusHistory": {
          "currentStatus": "Pending",
          "lastUpdatedAt": "2026-03-31T14:12:13Z",
          "events": [
            {
              "status": "Pending",
              "timestamp": "2026-03-31T14:12:13Z"
            }
          ]
        }
      }
    }
  ]
}

Group chat Message

{
  "eventBatchId": "73a61c44-6c0f-4e59-90e5-932f889a1b03",
  "eventSubscriptionId": "7477120c-0229-44ea-9d87-b36fef2566ef",
  "eventBatchTime": "2026-03-31T14:24:24.2057596Z",
  "eventsData": [
    {
      "eventType": "message.sent",
      "eventVersion": 1,
      "eventData": {
        "registeredOn": "2026-03-31T14:24:23Z",
        "messageId": "5bcde4a1-11fd-413e-a9f1-73f3595fe44e",
        "conversationId": "803233ba-1935-4a4d-8af5-4bd9a5d45245",
        "conversationType": "groupchat",
        "sender": {
          "senderId": "1e8ee916-ab83-4402-8048-0d949231d586",
          "roleType": "User"
        },
        "recipientId": "803233ba-1935-4a4d-8af5-4bd9a5d45245",
        "contentType": "text",
        "content": "1",
        "replyToMessageId": null,
        "statusHistory": {
          "currentStatus": "Pending",
          "lastUpdatedAt": "2026-03-31T14:24:23Z",
          "events": [
            {
              "status": "Pending",
              "timestamp": "2026-03-31T14:24:23Z"
            }
          ]
        }
      }
    }
  ]
}

Field level Description

FieldTypeOptional/RequiredDescription
eventBatchIdString (UUID)RequiredA unique identifier for this batch of events. Multiple events occurring close together may be grouped into a single batch.
eventSubscriptionIdString (UUID)RequiredA unique identifier representing the subscription through which this event was delivered. It ensures traceability between the event and the organization's registered DHS subscription.
eventBatchTimeDateTime (ISO 8601 timestamp, UTC)RequiredThe timestamp when this event batch was created and prepared for delivery.
eventsDataArrayRequiredAn array containing one or more message event objects. Multiple messages can be batched together if they occur in close temporal proximity.
eventsData[].eventTypeStringRequiredThe type of event. For this event: message.sent.
eventsData[].eventVersionIntegerRequiredThe version of the event schema. Currently 1.
eventsData[].eventDataObjectRequiredContains the message event payload data.
eventData.registeredOnDateTime (ISO 8601 timestamp, UTC)RequiredThe timestamp when this event was registered in the system.
eventData.messageIdString (UUID)RequiredA globally unique identifier assigned to this specific message instance. Used for message tracking, deduplication, and referencing in subsequent status updates.
eventData.conversationIdStringRequiredIdentifies the conversation (chat or groupchat) in which this message was sent. For chat, this is a composite of sender and recipient IDs. For groupchat, this is the group identifier.
eventData.conversationTypeStringRequiredIndicates the type of conversation where the message was sent. Allowed values:
chat — One-to-one conversation between two participants.
groupchat — Group conversation with multiple participants.
eventData.senderObjectRequiredContains information about the message sender.
eventData.sender.senderIdString (UUID)RequiredThe unique identifier of the user who sent the message.
eventData.sender.roleTypeStringRequiredThe role of the sender within the system. Examples include:
User — Standard user.
Driver — Vehicle driver.
eventData.recipientIdString (UUID)RequiredThe unique identifier of the message recipient. For chat, this is the other participant's ID. For groupchat, this is the group conversation ID.
eventData.contentTypeStringRequiredSpecifies the format of the message content. Supported values:
text — Plain text message content.
image — Image attachment.
file — File attachment (currently supports PDF only).
eventData.contentStringOptionalThe message text when contentType is text, or an optional caption when contentType is image or file.
eventData.replyToMessageIdString (UUID) or nullRequiredThe message ID of the original message being replied to. Set to null if the message is not a reply.
eventData.statusHistoryObjectRequiredContains the complete status lifecycle information for this message, including current status and historical events.
statusHistory.currentStatusStringRequiredThe current delivery status of the message. For newly sent messages, this is:
Pending — Message has been sent but not yet delivered to recipient(s).
statusHistory.lastUpdatedAtDateTime (ISO 8601 timestamp, UTC)RequiredThe timestamp when the message status was last updated.
statusHistory.eventsArrayRequiredAn ordered array of status transition events, providing a complete audit trail of the message lifecycle. Each event represents a state change.
statusHistory.events[].statusStringRequiredThe status that the message transitioned to. For this event:
Pending — Message was successfully sent from the sender.
statusHistory.events[].timestampDateTime (ISO 8601 timestamp, UTC)RequiredThe timestamp when this specific status transition occurred.