Messages

The message event will be dispatched when a message within Luscii is either created or updated.

Examples

{
  "eventType": "com.luscii.message.created.v1",
  "eventId": "{eventId}",
  "datetime": "ISO-8601", // e.g. 2024-05-14T13:33:33Z
  "organizationId": "{organizationId}",
  "payload": {
    "url": "https://api.luscii.com/v1/messages/{messageId}",
    "resource": {
      "id": "{messageId}"
    }
}
{
  "eventType": "com.luscii.message.updated.v1",
  "eventId": "{eventId}",
  "datetime": "ISO-8601", // e.g. 2024-05-14T13:33:33Z
  "organizationId": "{organizationId}",
  "payload": {
    "url": "https://api.luscii.com/v1/messages/{messageId}",
    "resource": {
      "id": "{messageId}"
    }
}

Fields

FieldDescription
eventIdUnique identifier for the event being dispatched
organizationIdUnique identifier for the organization in which the patient is created
messageIdUnique identifier for the message, can be used to fetch additional information about the patient via the Public Api