The ActivityMessage Object

Represents a business-initiated activity message sent to a client over email/SMS.

Properties

NameDescriptionTypeRequired
business_uidThe business that is sending the message.string
staff_uidThe staff that is sending the message.string
client_uidClient to send the message to.stringYes
uidThe entity's unique identifier.string
activity_typeActivity category type from a closed list.string (enum: invite)Yes
activity_actionAction related to the activity type property.string (enum: schedule)Yes
channelsDetermines if the message should be sent via email or/and SMS.array of stringsYes
message_textobject
cta_button_textThe text for the Email action buttonstring
link_url_paramsobject
created_atThe creation date and time of the message.string
updated_atUpdated date and time of the message.string

Message Text Properties

NameDescriptionTypeRequired
bodyThe main content of the message.string
subjectA concise summary of the message content.string

Link Url Params Properties

NameDescriptionTypeRequired
utm_sourceIdentifies the source of traffic (e.g., website, search_engine, social_media)string
utm_campaignIdentifies the specific marketing campaign (e.g., spring_sale, product_launch)string

Example

JSON

{
  "business_uid": "56a78b56c",
  "staff_uid": "5ya4gbwm2c3qoic8",
  "client_uid": "0c4ac9717ab26f56",
  "uid": "12a34b56c789",
  "activity_type": "invite",
  "activity_action": "schedule",
  "message_text": {
    "body": "You are invited to schedule with us online.",
    "subject": "You can now schedule with us online!"
  },
  "cta_button_text": "Schedule now",
  "link_url_params": {
    "utm_source": "newsletter",
    "utm_campaign": "summer_sale"
  },
  "channels": [
    "email",
    "sms"
  ],
  "updated_at": "2024-03-20T12:34:56Z",
  "created_at": "2024-01-01T09:00:00Z"
}