Gets the requesting user's unseen notifications for one channel, used to render that channel's unread badge detail.
Parameters
Output
Encoding
application/jsonnotifications
array
Required
Unseen notifications raised in the given channel.
Errors
AuthRequired
The request has no valid service auth. ChannelNotFound
No channel matches the given space reference. Try It
Requests are sent directly from your browser. Some servers may block requests due to CORS.
View raw schema
{
"description": "Gets the requesting user's unseen notifications for one channel, used to render that channel's unread badge detail.",
"errors": [
{
"description": "The request has no valid service auth.",
"name": "AuthRequired"
},
{
"description": "No channel matches the given space reference.",
"name": "ChannelNotFound"
}
],
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"notifications": {
"description": "Unseen notifications raised in the given channel.",
"items": {
"ref": "social.colibri.beta.notification.defs#notificationView",
"type": "ref"
},
"type": "array"
}
},
"required": [
"notifications"
],
"type": "object"
}
},
"parameters": {
"properties": {
"channel": {
"description": "The channel to get unseen notifications for.",
"format": "space-ref",
"type": "string"
},
"limit": {
"default": 50,
"description": "Maximum number of notifications to return.",
"maximum": 100,
"minimum": 1,
"type": "integer"
}
},
"required": [
"channel"
],
"type": "params"
},
"type": "query"
}