Skip to main content
Skip table of contents

New events

Statistics for new events in the last week, month, and year

GET/api/v1/events/dashboard/events

Headers

Authorization

Bearer token

Accept

application/json

X-Client

ios-cctv|android-cctv|thick-legal|web

X-UUID

unique device id

Body

daterequired

string

Date Filtering Template. This field is mandatory when there is no filtering based on the «from» and «to» fields

timezonerequired

string

Timezone for the date filtering template. Example: Europe/Paris. This field is mandatory when filtering based on the «date» field

fromrequired

string

Starting date for filtering. This field is mandatory when there is no filtering based on the «date» field

torequired

string

Ending date for filtering. This field is mandatory when there is no filtering based on the «date» field

Response

200

Successful response

JSON
[
                {
                    "type": "events",
                    "items": [
                        {
                            "type": "users",
                            "count": 0
                        },
                        {
                            "type": "systems",
                            "count": 0
                        },
                        {
                            "type": "cameras",
                            "count": 0
                        }
                    ]
                }
            ]
401

Authorization token not provided or invalid, see Obtaining a token

Example

JSON
curl -k --location --request GET 'https://vms.local/api/v1/events/dashboard/events?date=string&timezone=string&from=string&to=string' \
--header 'Authorization:Bearer token' \
--header 'Accept:application/json' \
--header 'X-Client:ios-cctv|android-cctv|thick-legal|web' \
--header 'X-UUID:unique device id'
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.