SunshineConversationsClient::Client

August 27, 2025 · View on GitHub

Properties

NameTypeDescriptionNotes
idStringThe unique ID of the client.[optional]
typeClientType[optional]
statusStringThe client status. Indicates if the client is able to receive messages or not. Can be pending, inactive, active, or blocked.[optional]
integration_idStringThe ID of the integration that the client was created for. Unused for clients of type sdk, as they incorporate multiple integrations.[optional]
external_idStringThe ID of the user on an external channel. For example, the user’s phone number for Twilio, or their page-scoped user ID for Facebook Messenger. Applies only to non-SDK clients.[optional]
last_seenStringA datetime string with the format `YYYY-MM-DDThh:mm:ss.SSSZ` representing the last time the user interacted with this client.[optional]
linked_atStringA timestamp signifying when the client was added to the user. Formatted as `YYYY-MM-DDThh:mm:ss.SSSZ`.[optional]
display_nameStringThe user's display name on the channel.[optional]
avatar_urlStringThe URL for the user's avatar on the channel.[optional]
infoObjectA flat curated object with properties that vary for each client platform. All keys are optional and not guaranteed to be available.[optional]
rawObjectAn object with raw properties that vary for each client platform. All keys are optional and not guaranteed to be available.[optional]

Example

require 'sunshine-conversations-client'

instance = SunshineConversationsClient::Client.new(
  id: 5c9a34160c89726709136733,
  type: null,
  status: active,
  integration_id: 582dedf230e788746891281a,
  external_id: your-own-id,
  last_seen: 2020-08-20T16:13:07.462Z,
  linked_at: 2020-06-23T14:33:47.492Z,
  display_name: Steve,
  avatar_url: null,
  info: null,
  raw: null
)