Get

Function

This API is used to get push subscriptions.

Request Message

Table 1
ParameterRangeTypeDescription
app_support_ai_notification_subscribeboolWhether the app supports ai notification push.

Sample:

POST /API/PushSubscribe/Get HTTP/1.1
{
    "data": {
        "app_support_ai_notification_subscribe":true
    }
}

Response Message

Parameter Description

Table 2
ParameterRangeTypeDescription
HddAlarmobjectsee Table 3 for more information.
IOAlarmobjectsee Table 4 for more information.
LowPowerobjectsee Table 4 for more information.
MotionAlarmobjectsee Table 4 for more information.
PIRAlarmobjectsee Table 4 for more information.
SmartAlarmobjectsee Table 4 for more information.
VideoLossobjectsee Table 4 for more information.
FaceAlarmobjectsee Table 5 for more information.
LCDAlarmobjectsee Table 4 for more information.
PIDAlarmobjectsee Table 4 for more information.
SODAlarmobjectsee Table 4 for more information.
PDAlarmobjectsee Table 4 for more information.
FDAlarmobjectsee Table 4 for more information.
CCAlarmobjectsee Table 4 for more information.
ADAlarmobjectsee Table 4 for more information.
CDAlarmobjectsee Table 4 for more information.
QDAlarmobjectsee Table 4 for more information.
LPDAlarmobjectsee Table 4 for more information.
RSDAlarmobjectsee Table 4 for more information.
VTAlarmobjectsee Table 4 for more information.
SDAlarmobjectsee Table 4 for more information.
IntrusionAlarmobjectsee Table 4 for more information.
RegionEntranceAlarmobjectsee Table 4 for more information.
RegionExitingAlarmobjectsee Table 4 for more information.
Humanobjectsee Table 4 for more information.
Vehicleobjectsee Table 4 for more information.
LPRAlarmobjectsee Table 5 for more information.
Table 3
ParameterRangeTypeDescription
Enabledint
TypeInt
Table 4
ParameterRangeTypeDescription
ChnFlagsint array
Table 5
ParameterRangeTypeDescription
Groupobject array
Table 6
ParameterRangeTypeDescription
Idint
Namestring
ChnFlagsint array

Sample:

HTTP/1.1 200 OK
Content-Type: application/json
{
    "result": "success",
    "data": {
        "HddAlarm": {
            "Enabled": 0,
            "Type": 0
        },
        "IOAlarm": {
            "ChnFlags": [
                255,
                255
            ]
        },
        "LowPower": {
            "ChnFlags": [
                255,
                0
            ]
        },
        "MotionAlarm": {
            "ChnFlags": [
                255,
                255
            ]
        },
        "PIRAlarm": {
            "ChnFlags": [
                255,
                255
            ]
        },
        "LCDAlarm": {
            "ChnFlags": [
                255,
                255
            ]
        },
        "PIDAlarm": {
            "ChnFlags": [
                255,
                255
            ]
        },
        "SODAlarm": {
            "ChnFlags": [
                255,
                255
            ]
        },
        "PDAlarm": {
            "ChnFlags": [
                255,
                255
            ]
        },
        "FDAlarm": {
            "ChnFlags": [
                255,
                255
            ]
        },
        "CCAlarm": {
            "ChnFlags": [
                255,
                255
            ]
        },
        "ADAlarm": {
            "ChnFlags": [
                255,
                255
            ]
        },
        "CDAlarm": {
            "ChnFlags": [
                255,
                255
            ]
        },
        "QDAlarm": {
            "ChnFlags": [
                255,
                255
            ]
        },
        "LPDAlarm": {
            "ChnFlags": [
                255,
                255
            ]
        },
        "RSDAlarm": {
            "ChnFlags": [
                255,
                255
            ]
        },
        "VTAlarm": {
            "ChnFlags": [
                255,
                255
            ]
        },
        "SDAlarm": {
            "ChnFlags": [
                255,
                255
            ]
        },
        "VideoLoss": {
            "ChnFlags": [
                255,
                255
            ]
        },
        "Human": {
            "ChnFlags": [
                255,
                255
            ]
        },
        "Vehicle": {
            "ChnFlags": [
                255,
                255
            ]
        },
        "IntrusionAlarm": {
            "ChnFlags": [
                255,
                255
            ]
        },
        "RegionEntranceAlarm": {
            "ChnFlags": [
                255,
                255
            ]
        },
        "RegionExitingAlarm": {
            "ChnFlags": [
                255,
                255
            ]
        },
        "FaceAlarm": {
            "Group": [
                {
                    "Id": 2,
                    "Name": "Allow List",
                    "ChnFlags": [
                        0,
                        0
                    ]
                },
                {
                    "Id": 3,
                    "Name": "Block List",
                    "ChnFlags": [
                        0,
                        0
                    ]
                }
            ]
        },
        "LPRAlarm": {
            "Group": [
                {
                    "Id": 5,
                    "Name": "Allow List",
                    "ChnFlags": [
                        0,
                        0
                    ]
                },
                {
                    "Id": 6,
                    "Name": "Block List",
                    "ChnFlags": [
                        0,
                        0
                    ]
                }
            ]
        }
    }
}

Error Code

See Response Messages Body and Common error_code for more information.