Skip to main content

Custom Notification

{
"id": "integer",
"recipients_type": "string",
"type": "string",
"embed": {
"id": "integer",
"embed_type": "string",
"embed_id": "string",
"url": "string(uri)",
"metadata": "{}"
},
"title": "string",
"description": "string"
}

Properties

NameTypeRequiredRestrictionsDescription
idintegerfalseread-onlyA unique integer value identifying this custom notification
recipients_typestringfalsenoneCan be 'connections' or 'user' (default is 'conections')
typestringtruenoneAn optional custom string to differentiate notifications
embedEmbedfalsenoneEmbed object if exist
titlestring¦nullfalsenoneNotification title
descriptionstring¦nullfalsenoneNotification description

Enumerated Values

PropertyValueDescription
recipients_typeconnectionsThe recipients of the notification will be the user's friends/followers
recipients_typeuserThe recipients of the notification will be the user himself