Skip to main content

Notifications

Notifications inform users of actions that occurred in a context different from their current context. ChatKitty sends notifications to your app through the ChatKitty JavaScript SDK when an action outside of an active chat session occurs. You can observe these notifications and use them to build in-app notification views. ChatKitty also sends notifications to chat functions that can be used to trigger push notifications.

Schema

id
required
integer <int64>

64-bit integer identifier associated with this resource

body
required
string

The text body of this notification

object (ChannelProperties)
created_time
required
string <date-time>

Time this notification was created

required
object (NotificationData)

Additional context data of this notification

muted
required
boolean

True if this notification should be muted

read_time
string <date-time>

Time this notification was read

title
required
string

The title of this notification

Array of objects (Link)

Hypermedia control links for this resource

{}

Notification types

User sent message

Sent when another user sends a message in a channel the recipient is a member of but currently has no active chat sessions.

Notification data

type
required
string
channel_id
required
integer <int64>
Deprecated

The ID channel the message was sent. Deprecated: Use the channel property of this notification

required
object (ChatUserMessageResource)

The message that was sent

{
  • "type": "string",
  • "channel_id": 0,
  • "message": {
    }
}

System sent message

Sent when a system message is sent using the Platform API in a channel the recipient is a member of but currently has no active chat sessions.

Notification data

type
required
string
channel_id
required
integer <int64>
Deprecated

The ID channel the message was sent. Deprecated: Use the channel property of this notification

required
object (ChatUserMessageResource)

The message that was sent

{
  • "type": "string",
  • "channel_id": 0,
  • "message": {
    }
}

User mentioned channel

Sent when another user mentions a channel the recipient is a member of, in a channel accessible to the recipient.

Notification data

type
required
string
channel_id
required
integer <int64>
Deprecated

The ID of the channel the mentioning message was sent. Deprecated: Use the channel property of this notification

required
object (ChannelResource)
required
object (TextMessageResource)

The message in which the user was mentioned

{}

User mentioned user

Sent when another user mentions the recipient in a channel accessible to the recipient.

Notification data

type
required
string
channel_id
required
integer <int64>
Deprecated

The ID of the channel the mentioning message was sent. Deprecated: Use the channel property of this notification

required
object (ChatUserResource)
required
object (TextMessageResource)

The message in which the user was mentioned

{}