Notification Count

Notification Count

Returns the count of notifications that are matching with given filter

Request
URI
POST
https://{api_host}/tcsa/api/notification-management/v1/notifications/count
COPY
Request Body

Request object to get notifications count.

NotificationExportFilter of type(s) application/json
Required
{
    "vsafilter": {
        "condition": "AND",
        "filterlist": [
            {
                "condition": "AND",
                "propfilter": [
                    {
                        "propname": "IsLiveNotification",
                        "matchtype": "MATCH",
                        "values": [
                            "true"
                        ]
                    }
                ]
            }
        ]
    },
    "startTimestamp": 1717213680000,
    "endTimestamp": 1719373740000
}
object
vsafilter
Optional

The VSAFilter object defines how the filters has to be applied on queries.

integer
size
Optional

The size parameter allows you to configure the maximum no of records to be returned.

integer
from
Optional

The from parameter defines the offset from the first result you want to fetch.

array of object
sort
Optional

The Sort object defines, on which field sorting has to be apply and what will be the sorting order (ASC/DESC).

number
startTimestamp
Optional

Must be in EPOCH milli seconds.

number
endTimestamp
Optional

Must be in EPOCH milli seconds.

Authentication
This operation uses the following authentication methods.
Responses
200

notification count response object

Returns NotificationCount of type(s) application/json
"NotificationCount Object"
integer
count
Optional

count


401

Client must authenticate itself to get the requested response

Operation doesn't return any data structure

403

The client does not have access rights to the content.

Operation doesn't return any data structure

Code Samples
COPY
                    curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{}' https://{api_host}/tcsa/api/notification-management/v1/notifications/count