membershipType of a message channel, the client members are either pre-determined or fluid. An individual message channel is with a single client; a company message channel contains all clients associated with the corresponding company.
On the other hand, a group message channel has a fluid list of clients within a company (it could potentially have one, several, or even all clients within the company). The members of a group message channel can be added or removed via the UI.
The clientId and companyId properties allow you to easily identify the source entity for a message channel (without having to e.g. search through the memberIds). Only individual channels will have a clientId. The companyId for individual channels indicates which company of the client this channel belongs to.
Properties
idstringThe unique identifier for this item. Note: Not all
id properties will be in UUID format.
createdAt stringThe date this item was created in RFC3339 format. object
stringThe object type of this resource. membershipType
stringThe type of membership that this channel is associated with. Can be one of
individual, group or company.
clientId
string
The client this channel belongs to. This is only set for channels when membershipType is individual.
companyId string
Which company this channel belongs to.
stringarray of stringsThe user IDs associated with this particular channel. These will always be UUIDs of the members of the channel, including clients and internal users. lastMessageDate
stringThe timestamp of when the last message was sent in this channel. If no messages have been sent in this channel, the value is
null.
Example Message Channel Object