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
{
"type": "query",
"errors": [
{
"name": "AuthRequired",
"description": "The request has no valid service auth."
},
{
"name": "ChannelNotFound",
"description": "No channel matches the given space reference."
}
],
"output": {
"schema": {
"type": "object",
"required": [
"notifications"
],
"properties": {
"notifications": {
"type": "array",
"items": {
"ref": "social.colibri.beta.notification.defs#notificationView",
"type": "ref"
},
"description": "Unseen notifications raised in the given channel."
}
}
},
"encoding": "application/json"
},
"parameters": {
"type": "params",
"required": [
"channel"
],
"properties": {
"limit": {
"type": "integer",
"default": 50,
"maximum": 100,
"minimum": 1,
"description": "Maximum number of notifications to return."
},
"channel": {
"type": "string",
"format": "space-ref",
"description": "The channel to get unseen notifications for."
}
}
},
"description": "Gets the requesting user's unseen notifications for one channel, used to render that channel's unread badge detail."
}