0% found this document useful (0 votes)
38 views316 pages

Hik-Connect For Teams OpenAPI - Developer Guide - 20241119

The Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide provides comprehensive instructions for using and managing the Hikvision product, including legal disclaimers and intellectual property rights. It outlines various capabilities such as system, alarm, resource, video, message, and person management, along with detailed API references and typical applications. The document emphasizes compliance with applicable laws and the user's responsibility in using the product safely and ethically.

Uploaded by

gustavovni08
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
38 views316 pages

Hik-Connect For Teams OpenAPI - Developer Guide - 20241119

The Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide provides comprehensive instructions for using and managing the Hikvision product, including legal disclaimers and intellectual property rights. It outlines various capabilities such as system, alarm, resource, video, message, and person management, along with detailed API references and typical applications. The document emphasizes compliance with applicable laws and the user's responsibility in using the product safely and ethically.

Uploaded by

gustavovni08
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 316

Hik-Connect for Teams (HikCentral Connect)

OpenAPI
Developer Guide
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Legal Information

About this Document


● This Document includes instructions for using and managing the Product. Pictures, charts,
images and all other information hereinafter are for description and explanation only. Unless
otherwise agreed, Hangzhou Hikvision Digital Technology Co., Ltd. or its affiliates (hereinafter
referred to as "Hikvision") makes no warranties, express or implied.
● Please use this Document with the guidance and assistance of professionals trained in
supporting the Product.

Acknowledgment of Intellectual Property Rights


● Hikvision owns the copyrights and/or patents related to the technology embodied in the
Products described in this Document, which may include licenses obtained from third parties.
● Any part of the Document, including text, pictures, graphics, etc., belongs to Hikvision. No part
of this Document may be excerpted, copied, translated, or modified in whole or in part by any
means without written permission.
● and other Hikvision's trademarks and logos are the properties of Hikvision in
various jurisdictions.
● Other trademarks and logos mentioned are the properties of their respective owners.

LEGAL DISCLAIMER
● TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, THIS DOCUMENT AND THE
PRODUCT DESCRIBED, WITH ITS HARDWARE, SOFTWARE AND FIRMWARE, ARE PROVIDED "AS
IS" AND "WITH ALL FAULTS AND ERRORS". HIKVISION MAKES NO WARRANTIES, EXPRESS OR
IMPLIED, INCLUDING WITHOUT LIMITATION, MERCHANTABILITY, SATISFACTORY QUALITY, OR
FITNESS FOR A PARTICULAR PURPOSE. THE USE OF THE PRODUCT BY YOU IS AT YOUR OWN RISK.
IN NO EVENT WILL HIKVISION BE LIABLE TO YOU FOR ANY SPECIAL, CONSEQUENTIAL,
INCIDENTAL, OR INDIRECT DAMAGES, INCLUDING, AMONG OTHERS, DAMAGES FOR LOSS OF
BUSINESS PROFITS, BUSINESS INTERRUPTION, OR LOSS OF DATA, CORRUPTION OF SYSTEMS, OR
LOSS OF DOCUMENTATION, WHETHER BASED ON BREACH OF CONTRACT, TORT (INCLUDING
NEGLIGENCE), PRODUCT LIABILITY, OR OTHERWISE, IN CONNECTION WITH THE USE OF THE
PRODUCT, EVEN IF HIKVISION HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES OR
LOSS.
● YOU ACKNOWLEDGE THAT THE NATURE OF THE INTERNET PROVIDES FOR INHERENT SECURITY
RISKS, AND HIKVISION SHALL NOT TAKE ANY RESPONSIBILITIES FOR ABNORMAL OPERATION,
PRIVACY LEAKAGE OR OTHER DAMAGES RESULTING FROM CYBER-ATTACK, HACKER ATTACK,
VIRUS INFECTION, OR OTHER INTERNET SECURITY RISKS; HOWEVER, HIKVISION WILL PROVIDE
TIMELY TECHNICAL SUPPORT IF REQUIRED.
● YOU AGREE TO USE THIS PRODUCT IN COMPLIANCE WITH ALL APPLICABLE LAWS, AND YOU ARE
SOLELY RESPONSIBLE FOR ENSURING THAT YOUR USE CONFORMS TO THE APPLICABLE LAW.

i
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

ESPECIALLY, YOU ARE RESPONSIBLE, FOR USING THIS PRODUCT IN A MANNER THAT DOES NOT
INFRINGE ON THE RIGHTS OF THIRD PARTIES, INCLUDING WITHOUT LIMITATION, RIGHTS OF
PUBLICITY, INTELLECTUAL PROPERTY RIGHTS, OR DATA PROTECTION AND OTHER PRIVACY
RIGHTS. YOU SHALL NOT USE THIS PRODUCT FOR ANY PROHIBITED END-USES, INCLUDING THE
DEVELOPMENT OR PRODUCTION OF WEAPONS OF MASS DESTRUCTION, THE DEVELOPMENT OR
PRODUCTION OF CHEMICAL OR BIOLOGICAL WEAPONS, ANY ACTIVITIES IN THE CONTEXT
RELATED TO ANY NUCLEAR EXPLOSIVE OR UNSAFE NUCLEAR FUEL-CYCLE, OR IN SUPPORT OF
HUMAN RIGHTS ABUSES.
● IN THE EVENT OF ANY CONFLICTS BETWEEN THIS DOCUMENT AND THE APPLICABLE LAW, THE
LATTER PREVAILS.

© Hangzhou Hikvision Digital Technology Co., Ltd. All rights reserved.

ii
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Contents
Chapter 1 Overview .................................................................................................................... 1
1.1 Introduction ........................................................................................................................... 1
1.2 Open Capabilities ................................................................................................................... 1
1.2.1 System Capabilities ....................................................................................................... 1
1.2.2 Alarm Capabilities ......................................................................................................... 2
1.2.3 Resource Capabilities .................................................................................................... 3
1.2.4 Video Capabilities ......................................................................................................... 4
1.2.5 Message Capabilities ..................................................................................................... 5
1.2.6 Person Management Capabilities ................................................................................. 5
1.2.7 Video Intercom Capabilities .......................................................................................... 6
1.2.8 Access Control Capabilities ........................................................................................... 6
1.2.9 On-Board Monitoring Capabilities ................................................................................ 6
1.2.10 Attendance Capabilities .............................................................................................. 7
1.3 Terms and Definitions ............................................................................................................ 8
1.4 Update History ....................................................................................................................... 9
Chapter 2 Getting Started ......................................................................................................... 14
Chapter 3 Protocol Summary .................................................................................................... 15
3.1 API Rules .............................................................................................................................. 15
3.2 Signature and Authentication .............................................................................................. 15
3.3 Response Rules .................................................................................................................... 16
Chapter 4 Typical Applications .................................................................................................. 18
4.1 Manage Resources ............................................................................................................... 18
4.2 Subscribe to and Get Alarms ................................................................................................ 18
4.3 Configure Alarm Rules ......................................................................................................... 20
4.4 Subscribe to and Get Messages ........................................................................................... 21
4.5 Start Live View / Playback Without Plug-in .......................................................................... 22

iii
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

4.6 Receive Video Intercom Events ............................................................................................ 23


4.7 Get Department List ............................................................................................................. 24
4.8 Open Door via Bluetooth ..................................................................................................... 25
4.9 Manage On-Board Monitoring ............................................................................................. 26
4.10 Add Person ......................................................................................................................... 28
4.11 Apply Access Level ............................................................................................................. 29
4.12 Update Fingerprint/Card Information ................................................................................ 30
4.13 Add Temporary Pass ........................................................................................................... 31
4.14 Add Resident ...................................................................................................................... 32
4.15 Update Resident ................................................................................................................ 33
4.16 Search for Attendance Data ............................................................................................... 34
Chapter 5 API Reference ........................................................................................................... 36
5.1 System-Related Services ...................................................................................................... 36
5.1.1 Get Token .................................................................................................................... 36
5.1.2 System Operation ........................................................................................................ 38
5.2 Resource-Related Services ................................................................................................... 44
5.2.1 Physical Resources ...................................................................................................... 44
5.2.2 Logical Resources ........................................................................................................ 57
5.3 Alarm-Related Services ........................................................................................................ 85
5.3.1 Alarm Subscription ...................................................................................................... 86
5.3.2 Alarm Subscription (V2) .............................................................................................. 90
5.3.3 Alarm Rules ................................................................................................................. 96
5.3.4 Alarm Logs ................................................................................................................ 112
5.4 Message-Related Services .................................................................................................. 115
5.4.1 Message Subscription and Receiving ........................................................................ 115
5.5 Video-Related Services ...................................................................................................... 121
5.5.1 Recording Schedule and Playback ............................................................................. 121
5.6 Video Intercom Services .................................................................................................... 124

iv
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

5.6.1 Buildings and Rooms ................................................................................................. 124


5.6.2 ISAPI Protocol Transmission ...................................................................................... 128
5.6.3 Residents ................................................................................................................... 134
5.6.4 Temporary Passes ..................................................................................................... 141
5.6.5 Video Intercom Calls ................................................................................................. 150
5.7 Access Control Services ...................................................................................................... 152
5.7.1 POST /api/hccgw/acs/v1/remote/control ................................................................. 152
5.7.2 GET /api/hccgw/acs/v1/encryptinfo/get .................................................................. 153
5.7.3 POST /api/hccgw/acs/v1/event/certificaterecords/search ....................................... 155
5.7.4 POST /api/hccgw/acspm/v1/accesslevel/list ............................................................ 157
5.7.5 POST /api/hccgw/acspm/v1/maintain/overview/person/{id}/elementdetail .......... 159
5.7.6 POST /api/hccgw/acspm/v1/accesslevel/person/add .............................................. 161
5.7.7 POST /api/hccgw/acspm/v1/accesslevel/person/delete .......................................... 162
5.7.8 POST /api/hccgw/acspm/v1/accesslevel/person/modify ......................................... 164
5.8 Person-Related Services ..................................................................................................... 165
5.8.1 POST /api/hccgw/person/v1/groups/search ............................................................. 165
5.8.2 POST /api/hccgw/person/v1/persons/add ............................................................... 168
5.8.3 POST /api/hccgw/person/v1/persons/update .......................................................... 170
5.8.4 POST /api/hccgw/person/v1/persons/photo ............................................................ 172
5.8.5 POST /api/hccgw/person/v1/persons/fingercollect ................................................. 174
5.8.6 POST /api/hccgw/person/v1/persons/updatefingers ............................................... 175
5.8.7 POST /api/hccgw/person/v1/persons/cardcollect .................................................... 178
5.8.8 POST /api/hccgw/person/v1/persons/updatecards ................................................. 179
5.8.9 POST /api/hccgw/person/v1/persons/updatepincode ............................................. 181
5.8.10 POST /api/hccgw/person/v1/persons/get .............................................................. 182
5.8.11 POST /api/hccgw/person/v1/persons/delete ......................................................... 183
5.8.12 POST /api/hccgw/person/v1/persons/quick/add ................................................... 184
5.8.13 POST /api/hccgw/person/v1/persons/list ............................................................... 187

v
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

5.8.14 POST /api/hccgw/person/v1/persons/qrcode ........................................................ 189


5.9 On-Board Monitoring Services ........................................................................................... 191
5.9.1 POST /api/hccgw/resource/v1/areas/vehicles/add .................................................. 191
5.9.2 POST /api/hccgw/resource/v1/areas/vehicles/{id}/update ...................................... 193
5.9.3 POST /api/hccgw/resource/v1/areas/vehicles/get ................................................... 194
5.9.4 POST /api/hccgw/resource/v1/picture/uploadparam/get ........................................ 197
5.9.5 POST /api/hccgw/resource/v1/accstatus/search ...................................................... 198
5.10 Attendance Services ......................................................................................................... 201
5.10.1 POST /api/hccgw/attendance/v1/report/totaltimecard/list ................................... 201
Appendix A. Appendixes ......................................................................................................... 205
A.1 Data Dictionary .................................................................................................................. 205
A.1.1 Alarm Category ......................................................................................................... 205
A.1.2 Resource Type ........................................................................................................... 205
A.1.3 Device Category ........................................................................................................ 206
A.1.4 Alarm Type ................................................................................................................ 206
A.1.5 Alarm Type (V2) ........................................................................................................ 213
A.1.6 Alarm Source ............................................................................................................ 218
A.1.7 Message Type ........................................................................................................... 218
A.1.8 Capability Set ............................................................................................................ 222
A.2 Time/Date Format ............................................................................................................. 223
A.2.1 ISO 8601 Time Format Instruction ............................................................................ 223
A.2.2 Date Format Type ..................................................................................................... 223
A.2.3 Time Format Type ..................................................................................................... 225
A.2.4 Time Duration Format Type ...................................................................................... 225
A.3 Object Description ............................................................................................................. 226
A.3.1 AccessLevel ............................................................................................................... 226
A.3.2 AccessLevelFailed ..................................................................................................... 226
A.3.3 AccessLevelInfo ......................................................................................................... 226

vi
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

A.3.4 AccessLevelResponse ............................................................................................... 227


A.3.5 AccessLevelSearchCriteria ........................................................................................ 227
A.3.6 AccessLevelSearchRequest ....................................................................................... 228
A.3.7 AcsSnapPicInfo .......................................................................................................... 228
A.3.8 AddDeviceResponse ................................................................................................. 228
A.3.9 AlarmCategory .......................................................................................................... 229
A.3.10 AlarmDeviceInfo ..................................................................................................... 229
A.3.11 AlarmEventSource .................................................................................................. 230
A.3.12 AlarmFile ................................................................................................................. 230
A.3.13 AlarmFileExtendInfo ............................................................................................... 231
A.3.14 AlarmFileInfo .......................................................................................................... 231
A.3.15 AlarmInfo ................................................................................................................ 232
A.3.16 AlarmInputChannel ................................................................................................ 232
A.3.17 AlarmInputInfo ....................................................................................................... 232
A.3.18 AlarmLinkageConfig ................................................................................................ 233
A.3.19 AlarmLinkage .......................................................................................................... 233
A.3.20 AlarmMsg ............................................................................................................... 233
A.3.21 AlarmOutputChannel .............................................................................................. 234
A.3.22 AlarmOutputOperation .......................................................................................... 235
A.3.23 AlarmOutputState .................................................................................................. 235
A.3.24 Alarmpriorities ........................................................................................................ 235
A.3.25 AlarmPriority .......................................................................................................... 236
A.3.26 AlarmResourceInfo ................................................................................................. 236
A.3.27 AlarmRuleDetail ...................................................................................................... 237
A.3.28 AlarmRuleOperation ............................................................................................... 237
A.3.29 AlarmRule ............................................................................................................... 237
A.3.30 AlarmTimeInfo ........................................................................................................ 238
A.3.31 ANPRInfo ................................................................................................................ 238

vii
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

A.3.32 Area ........................................................................................................................ 238


A.3.33 AreaBrief ................................................................................................................. 239
A.3.34 AreaInfo .................................................................................................................. 239
A.3.35 AssociateResId ........................................................................................................ 239
A.3.36 AssociateResInfo ..................................................................................................... 239
A.3.37 Attachment ............................................................................................................. 240
A.3.38 BasicInfo(1) ............................................................................................................. 240
A.3.39 BasicInfo(2) ............................................................................................................. 240
A.3.40 BriefArea ................................................................................................................. 241
A.3.41 Building ................................................................................................................... 242
A.3.42 BuildingSearchCriteria ............................................................................................ 242
A.3.43 CameraChannel ...................................................................................................... 242
A.3.44 CameraInfo ............................................................................................................. 243
A.3.45 Card(1) .................................................................................................................... 243
A.3.46 Card(2) .................................................................................................................... 244
A.3.47 CardFailed ............................................................................................................... 244
A.3.48 CertificateInfo ......................................................................................................... 244
A.3.49 CertificateStatus ..................................................................................................... 244
A.3.50 ChannelInfo ............................................................................................................ 245
A.3.51 CloudStorage .......................................................................................................... 245
A.3.52 CloudStorageInfo .................................................................................................... 246
A.3.53 CloudStorageDetail ................................................................................................. 246
A.3.54 CombineBaseInfo .................................................................................................... 246
A.3.55 CombineDeviceInfo ................................................................................................ 247
A.3.56 CombineEvent ........................................................................................................ 247
A.3.57 CombineEventData ................................................................................................. 247
A.3.58 CombineResourceInfo ............................................................................................ 248
A.3.59 CommonFailed ........................................................................................................ 248

viii
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

A.3.60 DataBean ................................................................................................................ 248


A.3.61 Device ..................................................................................................................... 249
A.3.62 DeviceBaseInfo ....................................................................................................... 249
A.3.63 DeviceBrief ............................................................................................................. 250
A.3.64 DeviceByResource .................................................................................................. 250
A.3.65 DeviceInfo ............................................................................................................... 250
A.3.66 DeviceInfo (2) .......................................................................................................... 251
A.3.67 DeviceList ................................................................................................................ 251
A.3.68 DeviceTalkInfo ......................................................................................................... 251
A.3.69 DevInfo ................................................................................................................... 252
A.3.70 DoorChannel ........................................................................................................... 252
A.3.71 DoorInfo .................................................................................................................. 253
A.3.72 DriverInfo ................................................................................................................ 253
A.3.73 ElementDetail ......................................................................................................... 253
A.3.74 ElementStatus ......................................................................................................... 254
A.3.75 Event(1) .................................................................................................................. 254
A.3.76 Event(2) .................................................................................................................. 255
A.3.77 EventSource ............................................................................................................ 255
A.3.78 FailedResult ............................................................................................................ 255
A.3.79 Finger(1) ................................................................................................................. 256
A.3.80 Finger(2) ................................................................................................................. 256
A.3.81 FingerFailed ............................................................................................................ 256
A.3.82 GetDeviceInfo ......................................................................................................... 257
A.3.83 GetDevicesResVo .................................................................................................... 257
A.3.84 GPSInfo ................................................................................................................... 258
A.3.85 IdNameInfo ............................................................................................................. 258
A.3.86 IgnoreRecurring ...................................................................................................... 258
A.3.87 ImportToArea .......................................................................................................... 259

ix
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

A.3.88 IntelliInfo ................................................................................................................. 259


A.3.89 LicenseInfo .............................................................................................................. 260
A.3.90 LinkageAlarmOutput ............................................................................................... 260
A.3.91 LinkageCamera ....................................................................................................... 260
A.3.92 LinkageConfig .......................................................................................................... 261
A.3.93 LinkageItem ............................................................................................................ 261
A.3.94 LinkAlarmOutput .................................................................................................... 262
A.3.95 LinkCamera ............................................................................................................. 262
A.3.96 LinkCapturePicture ................................................................................................. 262
A.3.97 LinkEmail ................................................................................................................. 262
A.3.98 LocalStorage ........................................................................................................... 263
A.3.99 Notification ............................................................................................................. 263
A.3.100 PackageDetails ...................................................................................................... 263
A.3.101 PackageOverview .................................................................................................. 264
A.3.102 Person ................................................................................................................... 264
A.3.103 PersonBaseInfo(1) ................................................................................................. 264
A.3.104 PersonBaseInfo(2) ................................................................................................. 265
A.3.105 PersonDTO ............................................................................................................ 266
A.3.106 PersonGroup ......................................................................................................... 267
A.3.107 PersonInfo(1) ........................................................................................................ 268
A.3.108 PersonInfo(2) ........................................................................................................ 268
A.3.109 PictureInfo ............................................................................................................ 269
A.3.110 PlateRect ............................................................................................................... 269
A.3.111 Priority .................................................................................................................. 269
A.3.112 QueueInfo ............................................................................................................. 269
A.3.113 QueueRelatedInfo ................................................................................................. 270
A.3.114 ReceivingSchedule ................................................................................................ 270
A.3.115 Recipients ............................................................................................................. 271

x
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

A.3.116 RecordInfo ............................................................................................................ 271


A.3.117 RecordSetting ....................................................................................................... 272
A.3.118 RemoteControl ..................................................................................................... 273
A.3.119 RemoteControlResponse ...................................................................................... 273
A.3.120 ResidentFilter ........................................................................................................ 274
A.3.121 ResidentSearchRequest ........................................................................................ 274
A.3.122 Resource ............................................................................................................... 274
A.3.123 ResourceAddResult ............................................................................................... 275
A.3.124 RoomDTO .............................................................................................................. 275
A.3.125 RoomFilter ............................................................................................................ 276
A.3.126 RoomSearchCriteria .............................................................................................. 277
A.3.127 RoomVO ................................................................................................................ 277
A.3.128 Schedule ............................................................................................................... 278
A.3.129 SelfRelated ............................................................................................................ 278
A.3.130 ServicePackage ..................................................................................................... 278
A.3.131 ServicePackageOverview ...................................................................................... 279
A.3.132 TempAuth ............................................................................................................. 279
A.3.133 TempAuthFilter ..................................................................................................... 280
A.3.134 TempAuthSearchRequest ..................................................................................... 280
A.3.135 TemperatureInfo ................................................................................................... 281
A.3.136 TimeRange ............................................................................................................ 281
A.3.137 TimeSchedule ....................................................................................................... 281
A.3.138 TimeSetting ........................................................................................................... 282
A.3.139 TimeSpan .............................................................................................................. 282
A.3.140 TimeZone .............................................................................................................. 282
A.3.141 TimeZoneInfo ........................................................................................................ 282
A.3.142 TimeZoneDst ......................................................................................................... 283
A.3.143 TotalTimeCardReportData .................................................................................... 283

xi
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

A.3.144 User ...................................................................................................................... 285


A.3.145 VehicleInfo(1) ........................................................................................................ 285
A.3.146 VehicleInfo(2) ........................................................................................................ 286
A.3.147 VehicleInfo(3) ........................................................................................................ 286
A.3.148 VehicleRelatedInfo ................................................................................................ 286
A.4 Status and Error Code ........................................................................................................ 287

xii
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Chapter 1 Overview

1.1 Introduction
Hik Connect for Teams (HikCentral Connect), Hikvision's VSaaS (Video Security as a Service)
platform for unified security management, provides open capabilities and APIs for the
management of user accounts, resources, and alarms/events. Based on the open capabilities, the
third-party manufacturers and developers are able to fast integrate different applications. This
document introduces the application scenarios, APIs, and API calling methods in details.
Before starting integration, make sure you have acquired the following skills and knowledge.
● Master one or multiple common programming languages such as JAVA and C++.

● Gain the basic knowledge of video security, such as camera, PTZ control, and alarm.

For getting started, you are recommended to read this manual in the following order to help you
fast learn the available capabilities and APIs.
1. Take a glance at the terms and definitions in Terms and Definitions .
2. See open capabilities in Open Capabilities for reference.
3. See API calling flows and typical applications in Typical Applications .
4. Check the APIs to be used based on your service needs.
5. See API calling rules, signature and authentication, and response rules in Protocol Summary .
6. See API reference to get the request URI, request parameters, and response parameters in API
Reference .

1.2 Open Capabilities


The open capabilities of HikCentral Connect for application integration include system, resource,
alarm, and video.

1.2.1 System Capabilities


System capabilities are about services concerning several platform operations and login including
login authentication, getting platform and user information, getting streaming token, etc.

1
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Figure 1-1 System Capabilities

1.2.2 Alarm Capabilities


Alarm capabilities are about services such as getting alarm rules, editing alarm rules, subscribing
events, and getting alarm messages.

Note
For alarm types that can be received, see details in Alarm Type .

2
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Figure 1-2 Alarm Capabilities

Note
● If you get a message via POST /api/hccgw/alarm/v1/mq/messages and confirm that you have
received the message via POST /api/hccgw/alarm/v1/mq/messages/complete , you will no
longer be able to get the message even if you call the API again.
● The message can be stored for three days by default.
● It is recommended that you call the two APIs of getting alarm messages and confirming that you
have received the messages every 500ms. Make sure that you start to time the interval after you
have finished calling the API of confirming that you have received the messages.

1.2.3 Resource Capabilities


Resource capabilities are about services concerning getting device information including area
information, camera information, alarm information, etc.

3
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Figure 1-3 Resource Capabilities

1.2.4 Video Capabilities


Video capabilities are about services including getting recording schedule templates and getting
playback addresses.

4
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Figure 1-4 Video Capabilities

Note
Currently no-plugin video playing is only supported in Singapore, North America, South America,
and Europe. It is not supported in India or Russia.

1.2.5 Message Capabilities


Message capabilities are about services including subscribing to messages, unsubscribing from
messages, getting messages, etc.

Figure 1-5 Message Capabilities

1.2.6 Person Management Capabilities


Person management capabilities include getting department list, adding/deleting persons,
updating basic information of persons, viewing information of single person, searching for person
list, collecting/updating fingerprints, collecting/updating cards, updating PIN code, updating face
pictures, and fast adding persons.

Figure 1-6 Person Management Capabilities

5
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

1.2.7 Video Intercom Capabilities


Video intercom capabilities are about services including building/room management, resident
management, temporary pass management, and call management.

Figure 1-7 Video Intercom Capabilities

1.2.8 Access Control Capabilities


Access control capabilities include opening door remotely, getting Bluetooth encryption
information, searching for card swiping records, and applying person's access level.

Figure 1-8 Access Control Capabilities

1.2.9 On-Board Monitoring Capabilities


On-board monitoring capabilities are about services including managing on-board devices and
vehicles linked to on-board device, subscribe to and get alarms and messages, etc.

6
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Figure 1-9 On-Board Monitoring Capabilities

Note
● Each on-board device and each vehicle are in one-to-one correspondence. An on-board device
cannot be linked to multiple vehicles.
● Messages are raw information uploaded by device. Alarms are messages processed by alarm
rules on the platform.
● You can subscribe to and get alarms of vehicles linked to on-board devices ( Alarm Type ). See
details of API calling flow in Subscribe to and Get Alarms .
● You can subscribe to and get messages of vehicles linked to on-board devices ( Message Type ).
See details of API calling flow in Subscribe to and Get Messages .
● The information of a vehicle linked to an on-board device includes the license plate No., driver's
name, driver's phone No., vehicle type, annotations, and linked on-board device serial No.
● Live view, playback, and two-way audio without plug-in are all developed via the JSSDK toolkit.
For two-way audio with on-board devices, you should enter 1 as the camera channel No.

1.2.10 Attendance Capabilities


The attendance capabilities involve the report exporting service, including searching for Total Time
Card.

Figure 1-10 Attendance Capabilities

7
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

1.3 Terms and Definitions

Term Description
OpenAPI The publicly available APIs (application programming
interfaces) that provide developers with programmatic access
to proprietary software applications or web services.
Hik Connect for Teams A video security management platform.
HTTP Method A set of request methods defined by HTTP to indicate the
desired action to be performed for a given resource. The
useful methods include GET (get resources), PUT (set or
update resources), POST (add or search resources), and
DELETE (delete resources).
header (Request Header) The supplemental data at the beginning of a request data
block, usually in key-value pairs. For example, "Accept:text/
plain".
path HTTP request path, which follows the domain name or IP
address (port No.). For example, if the request address is
"www.example.com/artemis/api", then the path refers to "/
artemis/api".
query The parameters in the request address. For example, in the
address "www.example.com/artemis/api?a=b&c=d", the
queries are "a" and "c" and their values are "b" and "d"
respectively.
bodyForm The parameters in key-value pairs in the request body sent by
POST method.
AK Access key, which relates with the secret access key. They are
used in pair to encrypt the signature in the request. It refers to
appKey in this manual.
SK Secret access key, which is used to mark the sender and
prevent the request from being modified during signature
encryption. It is used together with the access key and refers
to appSecret in this manual.
Message Refers to the content uploaded by the device actively when
there is no external trigger source.
Alarm Refers to the content uploaded by the device when the
configured alarm rules are triggered.

8
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

1.4 Update History

Summary of Changes in Version 2.11.0_Nov., 2024


1. Added the API of transmitting ISAPI protocol transparently (parameters transparently
transmitted directly from OpenAPI to Hik-Connect): POST /api/hccgw/proxy/v1/isapi/
proxypass ;
Added the API of getting alarm input status (parameters transparently transmitted directly from
OpenAPI to Hik-Connect): POST /api/hccgw/proxy/v1/areas/alarminputs/status/get ;
2. Added the API of getting person's QR code: POST /api/hccgw/person/v1/persons/qrcode ;
3. Added the API of getting the vehicle ACC status: POST /api/hccgw/resource/v1/accstatus/
search ;
4. Added 3 APIs of Alarm Subscription (V2) and added the corresponding events Alarm Type (V2) :
- Added APIs of subscribing to events: POST /api/hccgw/combine/v1/mq/subscribe ;
- Added APIs of pulling events: POST /api/hccgw/combine/v1/mq/messages ;
- Added APIs of confirming events are received: POST /api/hccgw/combine/v1/mq/messages/
complete ;
5. Added 4 types of event messages: Event Message ;
6. Corrected and adjusted Alarm Type and Message Type ;
7. Corrected several object descriptions.

Summary of Changes in Version 6.2.1_Apr., 2024


1. Extended AlarmMsg and added ANPRInfo , PictureInfo , and PlateRect .
2. Added Attendance Capabilities and a corresponding typical application Search for Attendance
Data :
- added the API of searching for Total Time Card POST /api/hccgw/attendance/v1/report/
totaltimecard/list ;
- added the time/date format types Date Format Type , Time Format Type , and Time Duration
Format Type ;
- added the object description of Total Time Card report data TotalTimeCardReportData .

Summary of Changes in Version 6.2.0_Mar., 2024


1. Extended Person Management Capabilities and added relevant typical applications Add Person
and Update Fingerprint/Card Information :
- extended request parameters for the API of getting department list POST /api/hccgw/
person/v1/groups/search ;
- added the API of adding person on the platform POST /api/hccgw/person/v1/persons/add ;
- added the API of deleting person POST /api/hccgw/person/v1/persons/delete ;
- added the API of updating person's basic information POST /api/hccgw/person/v1/persons/
update ;
- added the API of updating person's face picture POST /api/hccgw/person/v1/persons/
photo ;

9
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

- added the API of collecting fingerprint by device POST /api/hccgw/person/v1/persons/


fingercollect ;
- added the API of updating person's fingerprint information POST /api/hccgw/person/v1/
persons/updatefingers ;
- added the API of collecting card by device POST /api/hccgw/person/v1/persons/cardcollect ;
- added the API of updating person's card information POST /api/hccgw/person/v1/persons/
updatecards ;
- added the API of updating person's PIN code information POST /api/hccgw/person/v1/
persons/updatepincode ;
- added the API of viewing information of a single person POST /api/hccgw/person/v1/
persons/get ;
- added the API of fast adding a person POST /api/hccgw/person/v1/persons/quick/add ;
- added the API of searching for person list POST /api/hccgw/person/v1/persons/list .
2. Extended Access Control Capabilities and added the typical application Apply Access Level :
- added the API of searching for card swiping records POST /api/hccgw/acs/v1/event/
certificaterecords/search ;
- added the API of searching for access level list POST /api/hccgw/acspm/v1/accesslevel/list ;
- added the API of getting access level applying information by specifying person ID POST /api/
hccgw/acspm/v1/maintain/overview/person/{id}/elementdetail ;
- added the API of assigning access level by person POST /api/hccgw/acspm/v1/accesslevel/
person/add ;
- added the API of removing access level by person POST /api/hccgw/acspm/v1/accesslevel/
person/delete ;
- added the API of modifying access level by person POST /api/hccgw/acspm/v1/accesslevel/
person/modify .
3. Added the typical application Add Resident , Update Resident , and Add Temporary Pass :
Modified the request parameter for the API of adding temporary passes POST /api/hccgw/
vims/v1/tempauth/add and API of updating temporary passes POST /api/hccgw/vims/v1/
tempauth/update .
4. Added authentication events in Alarm Type and authentication events Message Type .
5. Added error codes in Status and Error Code .

Summary of Changes in Version 6.0.200_Nov., 2023


1. Extended the response parameters and the corresponding response message for POST /api/
hccgw/resource/v1/device/capturePic and POST /api/hccgw/resource/v1/areas/cameras/
thumbnail/get :
added a response parameter isEncrypted (whether the picture is encrypted).
2. Extended error codes for openAPI Errors :
Added OPEN000501, OPEN000502, OPEN000503, OPEN000504, OPEN000505, OPEN000510,
OPEN000511, OPEN000550, OPEN000552, OPEN000554, OPEN000555, and OPEN000556.

10
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Summary of Changes_June., 2023


1. Extended the request parameters and the corresponding request message for POST /api/
hccgw/resource/v1/devices/get :
added a request parameter areaID (area ID);
extended the description for the request parameter deviceCategory.
2. Added an API for synchronously refreshing device status: POST /api/hccgw/resource/v1/
device/{deviceId}/refresh .
3. Extended the response parameters and the corresponding response message for POST /api/
hccgw/alarm/v1/alarmrules/add :
added a response parameter data and the corresponding object description
AlarmRuleOperation .
4. Extended the response parameters and the corresponding response message for POST /api/
hccgw/alarm/v1/alarmrules/update :
added a response parameter data and the corresponding object description
AlarmRuleOperation .
5. Extended the response parameters and the corresponding response message for POST /api/
hccgw/alarm/v1/alarmlinkage/add :
added a response parameter data and the corresponding object description AlarmLinkage .
6. Added an error code OPEN000031 and modified OPEN000006 in Status and Error Code .

Summary of Changes_May., 2023


1. Extended the time threshold from an hour to 2 days for auto-canceling the alarm or message
subscription:
Subscribe to and Get Alarms ;
Subscribe to and Get Messages .
2. Added a validity for the response parameter captureUrl: POST /api/hccgw/resource/v1/
device/capturePic .
Added a validity for the response parameter pictureURL: POST /api/hccgw/resource/v1/areas/
cameras/thumbnail/get .
Added a validity for the response parameter url: POST /api/hccgw/resource/v1/picture/
uploadparam/get .
Added a validity for the parameter URL: AlarmFile .
Added a validity for the parameter url: Attachment .
3. Extended the response parameters and extended the corresponding response message:
POST /api/hccgw/resource/v1/areadetail/get :
added a response parameter areaPath (detailed path starting from the origin area to the
current area) to BriefArea .
4. Added a request parameter reqNumber (information volume per request) and added a
response message: POST /api/hccgw/alarm/v1/mq/messages .
5. Added an API for getting the list of alarm logs: POST /api/hccgw/alarm/v1/alarmlog .
6. Extended the description for the request parameter eventType: POST /api/hccgw/
rawmsg/v1/mq/subscribe .

11
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

7. Added an event type 100657 (Leaving Queue Detection): Alarm Type .


8. Added 2 parameters currentEvent (whether it is real-​time alarm) and queueRelatedInfo
(queuing-alarm related information): AlarmMsg .
9. Extended the description of enable: ImportToArea .
10. Added 6 error codes (OPEN000024, OPEN000025, OPEN000026, OPEN000027, OPEN000028,
and OPEN000029): openAPI Errors .

Summary of Changes in Version 1.2.1_Mar., 2023


1. Added request frequency limit as an API rule and specifies Content-Type as application/json for
data format: API Rules .
2. Added a response parameter areaDomain for GET /api/hccgw/platform/v1/streamtoken/get .
3. Added a request parameter deleteVehicle for POST /api/hccgw/resource/v1/devices/delete .
4. Added a response parameter failedResultList for POST /api/hccgw/vims/v1/person/add .
5. Extended the description for the parameter includeSubArea:
POST /api/hccgw/resource/v1/areas/cameras/get ;
POST /api/hccgw/resource/v1/areas/alarminputs/get ;
POST /api/hccgw/resource/v1/areas/alarmoutputs/get ;
POST /api/hccgw/resource/v1/areas/doors/get .
6. Added an API for capturing pictures by camera channel: POST /api/hccgw/resource/v1/device/
capturePic .
7. Added an API for deleting resources from an area by resource IDs: POST /api/hccgw/
resource/v1/areas/resources/delete .
8. Added an API for getting the alarm input status: POST /api/hccgw/resource/v1/areas/
alarminputs/status/get .
9. Added an API for ISAPI protocol transmission: POST /api/hccgw/video/v1/isapi/proxypass .
10. Added an API for getting door information: POST /api/hccgw/resource/v1/areas/doors/get .
11. Added APIs of on-board monitoring services:
POST /api/hccgw/resource/v1/areas/vehicles/add ;
POST /api/hccgw/resource/v1/areas/vehicles/{id}/update ;
POST /api/hccgw/resource/v1/areas/vehicles/get ;
POST /api/hccgw/resource/v1/picture/uploadparam/get .
12. Added an alarm main category alarmCategoryDriving (On-Board Monitoring) and 2 alarm sub
categories alarmSubCategoryMobileDevice (On-Board Device) and alarmSubCategoryVehicle
(Vehicle Linked to On-Board Device): Alarm Category .
Added a list of alarm types for on-board monitoring: Alarm Type .
Added vehicle (Vehicle Linked to On-Board Device) and mobileDevice (On-Board Device) for
Alarm Source .
Added 2 resource types vehicle (Vehicle Linked to On-Board Device) and door: Resource Type .
Added 2 device categories accessControllerDevice and videoIntercomDevice: Device
Category .
Added a list of message types for on-board monitoring: Message Type .
13. Added a parameter relatedVehicleInfo for AddDeviceResponse .
Added values of type and deleted suffixName for AlarmFile .

12
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Added values of fileContent for AlarmFileInfo .


Added a parameter vehicleRelatedInfo ( VehicleRelatedInfo ) for AlarmMsg and DataBean .
Added a parameter abilitySet ( Capability Set ) and values of online for CameraInfo .
Added parameters uuid, update, and video to Event(1) .
Added two parameters doorChannel and relatedVehicleInfo to GetDeviceInfo .
14. Added object descriptions: DoorChannel ; GPSInfo ; VehicleInfo(2) ; VehicleRelatedInfo .
Changed the object description Picture to Attachment , and extended the parameter url.
Modified the parameter groupId for PersonDTO .
Extended VehicleInfo(3) .
15. Added error codes to Internal Errors and openAPI Errors .

Summary of Changes in Version 1.2_Dec., 2022


Added message-related services, video intercom services, and access control services. See details
in Message-Related Services , Video Intercom Services , and Access Control Services .
Summary of Changes in Version 1.1_Aug., 2022
New document.

13
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Chapter 2 Getting Started


1. Get the Hik Connect for Teams server address and register an account.

Country/Region Server Address


Russia https:/​/​hikcentralconnectru.com
Singapore/India https:/​/​isgp.hikcentralconnect.com
Europe https:/​/​ieu.hikcentralconnect.com
South America https:/​/​isa.hikcentralconnect.com
North America https:/​/​ius.hikcentralconnect.com
2. Obtain the AK and SK from the technical support by providing your Hik Connect for Teams
account.

Note
Make sure you properly keep the AK and SK. Once they are leaked, contact the technical
support to get new AK and SK.
3. Request for the token by providing the AK and SK: POST /api/hccgw/platform/v1/token/get .
4. Call other APIs by providing the token and other parameters as needed.

14
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Chapter 3 Protocol Summary

3.1 API Rules

Name Description
Transmission Protocol HTTPS is adopted to ensure secure transmission.
Request URL Format of request URL: https:/​/​{ hostname }:hostname:{port}/{ uri }
● hostname: the IP address or domain name of Hik Connect for Teams.

● port: the port No. for accessing Hik Connect for Teams.

● uri: the URI of the API. See details in API Reference .

Request Method POST/GET.


Data Format JSON format for both request and response messages. Supports
application/​json as Content-Type.
Character Encoding UTF-8.
Security Authentication Security authentication based on AK/SK that is required before calling
APIs.
Permission Control Only those APIs with calling permission can be called successfully.
Certificate Requirement Not required currently.
Response Rules See details in Response Rules .
Request Frequency No more than 5 times are allowed for request per second.

3.2 Signature and Authentication


The APIs in this document use AK/SK authentication.
Make sure you have applied for and obtained the AK and SK from the technical support. You can
call the login API POST /api/hccgw/platform/v1/token/get by using the AK and SK to get the
authentication token. The validity period of the token is 7 days, within which you can call the login
API repeatedly to refresh the token so that the remaining validity period will be restored to 7 days
again.
The token (the "Token" parameter) should be transmitted in the request Headers for calling other
APIs.
Example
Get the Platform Information
Request address: http://www.example.com/api/hccgw/platform/v1/systemproperties

15
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

HTTP method: GET


Headers:

Accept: application/json, text/plain, */*


Accept-Encoding: gzip, deflate, br
Accept-Language: zh-CN,zh;q=0.9
Cache-Control: no-cache
Connection: keep-alive
Content-Type: application/json;charset=utf-8
Token: hcc.vh5hb9q495qjjei71g3pdmrjslo5wyti
Request
{
}
Response
{
"data": {
"systemGUID": "fe436da09dca4e46996c1178f06c7911"
},
"errorCode": "0"
}

3.3 Response Rules


The response returned after calling APIs contains the response message and status/error code.

Response Message
The response message is in JSON format and encoded by UTF-8 rule. It consists of multiple output
parameters, and the parameters are named by camel case. Refer to the parameter description
below.
{
"errorCode": //Status/error code.
"message": //Error description (not returned for success).
"data"://Returned data in details.
}

Status/Error Code
The status or error code will be returned in the response message. The status code is 0 for success
and other values for failure. Refer to Status and Error Code for details.
Example
Success
{
"data": {
"accessToken": "hcc.vh5hb9q495qjjei71g3pdmrjslo5wyti",

16
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

"expireTime": 1655193135,
"userId": "8a7485aa7f209dd5017f2141adff0019"
},
"errorCode": "0"
}

Example
Failure
{
"message": "SECRET_KEY_NOT_EQUALS{OPEN300002}",
"errorCode": "OPEN300002"
}

17
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Chapter 4 Typical Applications

4.1 Manage Resources


The document provides a full set of APIs to manage resources including devices, areas, cameras,
alarm inputs, alarm outputs and other resources. For example, the APIs can be used to obtain
resource indexCode and perform operations on resources.

Figure 4-1 Sequence Diagram of Getting Resource Information

Note
● By calling physical resource APIs, you can obtain the information of the physical devices,
including single-resource information and all-resource information.
● By calling logical resource APIs, you can obtain site information, root area information,
subordinate organization information of parent areas, single-area information, all-area
information, and detailed area information. Camera information, as a kind of logical resource
added to areas, is part of the area information.

4.2 Subscribe to and Get Alarms


The document provides a full set of APIs to subscribe to alarms and get alarm information.

18
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Figure 4-2 Sequence Diagram of Subscribing to Alarms and Getting Alarms

Note
● It is recommended that the interval of getting alarm information be 500ms.
● If messages are not pulled over within 2 days, the alarm subscription will be canceled.
● If the same alarm is uploaded for the second time, it will be uploaded with attachments (e.g.,
pictures or videos).

19
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

4.3 Configure Alarm Rules

Figure 4-3 Sequence Diagram of Configuring Alarm Rules

20
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

4.4 Subscribe to and Get Messages

Figure 4-4 Sequence Diagram of Subscribing to and Getting Messages

Note
● It is recommended that the interval of getting messages be 500 ms.
● If messages are not received within 2 days, the message subscription will be canceled.

21
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

4.5 Start Live View / Playback Without Plug-in

Figure 4-5 Sequence Diagram of Starting Live View / Playback Without Plug-in

22
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

4.6 Receive Video Intercom Events

Figure 4-6 Sequence Diagram of Receiving Video Intercom Events


1. Get token according to AK and SK. If the token already exists, it is not required to get the token
every time.
2. Call POST /api/hccgw/rawmsg/v1/mq/subscribe to subscribe to video intercom events
(Msg140001).
3. When a device calls, the Hik Connect for Teams platform will send the event messages to
OpenAPI service.
4. The caller calls POST /api/hccgw/rawmsg/v1/mq/messages to get the video intercom
messages.

23
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

5. With the JSSDK in the development kit , the caller can perform live view and video intercom
without plug-in.
6. Based on the received video intercom messages, the caller can call POST /api/hccgw/
devcall/v1/call/receive to respond to the received calls, and can then call POST /api/
hccgw/acs/v1/remote/control to open the door remotely.

4.7 Get Department List

Figure 4-7 Sequence Diagram of Getting Department List


Hik Connect for Teams OpenAPI supports getting department list.

24
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

4.8 Open Door via Bluetooth

Figure 4-8 Sequence Diagram of Opening Door via Bluetooth


1. Get token according to AK and SK. If the token already exists, it is not required to get the token
every time.
2. Call GET /api/hccgw/acs/v1/encryptinfo/get to get the Bluetooth encryption key, which is
unique and will not change.
3. With the Bluetooth encryption key, the caller can use Bluetooth SDK to open door through
access control devices / video intercom devices.

25
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

4.9 Manage On-Board Monitoring

Figure 4-9 Sequence Diagram of Managing On-Board Monitoring

26
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

1. Call POST /api/hccgw/resource/v1/devices/add to add on-board devices. When adding


devices, you should link them with existing vehicles or add new vehicles to the platform to be
linked with.

Note
- When linking the on-board device with an existing vehicle, make sure the device and vehicle
are in the same area.
- All logical resources of the added on-board devices will be imported to the area of linked
vehicles.
- Support separate management of on-board devices and linked vehicles. See details in Device
Information and On-Board Monitoring Services respectively.
2. Call POST /api/hccgw/resource/v1/picture/uploadparam/get to upload pictures and link them
with vehicles. Currently a vehicle can only be linked with one picture.
3. When you add vehicles, the corresponding vehicle area will be created by the platform. The
vehicle and its area share the same ID. If you delete a vehicle, its area will also be deleted. See
details of deleting vehicles in POST /api/hccgw/resource/v1/areas/resources/delete .

Note
The free package only supports adding 10 vehicles and 8 camera channels, and some functions
are limited. If you want to access more functions, please contact the service provider.

27
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

4.10 Add Person

Figure 4-10 Sequence Diagram of Adding Person


1. Get token according to AK and SK. If the token already exists, it is not required to get the token
every time.
2. Call POST /api/hccgw/person/v1/groups/search to get the department list. The obtained
department ID can be used for subsequent person adding.
3. Call POST /api/hccgw/person/v1/persons/add to add persons on the platform.

Note
After the person is added successfully, you can perform the following operations as needed.
- For adding credential information, proceed to the next step.
- For adding this person to device, refer to Apply Access Level .
- For fast adding a person and fast applying the person's face picture and PIN code to device
with a single protocol, refer to POST /api/hccgw/person/v1/persons/quick/add .
4. Call POST /api/hccgw/person/v1/persons/photo to update person's profile information.

28
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Call POST /api/hccgw/person/v1/persons/updatepincode to update person's PIN information.


For updating person's fingerprint/card information, refer to Update Fingerprint/Card
Information .

Note
Operations on person's credential information are not in sequence.

4.11 Apply Access Level

Figure 4-11 Sequence Diagram of Applying Access Level


1. Users should add access group(s) on the platform first.
2. Get token according to AK and SK. If the token already exists, it is not required to get the token
every time.
3. Call POST /api/hccgw/acspm/v1/accesslevel/list to get the access group information added in
step 1.
4. Call POST /api/hccgw/person/v1/persons/list to get the person information.
5. With information obtained in the previous 2 steps, call POST /api/hccgw/acspm/v1/
accesslevel/person/add to assign access level by person, call POST /api/hccgw/acspm/v1/
accesslevel/person/delete to remove access level by person, and call POST /api/hccgw/
acspm/v1/accesslevel/person/modify to modify person's access level.

29
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

6. Call POST /api/hccgw/acspm/v1/maintain/overview/person/{id}/elementdetail to get the


access level applying information.
7. After the person is linked with the access group, updates on the basic person information and
linked credential information (face picture, card, and fingerprint) will synchronize with those on
device of the access group.

4.12 Update Fingerprint/Card Information

Figure 4-12 Sequence Diagram of Updating Fingerprint/Card Information


1. Get token according to AK and SK. If the token already exists, it is not required to get the token
every time.
2. Call POST /api/hccgw/person/v1/persons/fingercollect to collect fingerprint information.
Call POST /api/hccgw/person/v1/persons/cardcollect to collect card information.
3. Call POST /api/hccgw/person/v1/persons/updatefingers to update fingerprint information.
Call POST /api/hccgw/person/v1/persons/updatecards to update card information.

Note
The fingerprint information must be collected from device.
For card without card No. showing, the card information can be collected from device; for card
with card No. showing, the card information does not need to be collected from device.

30
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

4.13 Add Temporary Pass

Figure 4-13 Sequence Diagram of Adding Temporary Pass


1. Get token according to AK and SK. If the token already exists, it is not required to get the token
every time.
2. Call POST /api/hccgw/acspm/v1/accesslevel/list to get access level list.
3. Call POST /api/hccgw/vims/v1/tempauth/add to add temporary pass. After it is added, with
returned password and QR code information, you can perform verification on the access level
linked device.

Note
There are 2 types of QR codes: dynamic QR code and static QR code. The dynamic one is only
valid for 60 seconds from the moment it is obtained, therefore, it is recommended to call
POST /api/hccgw/vims/v1/tempauth/get every 60 seconds to get a valid dynamic QR code.
Once the new dynamic QR code is obtained and used, the previous one will be invalid. The static
QR code is valid during the whole temporary pass period. Users can choose to configure the
dynamic or static QR code on the HikCentral Connect or Hik Connect for Teams platform, and
the dynamic or static QR code will be returned accordingly.

31
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

4.14 Add Resident

Figure 4-14 Sequence Diagram of Adding Resident


1. Get token according to AK and SK. If the token already exists, it is not required to get the token
every time.
2. Call POST /api/hccgw/vims/v1/room/search to get the room list. Currently only adding room
information via HCC/HCT is allowed. You can contact the technical support for guidance and
help.
3. (Optional) Call POST /api/hccgw/acspm/v1/accesslevel/list to get the access level list.

Note
If the building linked with the room owns device, the resident will be automatically assigned
with the access level of the building. Call this API if there are still other access levels to be
assigned to this resident.
4. Call POST /api/hccgw/vims/v1/person/add to add a resident.
5. For adding information (face picture, fingerprint, card, and/or PIN) for the resident, refer to step
4 in Add Person . As a resident is a person owning room, the protocol for persons also applies.

32
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

4.15 Update Resident

Figure 4-15 Sequence Diagram of Updating Resident


1. Get token according to AK and SK. If the token already exists, it is not required to get the token
every time.
2. (Optional) Call POST /api/hccgw/vims/v1/room/search to get the room list.

Note
- Currently only adding room information via HCC/HCT is allowed. You can contact the technical
support for guidance and help.
- Skip this step if you do not wish to add room for the resident.

33
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

3. (Optional) Call POST /api/hccgw/acspm/v1/accesslevel/list to get the access level list.

Note
If the building linked with the room owns device, the resident will be automatically assigned
with the access level of the building. Call this API if there are still other access levels to be
assigned to this resident.
4. Call POST /api/hccgw/vims/v1/person/search to get the resident information as well as the
linked room information.
5. Call POST /api/hccgw/vims/v1/person/update to update the resident information (basic
resident information and the linked room information).

Note
- If the resident owns 2 rooms, the information of both room should be entered as request
parameters; if not, the room left will be deleted by default.
- If you only want to update the basic information of the resident (no room information
involved), you can also call the API of updating person information: POST /api/hccgw/
person/v1/persons/update .
6. For adding information (face picture, fingerprint, card, and/or PIN) for the resident, refer to step
4 in Add Person . As a resident is a person owning room(s), the protocol for persons also
applies.

4.16 Search for Attendance Data

Figure 4-16 Sequence Diagram of Searching for Attendance Data

34
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

1. Get token according to AK and SK. If the token already exists, it is not required to get the token
every time.
2. (Optional) Call POST /api/hccgw/acs/v1/event/certificaterecords/search to search for card
swiping records, to check if a specific person has performed attendance check on the device on
a specific day.
3. Call POST /api/hccgw/attendance/v1/report/totaltimecard/list to search for attendance result
data, to get the attendance result of a specific person on a specific day, including the
corresponding attendance duration and attendance status.

35
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Chapter 5 API Reference

Note
This manual lists all the available APIs provided by Hik Connect for Teams. However, some APIs may
be unavailable since it depends on the capabilities of different encoding devices. You can view the
available API list for the current Portal of Hik Connect for Teams in the developing environment.

5.1 System-Related Services

5.1.1 Get Token

POST /api/hccgw/platform/v1/token/get
Get the authentication token for calling the development platform via appkey(AK) and
appSecret(SK) verification.

Request URL
https://[serverAddress]:[serverPort]/api/hccgw/platform/v1/token/get
Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Content-Type Req. String Header Only application/​json is
supported.
appKey Req. String Body appkey(AK). The maximum
length is 64.
secretKey Req. Number Body appSecret(SK). The maximum
length is 64.

Request Example
{
"appKey":"cewm9w0qjhv3i290uufnyxzp25l6ym7e",
"secretKey":"s77w0ckmlyetp2lhfqw8p8zgm23pkpw7"
}

36
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).
Each code can contain up to 32
characters.
data Req. Object Data returned by the successful
request. See details in the data Object
Description below.

Table 5-1 data Object Description

accessToken Req. String It is used as the node


Token for the following
APIs. The maximum
length is 64.
expireTime Req. Integer Expiry time. The
maximum length is 16.
userId Req. String User ID. The maximum
length is 64.
areaDomain Req. String Name of the domain
where the server is
located (for composing
URLs).

Response Example
{
"data": {
"accessToken": "hcc.vh5hb9q495qjjei71g3pdmrjslo5wyti",
"expireTime": 1655193135,
"userId": "8a7485aa7f209dd5017f2141adff0019"
"areaDomain": "https://isgp.hikcentralconnect.com"
},
"errorCode": "0"
}

37
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

5.1.2 System Operation

GET /api/hccgw/platform/v1/systemproperties
Get the Hik Connect for Teams platform information.

Request URL
https://[serverAddress]:[serverPort]/api/hccgw/platform/v1/systemproperties
Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header The maximum length is 64.

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).
Each code can contain up to 32
characters.
data Req. Object Data returned by the successful
request. See details in the data Object
Description below.

Table 5-2 data Object Description


Parameter Name Req. or Opt. Data Type Description
systemGUID Opt. String System ID. The maximum length is
64.

Response Example
{
"data": {
"systemGUID": "fe436da09dca4e46996c1178f06c7911"
},

38
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

"errorCode": "0"
}

GET /api/hccgw/platform/v1/servicepackage
Get the package usage information (package type, total purchases, etc.) of the Hik Connect for
Teams platform where the current user is logged in.

Request URL
https://[serverAddress]:[serverPort]/api/hccgw/platform/v1/servicepackage
Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header The maximum length is 64.

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).
Each code can contain up to 32
characters.
data Req. Object Data returned by the successful
request. See details in the data Object
Description below.

Table 5-3 data Object Description


Parameter Name Req. or Opt. Data Type Description
packageOverview Opt. PackageOverview The package overview.
packageDetails Opt. PackageDetails The package details.

Response Example
{
"data": {
"packageOverview": {
"servicePackageOverview": [

39
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

{
"serviceType": "serviceVideo",
"packageType": "3",
"usingAmount": "18",
"remainingAmount": "92",
"totalAmount": "110",
"lastExpiredTime": "1655697132000",
"packageStatus": 2,
"cloudStorage": {
"usingAmountFor7Days": "0",
"usingAmountFor30Days": "2",
"remainingAmount": "6"
}
},
{
"serviceType": "serviceVehicle",
"packageType": "1",
"usingAmount": "9",
"remainingAmount": "1",
"totalAmount": "10",
"lastExpiredTime": "4102329600000",
"packageStatus": 0
}
]
},
"packageDetails": {
"servicePackage": [
{
"serviceType": "serviceVideo",
"packageType": "3",
"activationTime": "1645243200000",
"expiredTime": "1655697132000",
"cloudStorage": []
},
{
"serviceType": "serviceVideo",
"packageType": "3",
"activationTime": "1647834732000",
"expiredTime": "1655783532000",
"cloudStorage": []
},
{
"serviceType": "serviceVideo",
"packageType": "1",
"activationTime": "1645530404870",
"expiredTime": "7257916800000",
"cloudStorage": []
},
{
"serviceType": "serviceVehicle",
"packageType": "1",
"activationTime": "1645530404870",

40
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

"expiredTime": "7257916800000"
}
]
}
},
"errorCode": "0"
}

GET /api/hccgw/platform/v1/streamtoken/get
Get the Hik-Connect streaming token via the current account, and stream via Hik-Connect SDK
according to the information returned by the API.

Request URL
https://[serverAddress]:[serverPort]/api/hccgw/platform/v1/streamtoken/get
Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header The maximum length is 64.

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).
Each code can contain up to 32
characters.
data Req. Object Data returned by the successful
request. See details in the data Object
Description below.

41
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Table 5-4 data Object Description


Parameter Name Req. or Opt. Data Type Description
appKey Opt. String Hik-Connect account appkey. The
maximum length is 64.
appToken Opt. String Hik-Connect streaming token. The
maximum length is 64.

Note
The validity period of the token is 7
days, within which you can call this
API repeatedly to refresh the token
so that the remaining validity period
will be restored to 7 days again.

streamAreaDomai Opt. String Hik-Connect domain name.


n
expireTime Opt. String Expiry time. The maximum length is
16.

Response Example
{
"data": {
"appKey": "ceec5568a64916c72dbeb75f2c6bb3ef",
"appToken": "at.5rmgt7658l535evhapzn3h4b370yxhft-4u9zipalvq-14f9b7j-vuvcag8hn",
"streamAreaDomain": "https://isgpopen.ezvizlife.com",
"expireTime": "1655719632454"
},
"errorCode": "0"
}

POST /api/hccgw/platform/v1/users/get
Get the system user list via the current account. The user list obtained can be used in alarm rule
configuration.

Request URL
https://[serverAddress]:[serverPort]/api/hccgw/platform/v1/users/get

42
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header The maximum length is 64.
pageIndex Req. Integer Body The current page.
pageSize Req. Integer Body Number of records on each
page.

Request Example
{
"pageIndex":1,
"pageSize":10

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).
Each code can contain up to 32
characters.
data Req. Object Data returned by the successful
request. See details in the data Object
Description below.

Table 5-5 data Object Description


Parameter Name Req. or Opt. Data Type Description
totalCount / Integer Number of total pages.
pageIndex / Integer The current page.
pageSize / Integer Number of records on each page.
user / User [] User information.

43
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Response Example
{
"data": {
"totalCount": 5,
"pageIndex": 1,
"pageSize": 10,
"user": [
{
"id": "8a74899f82157836018215dc643d037f",
"name": "22"
},
{
"id": "8a74899f82157836018215b5c7aa0377",
"name": "11"
},
{
"id": "8a748b0d82142e4f0182150971c10369",
"name": "222333"
},
{
"id": "8a748b3181a510aa0181a53fef2e1210",
"name": "lmklmk"
},
{
"id": "8a7489d68161eaf9018161f84bb70004",
"name": "abc"
}
]
},
"errorCode": "0"
}

5.2 Resource-Related Services

5.2.1 Physical Resources

Device Information

POST /api/hccgw/resource/v1/devices/add
Add device by specifying the device serial No., etc.

44
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Request URL
https://[serverAddress]:[serverPort]/api/hccgw/resource/v1/devices/add
Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header The maximum length is 64.
deviceCategor Req. Device Body Device category. The maximum
y Category length is 32.
deviceInfo Req. DeviceInfo Body Device information.
importToArea Opt. ImportToArea Body Whether to import to area
automatically.
timeZone Req. TimeZone Body Time zone information.
vehicleInfo Opt. VehicleInfo(3) Body On-Board device information.

Note
This node is required when the
device category is on-board
device.

Request Example
{
"deviceCategory": "encodingDevice",
"deviceInfo": {
"name": "ceshi",
"ezvizSerialNo": "G81652987",
"ezvizVerifyCode": "hcc12345",
"userName": "",
"password": "",
"streamSecretKey":""
},
"importToArea": {
"areaID": "",
"enable": "0"
},
"timeZone": {
"id": "26",
"applyToDevice": "1"
}
}

45
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).
Each code can contain up to 32
characters.
data Req. Object Data returned by the successful
request. See details in the data Object
Description below.

Table 5-6 data Object Description


Parameter Name Req. or Opt. Data Type Description
addDeviceRespon Opt. AddDeviceRespon The information returned for adding
se se devices.

Response Example
{
"data": {
"addDeviceResponse": {
"failed": 1,
"succeeded": 0,
"total": 1,
"deviceList": [
{
"alias": "ceshi",
"deviceId": "",
"deviceSerial": "G81652987",
"errorCode": "EVZ20010"
}
]
}
},
"errorCode": "0"
}

POST /api/hccgw/resource/v1/devices/update
Edit device information.

46
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Request URL
https://[serverAddress]:[serverPort]/api/hccgw/resource/v1/devices/update
Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header The maximum length is 64.
deviceInfo Req. DeviceInfo (2) Body Device information.
timeZone Opt. TimeZone Body Time zone information.

Request Example
{
"deviceInfo":{
"id":"4606458718594636bb0487029f759684",
"name":"NVR_test221",
"userName":"admin",
"password":"Abc12345"
},
"timeZone":{
"id":"19",
"applyToDevice":"1"
}
}

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).
Each code can contain up to 32
characters.

Response Example
{
"errorCode": "0"
}

47
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

POST /api/hccgw/resource/v1/devices/get
Get the device list by specifying device information.

Request URL
https://[serverAddress]:[serverPort]/api/hccgw/resource/v1/devices/get
Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header The maximum length is 64.
pageIndex Req. Integer Body The current page.
pageSize Req. Integer Body Number of records on each
page, which is between 1 and
500.
areaID Opt. String Body Area ID, which is used
exclusively with jobNumber.
deviceCategor Opt. String Body Device category (encoding
y device, on-board device, alarm
device,etc.). The maximum
length is 32. When the node
jobNumber is involved,
multiple device categories can
be configured (separated by
comma); in other cases,
searching by multiple device
categories is not supported.
filter Opt. Object Body Search condition. See details in
the filter Object Description
below.

48
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Table 5-7 filter Object Description


Parameter Req. or Opt. Data Type Parameter Description
Type
matchKey Opt. String Body Fuzzy search; search fields
including device name, device
serial No., and device version.
jobNumber Opt. String Body Work order No. The maximum
length is 128.

Request Example
{
"pageIndex":1,
"pageSize":10,
"deviceCategory":"encodingDevice",
"areaID":"420be45bdeb2407c84dc58b3caf056c4",
"filter":{
"matchKey":"0",
"jobNumber":"0"
}
}

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).
Each code can contain up to 32
characters.
data Req. GetDevicesResVo Device list structure.

Response Example
{
"data": {
"pageIndex": 1,
"pageSize": 10,
"totalCount": 2,
"device": [
{
"id": "037d62d6cf0744e39d2274b64fdd279c",
"name": "10.18.67.249",
"category": "encodingDevice",

49
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

"type": "iDS-9664NXI-I8/X",
"serialNo": "J88106219",
"version": "V4.60.110 build 220303",
"timeZone": "30",
"onlineStatus": 1,
"addTime": "2022-06-20 11:12:10"
},
{
"id": "4481afd6a2ee425eaa9ad77e8fe491f0",
"name": "F68147103",
"category": "encodingDevice",
"type": "DS-9664NI-I8",
"serialNo": "F68147103",
"version": "V4.40.220 build 210125",
"timeZone": "30",
"onlineStatus": 1,
"addTime": "2022-06-20 01:35:10"
}
]
},
"errorCode": "0"
}

POST /api/hccgw/resource/v1/devicedetail/get
Search for and get the device information by device serial No.

Request URL
https://[serverAddress]:[serverPort]/api/hccgw/resource/v1/devicedetail/get
Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header The maximum length is 64.
deviceSerialN Req. String Body Device serial No. The maximum
o length is 16.

Request Example
{
"deviceSerialNo":"F68147103 "
}

50
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).
Each code can contain up to 32
characters.
data Req. Object Data returned by the successful
request. See details in the data Object
Description below.

Table 5-8 data Object Description


Parameter Name Req. or Opt. Data Type Description
device Opt. GetDeviceInfo The returned device information.

Response Example
{
"data": {
"device": {
"baseInfo": {
"id": "5c263e4293c84eae81720e9e481e33ad",
"name": "F68147103",
"category": "encodingDevice",
"serialNo": "F68147103",
"version": "V4.40.220 build 210125",
"type": "DS-9664NI-I8",
"streamEncryptEnable": "1",
"availableCameraChannelNum": "4",
"availableAlarmInputChannelNum": "10",
"availableAlarmOutputChannelNum": "14"
},
"cameraChannel": [
{
"id": "5b206babd3fd4439b4884acb86e8bd89",
"name": "IPCamera 01",
"no": "1",
"online": "0",
"area": {
"id": "",
"name": ""
}
},
{

51
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

"id": "1c693dbf435e4e5ca048d4dd7efbb33b",
"name": "IPdome",
"no": "2",
"online": "1",
"area": {
"id": "",
"name": ""
}
}
],
"alarmInputChannel": [
{
"id": "1facb548c63746eb8c3eea5b510495d8",
"name": "D 201",
"no": "201",
"online": "1",
"area": {
"id": "",
"name": ""
}
},
{
"id": "dc7b7129f14a424fa8d04bfc846c0343",
"name": "D 202",
"no": "202",
"online": "1",
"area": {
"id": "",
"name": ""
}
}
],
"alarmOutputChannel": [
{
"id": "3a900e5c84b64ab9b0bb1e92089c8c23",
"name": "A 1",
"no": "1",
"online": "1",
"area": {
"id": "",
"name": ""
}
},
{
"id": "4c5fbf177a5c43efa265479e0f9fbb61",
"name": "A 2",
"no": "2",
"online": "1",
"area": {
"id": "",
"name": ""
}

52
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

}
],
"onlineStatus": 1,
"timeZoneID": "30"
}
},
"errorCode": "0"
}

POST /api/hccgw/resource/v1/devices/delete
Delete device by the specifying device ID, etc.

Request URL
https://[serverAddress]:[serverPort]/api/hccgw/resource/v1/devices/delete
Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header The maximum length is 64.
deviceID Req. String[] Body Device ID.
deviceCategor Req. String Body Device category. The maximum
y length is 32.
deleteVehicle Opt. Integer Body Whether to delete the vehicle
synchronously: 0-no (by
default), 1-yes.

Request Example
{
"deviceID":[
"4ab20c2f3ba54daea4e0f569b622c362"
],
"deviceCategory":"encodingDevice"
}

53
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).
Each code can contain up to 32
characters.

Response Example
{
"errorCode": "0"
}

POST /api/hccgw/resource/v1/device/capturePic
Capture pictures by camera channel.

Request URL
https://[serverAddress]:[serverPort]/api/hccgw/resource/v1/device/capturePic
Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header The maximum length is 64.
deviceSerial Req. String[] Body Camera serial No.
channelNo Req. Integer Body Camera channel No.

Request Example
{
"deviceSerial": "F68147103",
"channelNo": 1
}

54
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).
Each code can contain up to 32
characters.
data Req. Object Data returned by the successful
request. See details in the data Object
Description below.
captureUrl Opt. String Returned captured picture URL (valid
for 15 minutes).
isEncrypted Req. Integer Whether the picture is encypted: 1-
encrypted, 0-not encrypted.
After stream encryption is enabled for
device, the captured picture will be
encrypted and requires decryption.
For picture decryption needs, please
contact the technical support for
relevant guide documents.

Response Example
{
"data": {
"captureUrl":"http://10.19.215.172:31677/hcc-dev-2/hccopen/capture/2023-01-12/F68147103/1/29668554-
c828-44ed-b13c-faba96c3697c.jpeg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20230112T024359Z&X-
Amz-SignedHeaders=host&X-Amz-Expires=900&X-Amz-Credential=minio123%2F20230112%2Fap-
southeast-1%2Fs3%2Faws4_request&X-Amz-
Signature=64065497a8b887c1845f4443029096c12daf220533a8ae3bf4662d8f4414a6ff"
"isEncrypted": 0
},
"errorCode": "0"
}

POST /api/hccgw/resource/v1/device/{deviceId}/refresh
Synchronously refresh device status.

55
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Request URL
https://[serverAddress]:[serverPort]/api/hccgw/resource/v1/device/{deviceId}/refresh
Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header The maximum length is 64.
deviceId Req. String Path Device ID.

Request Example
http://dev-3.hikcentralconnect.com/api/hccgw/resource/v1/device/
c6a91398ffeb46888ace8f4667483095 /refresh

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).
Each code can contain up to 32
characters.
data Req. Object Data returned by the successful
request. See details in the data Object
Description below.

Table 5-9 data Object Description


Parameter Name Req. or Opt. Data Type Description
deviceId Req. String Device ID.
status Opt. Integer Device network status: 0-​offline, 1-
online.
errorCode Opt. String Error code, returned when refreshing
device status failed.

Response Example
{
"data": {

56
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

"deviceId": "1aed864a17214f4f8d43f258b9bb4d88",
"status": 1
},
"errorCode": "0"
}
Or
{
"data": {
"deviceId": "1aed864a17214f4f8d43f258b9bb4d88",
"errorCode": " CCF021307"
},
"errorCode": "0"
}

5.2.2 Logical Resources

Areas

POST /api/hccgw/resource/v1/areas/add
Add area by specifying area-related information.

Request URL
https://[serverAddress]:[serverPort]/api/hccgw/resource/v1/areas/add
Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header The maximum length is 64.
parentAreaID Req. String Body Parent area ID. The maximum
length is 32.
areaName Req. String Body Area name. The maximum
length is 64.

Request Example
{
"parentAreaID":"-1",
"areaName":"test_mgz2"
}

57
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).
Each code can contain up to 32
characters.
data Req. Object Data returned by the successful
request. See details in the data Object
Description below.

Table 5-10 data Object Description


Parameter Name Req. or Opt. Data Type Description
areaID / String Area ID created.

Response Example
{
"data": {
"areaID": "1aed864a17214f4f8d43f258b9bb4d88"
},
"errorCode": "0"
}

POST /api/hccgw/resource/v1/areas/get
Get the area list.

Request URL
https://[serverAddress]:[serverPort]/api/hccgw/resource/v1/areas/get
Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header The maximum length is 64.
pageIndex Req. Integer Body The current page.

58
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Parameter Req. or Opt. Data Type Parameter Description


Type
pageSize Req. Integer Body Number of records on each
page, which is between 1 and
500.
filter Opt. Object Body Search condition. See details in
the filter Object Description
below.

Table 5-11 filter Object Description


Parameter Req. or Opt. Data Type Parameter Type Description
parentAreaID Opt. String Body Parent area ID, which can be
used to get the corresponding
child area list. All areas are
included if this node is empty
or "-1". The maximum length is
32.
includeSubAre Opt. String Body Whether to get the
a corresponding child areas: 0
(only get the parent area), -1
(get all corresponding child
areas under the parent area).

Request Example
{
"pageIndex":"1",
"pageSize":"10",
"filter":{
"parentAreaID":"-1",
"includeSubArea":1
}
}

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).

59
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Parameter Req. or Opt. Data Type Description


Each code can contain up to 32
characters.
data Req. Object Data returned by the successful
request. See details in the data Object
Description below.

Table 5-12 data Object Description


Parameter Name Req. or Opt. Data Type Description
totalCount Req. String Number of total records.
pageIndex Req. String The current page.
pageSize Req. String Number of records on each page.
area Opt. BriefArea Area information.
[]

Response Example
{
"data": {
"totalCount": 2,
"pageIndex": 1,
"pageSize": 10,
"area": [
{
"id": "1d3797d6f5c84b4c9720f2d1453b3516",
"name": "10.18.67.249",
"parentAreaID": "-1",
"existSubArea": "0"
},
{
"id": "d9eaa479588b48cb9f79a59ab5fb41b9",
"name": "F68147103",
"parentAreaID": "-1",
"existSubArea": "0"
}
]
},
"errorCode": "0"
}

60
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

POST /api/hccgw/resource/v1/areadetail/get
Get area information by specifying area ID.

Request URL
https://[serverAddress]:[serverPort]/api/hccgw/resource/v1/areadetail/get
Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header The maximum length is 64.
areaID Opt. String[] Body The list of area IDs.

Request Example
{
"areaID":[
"1d3797d6f5c84b4c9720f2d1453b3516","d9eaa479588b48cb9f79a59ab5fb41b9","test"
]
}

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).
Each code can contain up to 32
characters.
data Req. Object Data returned by the successful
request. See details in the data Object
Description below.

Table 5-13 data Object Description


Parameter Name Req. or Opt. Data Type Description
area Opt. BriefArea Area information.

61
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Response Example
{
"data": {
"area": [
{
"id": "1d3797d6f5c84b4c9720f2d1453b3516",
"name": "10.18.67.249",
"parentAreaID": "-1",
"existSubArea": 0,
"areaPath": "area0->area1->area2"
},
{
"id": "d9eaa479588b48cb9f79a59ab5fb41b9",
"name": "F68147103",
"parentAreaID": "-1",
"existSubArea": 0
},
{
"id": "test",
"message": "Area is not exist([id=test]){VMS021101}",
"errorCode": "VMS021101"
}
]
},
"errorCode": "0"
}

Cameras and Alarm Inputs/Outputs

POST /api/hccgw/resource/v1/areas/resources/add
Add resource to area by specifying the resource information.

Request URL
https://[serverAddress]:[serverPort]/api/hccgw/resource/v1/areas/resources/add

62
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header The maximum length is 64.
areaID Req. String Body Area ID. The maximum length
is 32.
devChannel Req. Object[] Body Resource information. See
details in the devChannel
Object Description below.

Table 5-14 devChannel Object Description


Parameter Req. or Opt. Data Type Parameter Description
Name Type
resourceName Req. String Body Resource name. The maximum
length is 64.
resourceType Req. String Body Resource type, e.g., camera,
alarmInput (alarm input),
alarmOutput (alarm output).
The maximum length is 64.
channelID Req. String Body Channel ID, equivalent to the
node id in CameraChannel ,
AlarmInputChannel , and
AlarmOutputChannel from
GetDeviceInfo returned from
POST /api/hccgw/resource/v1/
devicedetail/get. The
maximum length is 32.

Request Example
{
"areaID":"1d3797d6f5c84b4c9720f2d1453b3516",
"devChannel":[
{
"resourceName":"D 201",
"resourceType":"alarmInput",
"channelID":"564138cd313d41dab82b41e73757edaa"
}

63
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

]
}

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).
Each code can contain up to 32
characters.
data Req. Object Data returned by the successful
request. See details in the data Object
Description below.

Table 5-15 data Object Description


Parameter Name Req. or Opt. Data Type Description
resource / ResourceAddResult [] Area-related
information.

Response Example
{
"data": {
"areaID": "1d3797d6f5c84b4c9720f2d1453b3516",
"devChannel": [
{
"id": "239a3b48baf64f20bdce8aee4a84d917",
"name": "D 201",
"channelID": "564138cd313d41dab82b41e73757edaa",
"resourceType": "alarmInput",
"errorCode": "0"
}
]
},
"errorCode": "0"
}

POST /api/hccgw/resource/v1/areas/resources/delete
Delete resources from an area by resource IDs.

64
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Request URL
https://[serverAddress]:[serverPort]/api/hccgw/resource/v1/areas/resources/delete
Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header The maximum length is 64.
ids Req. String[] Body Area ID. The maximum length
is 32.

Request Example
{
"ids": ["1d3797d6f5c84b4c9720f2d1453b3516"]
}

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).
Each code can contain up to 32
characters.

Response Example
{
"errorCode": "0"
}

POST /api/hccgw/resource/v1/areas/cameras/get
Get camera list by specifying the camera information.

Request URL
https://[serverAddress]:[serverPort]/api/hccgw/resource/v1/areas/cameras/get

65
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header The maximum length is 64.
pageIndex Req. Integer Body The current page.
pageSize Req. Integer Body Number of records on each
page, which is between 1 and
500.
filter Req. Object Body Search condition. See details in
the filter Object Description
below.

Table 5-16 filter Object Description


Parameter Req. or Opt. Data Type Parameter Type Description
areaID Opt. String Body Area ID. All areas are included
if this node is empty. The
maximum length is 32.
includeSubAre Opt. String Body Whether to include cameras in
a the child area: 0 (No), -1 (yes).
It is 0 (No) when deviceID or
deviceSerialNo is specified.
deviceSerialNo Opt. String Body Device serial No. The
maximum length is 32.
cameraID Opt. String[] Body Camera ID. The maximum
length is 32.

Request Example
{
"pageIndex":"1",
"pageSize":"10",
"filter":{
"areaID":"-1",
"includeSubArea":"1",
"deviceID":"",
"deviceSerialNo":"",
"cameraID":[
"ba1e16a1f1084a93a7dc72b21609c380","b6ddbebb36584a51858edbba30c7283c"
]

66
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

}
}

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).
Each code can contain up to 32
characters.
data Req. Object Data returned by the successful
request. See details in the data Object
Description below.

Table 5-17 data Object Description


Parameter Name Req. or Opt. Data Type Description
totalCount Req. Integer Number of total pages.
pageIndex Req. Integer The current page.
pageSize Req. Integer Number of records on each page.
camera / CameraInfo [] Camera-related information.

Response Example
{
"data": {
"totalCount": 2,
"pageIndex": 1,
"pageSize": 10,
"camera": [
{
"id": "ba1e16a1f1084a93a7dc72b21609c380",
"name": "Camera 13",
"abilitySet": "1,21,22,2002,2021,2022",
"online": "1",
"area": {
"id": "128bb54e279144b0a0d324b36b8f262b",
"name": "10.66.250.14"
},
"device": {
"devInfo": {
"id": "497c3301093b4678b32033a8dad10dab",
"category": "0",

67
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

"serialNo": "J32355571",
"streamSecretKey": ""
},
"channelInfo": {
"id": "00889ceac8c44267904b2c500bc1420b",
"no": "13"
}
}
},
{
"id": "b6ddbebb36584a51858edbba30c7283c",
"name": "IPcamera1",
"abilitySet": "1,21,22,2002,2015,2016,2021,2022,2023,2024,2027,2029,2030",
"online": "1",
"area": {
"id": "b105274991b2460097a0cd5c83399cfe",
"name": "10.66.250.104"
},
"device": {
"devInfo": {
"id": "f401a9a6d4e743618ddd4b2dae9e3866",
"category": "0",
"serialNo": "J32353319",
"streamSecretKey": ""
},
"channelInfo": {
"id": "0090c1cd4bf44379b500cbbc67085217",
"no": "61"
}
}
}
]
},
"errorCode": "0"
}

POST /api/hccgw/resource/v1/areas/alarmoutputs/get
Get the information of alarm output resource.

Request URL
https://[serverAddress]:[serverPort]/api/hccgw/resource/v1/areas/alarmoutputs/get

68
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header The maximum length is 64.
pageIndex Req. Integer Body The current page.
pageSize Req. Integer Body Number of records on each
page, which is between 1 and
500.
filter Req. Object Body Search condition. See details in
the filter Object Description
below.

Table 5-18 filter Object Description


Parameter Req. or Opt. Data Type Parameter Type Description
areaID Opt. String Body Area ID. All areas are included
if this node is empty. The
maximum length is 32.
includeSubAre Req. String Body Whether to include cameras in
a the child area: 0 (No), 1 (yes).
It is 0 (No) when deviceID or
deviceSerialNo is specified.
The maximum length is 1.
deviceID Opt. String Body Device ID. The maximum
length is 32.
deviceSerialNo Opt. String Body Device serial No. The
maximum length is 32.

Request Example
{
"pageIndex":"1",
"pageSize":"10",
"filter":{
"areaID":"-1",
"includeSubArea":"1",
"deviceID":"",
"deviceSerialNo":""

69
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

}
}

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).
Each code can contain up to 32
characters.
data Req. Object Data returned by the successful
request. See details in the data Object
Description below.

Table 5-19 data Object Description


Parameter Name Req. or Opt. Data Type Description
totalCount Req. String Number of total pages.
pageIndex Req. String The current page.
pageSize Req. String Number of records on each page.
alarmOutput / AlarmInfo [] Information of alarm output
resource.

Response Example
{
"data": {
"totalCount": 2,
"pageIndex": 1,
"pageSize": 10,
"alarmOutput": [
{
"id": "4944007e0a154eabaa8ee9c337f0525c",
"name": "A 1",
"abilitySet": "",
"online": "1",
"area": {
"id": "2174986f377c4a75a10e03e757be33f6",
"name": "10.66.8.48"
},
"device": {
"devInfo": {
"id": "2ee24be89de1467faaf4d9f33ddebb48",

70
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

"category": "0",
"serialNo": "J72878604",
"streamSecretKey": ""
},
"channelInfo": {
"id": "b58a0172ab504c9f98060456a3c7069f",
"no": "1"
}
}
},
{
"id": "488615f2caa944b1b7507efd7bb08c23",
"name": "A 2",
"abilitySet": "",
"online": "1",
"area": {
"id": "2174986f377c4a75a10e03e757be33f6",
"name": "10.66.8.48"
},
"device": {
"devInfo": {
"id": "2ee24be89de1467faaf4d9f33ddebb48",
"category": "0",
"serialNo": "J72878604",
"streamSecretKey": ""
},
"channelInfo": {
"id": "373398c10ef3464d86ea850fcd2184e2",
"no": "2"
}
}
}
]
},
"errorCode": "0"
}

POST /api/hccgw/resource/v1/areas/alarminputs/get
Get information of alarm input resources.

Request URL
https://[serverAddress]:[serverPort]/api/hccgw/resource/v1/areas/alarminputs/get

71
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header The maximum length is 64.
pageIndex Req. Integer Body The current page.
pageSize Req. Integer Body Number of records on each
page, which is between 1 and
500.
filter Req. Object Body Search condition. See details in
the filter Object Description
below.

Table 5-20 filter Object Description


Parameter Req. or Opt. Data Type Parameter Type Description
areaID Opt. String Body Area ID. All areas are included
if this node is empty. The
maximum length is 32.
includeSubAre Req. String Body Whether to include cameras in
a the child area: 0 (No), 1 (yes).
It is 0 (No) when deviceID or
deviceSerialNo is specified.
The maximum length is 1.
deviceID Opt. String Body Device ID. The maximum
length is 32.
deviceSerialNo Opt. String Body Device serial No. The
maximum length is 32.

Request Example
{
"pageIndex":"1",
"pageSize":"10",
"filter":{
"areaID":"-1",
"includeSubArea":"1",
"deviceID":"",
"deviceSerialNo":""

72
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

}
}

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).
Each code can contain up to 32
characters.
data Req. Object Data returned by the successful
request. See details in the data Object
Description below.

Table 5-21 data Object Description


Parameter Name Req. or Opt. Data Type Description
totalCount Req. String Number of total pages.
pageIndex Req. String The current page.
pageSize Req. String Number of records on each page.
alarmInput / AlarmInfo [] Information of alarm input
resources.

Response Example
{
"data": {
"totalCount": 2,
"pageIndex": 1,
"pageSize": 10,
"alarmOutput": [
{
"id": "4944007e0a154eabaa8ee9c337f0525c",
"name": "A 1",
"abilitySet": "",
"online": "1",
"area": {
"id": "2174986f377c4a75a10e03e757be33f6",
"name": "10.66.8.48"
},
"device": {
"devInfo": {
"id": "2ee24be89de1467faaf4d9f33ddebb48",

73
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

"category": "0",
"serialNo": "J72878604",
"streamSecretKey": ""
},
"channelInfo": {
"id": "b58a0172ab504c9f98060456a3c7069f",
"no": "1"
}
}
},
{
"id": "488615f2caa944b1b7507efd7bb08c23",
"name": "A 2",
"abilitySet": "",
"online": "1",
"area": {
"id": "2174986f377c4a75a10e03e757be33f6",
"name": "10.66.8.48"
},
"device": {
"devInfo": {
"id": "2ee24be89de1467faaf4d9f33ddebb48",
"category": "0",
"serialNo": "J72878604",
"streamSecretKey": ""
},
"channelInfo": {
"id": "373398c10ef3464d86ea850fcd2184e2",
"no": "2"
}
}
}
]
},
"errorCode": "0"
}

POST /api/hccgw/resource/v1/areas/alarminputs/status/get
Get the alarm input status.

Request URL
https://[serverAddress]:[serverPort]/api/hccgw/resource/v1/areas/alarminputs/status/get

74
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
alarmIntputID Req. Array[String] Body Alarm input ID set. You can get
statuses of up to 8 resources at
the same time.

Request Example
{
"alarmInputID": [
"2c0a4ab9a2504de4842d95435f3a8620",
"b35b8e9a9326418ca2198ed45709b5bd"
]
}

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).
Each code can contain up to 32
characters.
data Req. Object Data returned by the successful
request. See details in the data Object
Description below.

Table 5-22 data Object Description


Parameter Name Req. or Opt. Data Type Description
alarmInput Req. AlarmInputInfo [] Returned alarm input status. If the
requested alarm input ID does not
exist, the returned information will
not include the corresponding alarm
input information.

Response Example
{
"data": {

75
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

"alarmInput": [
{
"id": "0da41f0ac59c4debade796914f874148",
"status": 2,
"errorCode": "0"
},
{
"id": "3d75a50c0ae84fc99c19581ef82d1b29",
"status": 1,
"errorCode": "0"
}
]
},
"errorCode": "0"
}

POST /api/hccgw/resource/v1/areas/alarmoutputs/control
Edit alarm output status.

Request URL
https://[serverAddress]:[serverPort]/api/hccgw/resource/v1/areas/alarmoutputs/control
Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header The maximum length is 64.
alarmOutputO Req. Object[] Body Alarm output status.
peration

Table 5-23 filter Object Description


Parameter Req. or Opt. Data Type Parameter Type Description
alarmOutputI Req. String Body Alarm output ID. The
D maximum length is 32.
operation Req. Integer Body Whether to enable: 0 (No), -1
(yes).

Request Example
{
"alarmOutputOperation":[
{

76
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

"alarmOutputID":"b58a0172ab504c9f98060456a3c7069f",
"operation":1
}
]
}

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).
Each code can contain up to 32
characters.
data Req. Object Data returned by the successful
request. See details in the data Object
Description below.

Table 5-24 data Object Description


Parameter Name Req. or Opt. Data Type Description
alarmOutputOper / AlarmOutputOper Information related to alarm output
ation ation [] control.

Response Example
{
"data": {
"alarmOutputOperation": [
{
"alarmOutputID": "b58a0172ab504c9f98060456a3c7069f",
"alarmOutputState": 1,
"errorCode": "0"
}
]
},
"errorCode": "0"
}

POST /api/hccgw/resource/v1/areas/alarmoutputs/status/get
Get alarm output status.

77
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Request URL
https://[serverAddress]:[serverPort]/api/hccgw/resource/v1/areas/alarmoutputs/status/get
Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header The maximum length is 64.
alarmOutputI Req. String[] Body Alarm output ID set.
D

Request Example
{
"alarmOutputID":[
"b58a0172ab504c9f98060456a3c7069f"
]
}

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).
Each code can contain up to 32
characters.
data Req. Object Data returned by the successful
request. See details in the data Object
Description below.

Table 5-25 data Object Description


Parameter Name Data Type Parameter Type Description
alarmOutput AlarmOutputState [] Body Information related to
alarm output status.

Response Example
{
"data": {
"alarmOutput": [

78
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

{
"id": "b58a0172ab504c9f98060456a3c7069f",
"status": 1,
"errorCode": "0"
}
]
},
"errorCode": "0"
}

POST /api/hccgw/resource/v1/areas/cameras/thumbnail/get
Get camera thumbnail by specifying camera information.

Request URL
https://[serverAddress]:[serverPort]/api/hccgw/resource/v1/areas/cameras/thumbnail/get
Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header The maximum length is 64.
cameraID Req. String Body Camera ID. The maximum
length is 32.
refresh Req. Integer Body Whether to refresh and get the
camera thumbnail: 0 (do not
refresh), 1(refresh).

Request Example
{
"cameraID":"ba1e16a1f1084a93a7dc72b21609c380",
"refresh":1
}

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).

79
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Parameter Req. or Opt. Data Type Description


Each code can contain up to 32
characters.
data Req. Object Data returned by the successful
request. See details in the data Object
Description below.

Table 5-26 data Object Description


Parameter Name Data Type Parameter Type Description
pictureURL String Body Thumbnail URL (valid
for a day).
isEncrypted Integer Body Whether the picture is
encypted: 1-encrypted,
0-not encrypted.
After stream
encryption is enabled
for device, the
captured picture will
be encrypted and
requires decryption.
For picture decryption
needs, please contact
the technical support
for relevant guide
documents.

Response Example
{
"data": {
"pictureURL": "https://testuslite.ezvizlife.com:443/https://testuslite.ezvizlife.com/image/pic/
ad3fc9cb47854fceadcf27abe4da87b8?c=59c1da51"
"isEncrypted": 0
},
"errorCode": "0"
}

80
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Door

POST /api/hccgw/resource/v1/areas/doors/get
Get door information.

Request URL
https://[serverAddress]:[serverPort]/api/hccgw/resource/v1/areas/doors/get
Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header The maximum length is 64.
pageIndex Req. Integer Body The current page.
pageSize Req. Integer Body Number of records on each
page, which is between 1 and
500.
filter Req. Object Body Search condition. The
maximum length is 64. See
details in the filter Object
Description below.

Table 5-27 filter Object Description


Parameter Req. or Opt. Data Type Parameter Description
Type
areaID Opt. String Body Area ID. All areas are included
if this node is empty. The
maximum length is 32.
includeSubAr Req. String Body Whether to include cameras in
ea the child area: "0" (No), "1"
(yes). It is 0 (No) when
deviceID or deviceSerialNo is
specified. The maximum
length is 1.

81
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Parameter Req. or Opt. Data Type Parameter Description


Type
deviceID Opt. Opt. Body Device ID. The maximum
length is 32.
deviceSerialN Opt. Opt. Body Device serial No. The
o maximum length is 32.

Request Example
{
"pageIndex":1,
"pageSize":10,
"filter":{
"areaID":"-1",
"includeSubArea":"1",
"deviceID":"",
"deviceSerialNo":""
}
}

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).
Each code can contain up to 32
characters.
data Req. Object Data returned by the successful
request. See details in the data Object
Description below.

Table 5-28 data Object Description


Parameter Name Req. or Opt. Data Type Description
totalCount Req. String Number of total pages.
pageIndex Req. String The current page.
pageSize Req. String Number of records on each page.
door / AlarmInfo [] Information of alarm input
resources.

82
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Response Example
{
"data": {
"totalCount": 2,
"pageIndex": 1,
"pageSize": 10,
"door": [
{
"id": "9365880922bf49bd8df94cafccf9214c",
"name": "Door TEST 02",
"online": "1",
"area": {
"id": "e3c8840f789a4203ba45f9f106dc9da3",
"name": "APP video intercom testing"
},
"device": {
"devInfo": {
"id": "a4a7ba685065471bae03cf039f23d901",
"category": "0",
"serialNo": "K14891504",
"streamSecretKey": ""
},
"channelInfo": {
"id": "288329024512665601",
"no": "2"
}
}
},
{
"id": "b1c47d5d318e438b910f0a38fcc0d54a",
"name": "Door TEST 01",
"online": "1",
"area": {
"id": "e3c8840f789a4203ba45f9f106dc9da3",
"name": "APP video intercom testing"
},
"device": {
"devInfo": {
"id": "a4a7ba685065471bae03cf039f23d901",
"category": "0",
"serialNo": "K14891504",
"streamSecretKey": ""
},
"channelInfo": {
"id": "288329024512665600",
"no": "1"
}
}
}
]

83
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

},
"errorCode": "0"
}

Time Zone

POST /api/hccgw/resource/v1/timezone/get
Get the time zone list.

Request URL
https://[serverAddress]:[serverPort]/api/hccgw/resource/v1/timezone/get
Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header The maximum length is 64.

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).
Each code can contain up to 32
characters.
data Req. Object Data returned by the successful
request. See details in the data Object
Description below.

Table 5-29 data Object Description


Parameter Name Req. or Opt. Data Type Description
systemTimeZoneI / String Time zone ID of the Hik Connect for
D Teams platform.
timeZone / TimeZoneInfo [] Time zone information.

84
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Response Example
{
"data": {
"timeZone": [
{
"id": "19",
"standardName": "Central Asia Standard Time",
"displayName": "(UTC+06:00) Astana",
"bias": -360,
"dst": {
"daylightBias": "-60",
"daylightDate": "0:0:0:0:0",
"standardDate": "0:0:0:0:0",
"enable": 0
}
},

{
"id": "1",
"standardName": "Afghanistan Standard Time",
"displayName": "(UTC+04:30) Kabul",
"bias": -270,
"dst": {
"daylightBias": "-60",
"daylightDate": "0:0:0:0:0",
"standardDate": "0:0:0:0:0",
"enable": 0
}
}
],
"systemTimeZoneID": "30"
},
"errorCode": "0"

5.3 Alarm-Related Services


Alarm refers to the content uploaded by the device when the configured alarm rules are triggered.

85
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

5.3.1 Alarm Subscription

POST /api/hccgw/alarm/v1/mq/subscribe
Subscribe to alarm information.

Request URL
https://[serverAddress]:[serverPort]/api/hccgw/alarm/v1/mq/subscribe
Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header The maximum length is 64.
subscribeType Req. Integer Body 0 (cancel subscription), 1
(subscribe).
subscribeMod Req. Integer Body 0 (subscribe to all alarm types),
e 1(subscribe by alarm type).
eventType Opt. Integer[] Body Alarm event type. See details in
Alarm Type .

Request Example
{
"subscribeType": 1,
"subscribeMode": 1,
"eventType": [0,1]
}

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).
Each code can contain up to 32
characters.

86
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Response Example
{
"errorCode": "0"
}

POST /api/hccgw/alarm/v1/mq/messages
Get alarm information.

Request URL
https://[serverAddress]:[serverPort]/api/hccgw/alarm/v1/mq/messages
Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header The maximum length is 64.
maxNumberP Opt. Integer Body Information volume per
erTime request: 100, 200, 300
(default), 400, 500.

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).
Each code can contain up to 32
characters.
data Req. Object Data returned by the successful
request. See details in the data Object
Description below.

87
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Table 5-30 data Object Description


Parameter Name Req. or Opt. Data Type Description
batchId Req. String ID of information batch
processing.
remainingNumber Req. Long Total remaining alarms.
alarmMsg / AlarmMsg [] Event information.

Response Example (for Leaving Queue Alarm)


{
"data": {
"batchId":
"0730b5d3664040f33fe8bfd4eb6b886b88f10040e489a0d54c00e41546a6a9b2946cbcd91f0a6eca6ec6cddf4511a78f",
"remainingNumber":13445;
"alarmMsg": [
{
"systemId": "f718f3013b5a4fb38e573043afe28683",
"guid": "18892bc026ddddd",
"dataRetransmission": 1,
"msgType": "1",
"alarmState": "1",
"pulseAlarm": "false",
"alarmMainCategory": "alarmCategoryVideo",
"alarmSubCategory": "alarmSubCategoryCamera",
"timeInfo": {
"endTime": "2023-04-13T08:56:55Z",
"endTimeLocal": "2023-04-13T16:56:55+08:00",
"startTime": "2023-04-13T08:56:40Z",
"startTimeLocal": "2023-04-13T16:56:40+08:00"
},
"eventSource": {
"eventType": "100657",
"sourceID": "780e25f5f72b4592a2e5c2deae38726f",
"sourceName": "IPCamera 01",
"sourceType": "camera",
"areaID": "66669b5dd0024e12b5502623f7dc343a",
"areaName": "1",
"deviceInfo": {
"devID": "38a0c1e93feb4838bcb541cae43d14f6",
"devName": "G95721825"
}
},
"alarmRule": {
"id": "1640597519769669632",
"name": "People Queue Leave",
"description": ""
},

88
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

"alarmPriority": {
"id": "0545620a6ed24fdda0673188e334b561",
"level": "1",
"levelName": "1",
"color": "#F40B0B"
},
"markState": "0",
"affirmedState": "0",
"linkageTypes": [],
"linkageConfig": {},
"vehicleRelatedInfo": {},
"queueRelatedInfo": {
"queueInfo": {
"regionID": "123",
"regionName": "122-3232",
"queueThreshold": 15,
"peopleTargetId": 11,
"waitTime": 600,
"startTime": "2023-04-13T19:42:27+08:00",
"endTime": "2023-04-13T20:42:27+08:00"
}
}
}
]
},
"errorCode": "0"
}

POST /api/hccgw/alarm/v1/mq/messages/complete
Confirm that alarms are received by specifying the batchId.

Request URL
https://[serverAddress]:[serverPort]/api/hccgw/alarm/v1/mq/messages/complete
Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header The maximum length is 64.
batchId Req. String Body The batchId returned when
getting the list of event
information. The maximum
length is 256.

89
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Request Example
{

"batchId":"5a32fddc6f5c01e067f7abdfe5348a6c98f64d1fe196b9d54c45b01b50a3a7b5946dbcd91f0a6eca6ec6cddf45
11a78f"
}

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).
Each code can contain up to 32
characters.

Response Example
{
"errorCode": "0"
}

5.3.2 Alarm Subscription (V2)

POST /api/hccgw/combine/v1/mq/subscribe
Subscribe to events.

Note
See details of included events in Alarm Type (V2) .

Request URL
https://[serverAddress]:[serverPort]/api/hccgw/combine/v1/mq/subscribe

90
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header Token. The maximum length is
64.
subscribeType Req. Integer Body 0-cancel subscription, 1-
subscribe. The maximum
length is 1.
msgType Opt. String[] Body Event types to subscribe to. If
this node is empty or not
configured, all events will be
subscribed by default. Refer to
Alarm Type (V2) for details.

Request Example
{
"subscribeType":1,
"msgType": ["330001","140001"]
}

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).
Each code can contain up to 32
characters.

Response Example
{
"errorCode": "0"
}

POST /api/hccgw/combine/v1/mq/messages
Pull events. After subscription is made, you can get messages manually from the device. It is
recommended that the interval of getting messages be 500 ms.

91
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Note
See details of included events in Alarm Type (V2) .

Request URL
https://[serverAddress]:[serverPort]/api/hccgw/combine/v1/mq/messages
Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header Token. The maximum length is
64.
maxNumberP Opt. Integer Body Information volume per
erTime request: 100, 200, 300
(default), 400, 500.

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).
Each code can contain up to 32
characters.
data Req. Object Data returned by the successful
request. See details in the data Object
Description below.

Table 5-31 data Object Description


Parameter Name Req. or Opt. Data Type Description
batchId Req. String Message queue batch processing ID.
remainingNumber Req. Long Total remaining alarms.
events / CombineEvent [] Information related to event messages.

Response Example
{
"errorCode": "string",

92
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

"data": {
"batchId": "string",
"remainingNumber": 0,
"events": [
{
"eventId": "string",
"eventType": "string",
"basicInfo": {
"systemId": "string",
"occurrenceTime": "string",
"dataRetransmission": 0,
"resourceInfo": {
"sourceType": "string",
"sourceID": "string",
"sourceName": "string",
"areaName": "string",
"areaID": "string",
"deviceInfo": {
"id": "string",
"name": "string",
"category": "string",
"deviceSerial": "string"
}
}
},
"eventData": {
"fileInfo": {
"fileContent": "string",
"file": [
{
"type": "string",
"suffixName": "string",
"url": "string",
"saveState": "string",
"generationMode": "string",
"encrypted": "string",
"extendInfo": {
"sourceID": "string",
"sourceName": "string",
"sourceType": "string",
"captureIndex": "string"
}
}
]
},
"vehicleReletedInfo": {
"gpsInfo": {
"ew": "string",
"lng": "string",
"ns": "string",
"lat": "string",
"direction": 0,

93
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

"height": 0,
"speed": 0
},
"vehicleInfo": {
"licensePlate": "string",
"id": "string",
"speedLimit": 0,
"driverInfos": [
{
"driverName": "string",
"driverPhone": "string",
"driverFacePic": "string",
"licenseInfo": {
"licenseNo": "string",
"invalidTime": "string",
"imageUrl": "string"
}
}
]
}
},
"queueReletedInfo": {
"queueInfo": {
"regionID": "string",
"regionName": "string",
"peopleTargetId": 0,
"waitTime": 0,
"startTime": "string",
"endTime": "string",
"queueThreshold": 0
}
},
"anprInfo": {
"driveDirection": 0,
"licensePlate": "string",
"pictureInfo": [
{
"pictureURL": "string",
"plateRect": {
"X": "string",
"Y": "string",
"width": "string",
"height": "string"
}
}
],
"vehicleListType": "string"
},
"deviceTalkInfo": {
"userId": "string",
"personId": "string",
"roomNumber": "string",

94
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

"deviceSerial": "string",
"deviceName": "string",
"deviceId": "string",
"msgId": "string",
"msgType": "string",
"doorInfos": [
{
"doorId": "string",
"doorName": "string"
}
]
}
}
}
]
}
}

POST /api/hccgw/combine/v1/mq/messages/complete
Confirm that events are received by specifying the batchId, or you will get the same data
continuously. After confirming, you will get the new data.

Note
See details of included events in Alarm Type (V2) .

Request URL
https://[serverAddress]:[serverPort]/api/hccgw/combine/v1/mq/messages/complete
Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header Token. The maximum length is
64.
batchId Req. String Body Batch ID for getting event
messages. The maximum
length is 256.

Request Example
{

"batchId":"4075e8d16a4b4ce63dabebcdba3cd37e83b65a13edd5b4d34343ef595ab6b5a7946a86e61d086cc86cc4cfdd

95
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

4713a58d"
}

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).
Each code can contain up to 32
characters.

Response Example
{
"errorCode": "0"
}

5.3.3 Alarm Rules

POST /api/hccgw/alarm/v1/alarmrules/add
Configure alarm rules.

Request URL
https://[serverAddress]:[serverPort]/api/hccgw/alarm/v1/alarmrules/add
Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header The maximum length is 64.
alarmrule / Object[] Body Information related to alarm
rules.

96
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Table 5-32 alarmrule Object Description


Parameter Req. or Opt. Data Type Parameter Description
Name Type
name Req. String Body Alarm rule name. The
maximum length is 255.
alarmMainCat Opt. String Body Alarm main category. The
egory maximum length is 64.
alarmSubCateg Opt. String Body Alarm sub category. The
ory maximum length is 64.
description Opt. String Body Alarm rule description. The
maximum length is 128.
color Opt. String Body Alarm rule color. The
maximum length is 64.
notification Opt. Notification Body Notification configuration.
schedule Opt. Schedule Body Alarm template.
priority Opt. Priority Body Alarm priority.
ignoreRecurrin Opt. IgnoreRecurrin Body Auto-close alarming window.
g g
eventSource Req. EventSource Body Event source.

Request Example
{
"alarmRule": [
{
"name": "fjx-test",
"color": "#ff0000",
"alarmMainCategory": "alarmCategoryVideo",
"alarmSubCategory": "alarmSubCategoryCamera",
"description": "fjx-test",
"enable": 1,
"priority": {
"id": "2f87acf0985e431d852bbaed10aba040"
},
"notification": {
"enable": 1,
"recipients": [
{
"userID": "8a7485aa7f209dd5017f2141adff0019",
"userName": "hccdd2 uat6"
}

97
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

]
},
"schedule": {
"type": "1",
"timeSchedule": {
"id": "161a03299fd94914b89accdf0844b0e6"
}
},
"ignoreRecurring": {
"enable": "1",
"timeValue": "15"
},
"eventSource": {
"sourceType": "camera",
"eventType": 10102,
"sourceID": "6a95b98ae34e4eac88f3af8a286bf47c",
"sourceName": "5546G0_191 Camera 01"
}
}
]
}

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).
Each code can contain up to 32
characters.
data Req. Object Data returned by the successful
request. See details in the data
Object Description below.

Table 5-33 data Object Description


Parameter Name Req. or Opt. Data Type Description
alarmRule Req. AlarmRuleOperati Alarm rule information.
on []

Response Example
{
"errorCode": "0",
"data": {
"alarmRule": [

98
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

{
"name": "fjx-test",
"errorCode": "",
"id": "1658413372250656768"
}
]
}
}

POST /api/hccgw/alarm/v1/alarmrules/get
Get the list of alarm rules.

Request URL
https://[serverAddress]:[serverPort]/api/hccgw/alarm/v1/alarmrules/get
Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header The maximum length is 64.
pageIndex Req. Integer Body The current page.
pageSize Req. Integer Body Number of records on each
page, which is between 1 and
500.
filter Opt. Object Body Search condition. See details in
the filter Object Description
below.

Table 5-34 filter Object Description


Parameter Req. or Opt. Data Type Parameter Description
Type
alarmRuleID Opt. String Body Alarm rule ID. This search
condition is not enabled if this
node is empty or null. The
maximum length is 64.
alarmRuleNam Opt. String Body Alarm rule name. Fuzzy search
e supported. This search
condition is not enabled if this

99
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Parameter Req. or Opt. Data Type Parameter Description


Type
node is empty or null. The
maximum length is 64.
eventSourceN Opt. String Body Alarm source name. Fuzzy
ame search supported. This search
condition is not enabled if this
node is empty or null. The
maximum length is 64.
alarmRuleStat Opt. Integer Body -1 or empty (all), 0 (normal), 1
e (abnormal). The maximum
length is 3.
alarmRuleEna Opt. Integer Body -1 or empty (all), 0 (disable), 1
ble (enable). The maximum length
is 3.
eventSource Opt. EventSource [] Body Alarm source. Only sourceType
and sourceID is required for
search.
alarmCategory Opt. AlarmCategor Body Alarm category.
y

Request Example
{
"pageIndex":"1",
"pageSize":"10",
"filter":{
“alarmRuleID”:””,
“alarmRuleName”:””,
“eventSourceName”:””,
“alarmRuleState”:0,
“alarmRuleEnable”:0,
“alarmCategory”:{
“mainCategory”:””,
“subCategory”:””
},
eventSource:[
{
“sourceID”:””,
“sourceType”:””
}
]

100
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

}
}

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).
Each code can contain up to 32
characters.
data Req. Object Alarm rule list structure.

Table 5-35 data Object Description


Parameter Name Req. or Opt. Data Type Description
totalCount Req. String Number of total pages.
pageIndex Req. String The current page.
pageSize Req. String Number of records on each page.
alarmRule / AlarmRuleDetail [] Information related to alarm rules.

Response Example
{
"data": {
"totalCount": 1,
"pageIndex": 1,
"pageSize": 10,
"alarmRule": [
{
"id": "1542072136028524544",
"name": "Camera 01-Motion Detection",
"color": "#ff0000",
"enable": 1,
"state": "0",
"alarmMainCategory": "alarmCategoryVideo",
"alarmSubCategory": "alarmSubCategoryCamera",
"notification": {
"enable": 1,
"recipients": [
{
"userID": "8a7489d68161eaf9018161f84bb70004",
"userName": "abc abc"
},
{

101
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

"userID": "8a748b3181a510aa0181a53fef2e1210",
"userName": "lmk lmk"
}
]
},
"schedule": {
"timeSchedule": {
"id": "8a748e7681618fea018161f847d70000",
"name": ""
},
"type": "1"
},
"priority": {
"id": "0db8cd1c85324e27a1f36c4f5a66e18",
"level": "1",
"levelName": "",
"color": "#F40B0B"
},
"ignoreRecurring": {
"enable": 0,
"timeValue": 15
},
"eventSource": {
"eventType": 10002,
"sourceID": "a1afc31e55af4960900fa6498d67399d",
"sourceType": "camera",
"sourceName": "Camera 01"
}
}
]
},
"errorCode": "0"
}

POST /api/hccgw/alarm/v1/alarmrules/update
Edit alarm rules.

Request URL
https://[serverAddress]:[serverPort]/api/hccgw/alarm/v1/alarmrules/update

102
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header The maximum length is 64.
alarmrule Req. Object[] Body Information related to alarm
rules.

Table 5-36 alarmrule Object Description


Parameter Req. or Opt. Data Type Parameter Description
Name Type
id Req. String Body Alarm rule ID. The maximum
length is 64.
name Req. String Body Alarm rule name. The
maximum length is 255.
description Opt. String Body Alarm rule description. The
maximum length is 128.
color Opt. String Body Alarm rule color. The
maximum length is 64.
notification Opt. Notification Body Notification configuration.
schedule Opt. Schedule Body Alarm template.
priority Opt. Priority Body Alarm priority.
ignoreRecurrin Opt. IgnoreRecurrin Body Auto-close alarming window.
g g
eventSource Req. EventSource Body Event source.

Request Example
{
"alarmRule": [
{
"id": "1542072136028524544",
"name": "Camera 01-Motion Detection",
"color": "#ff0000",
"enable": 1,
"state": "0",
"alarmMainCategory": "alarmCategoryVideo",
"alarmSubCategory": "alarmSubCategoryCamera",
"notification": {

103
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

"enable": 1,
"recipients": [
{
"userID": "8a7489d68161eaf9018161f84bb70004",
"userName": "abc abc"
},
{
"userID": "8a748b3181a510aa0181a53fef2e1210",
"userName": "lmk lmk"
}
]
},
"schedule": {
"timeSchedule": {
"id": "8a748e7681618fea018161f847d70000",
"name": ""
},
"type": "1"
},
"priority": {
"id": "0db8cd1c85324e27a1f36c4f5a66e18",
"level": "1",
"levelName": "",
"color": "#F40B0B"
},
"ignoreRecurring": {
"enable": 0,
"timeValue": 15
},
"eventSource": {
"eventType": 10002,
"sourceID": "a1afc31e55af4960900fa6498d67399d",
"sourceType": "camera",
"sourceName": "Camera 01"
}
}
]
}

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).

104
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Parameter Req. or Opt. Data Type Description


Each code can contain up to 32
characters.
data Req. Object Data returned by the successful
request. See details in the data Object
Description below.

Table 5-37 data Object Description


Parameter Name Req. or Opt. Data Type Description
alarmRule Req. AlarmRuleOperati Alarm rule information.
on []

Response Example
{
"errorCode": "0",
"data": {
"alarmRule": [
{
"name": "fjx-test",
"id": "1658413372250656768"
}
]
}
}

POST /api/hccgw/alarm/v1/alarmpriorities/get
Get the alarm priority list.

Request URL
https://[serverAddress]:[serverPort]/api/hccgw/alarm/v1/alarmpriorities/get

105
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header The maximum length is 64.
pageIndex Req. Integer Body The current page.
pageSize Req. Integer Body Number of records on each
page, which is between 1 and
500.

Request Example
{
"pageIndex":"1",
"pageSize":"10"
}

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).
Each code can contain up to 32
characters.
data Req. Object Data returned by the successful
request. See details in the data Object
Description below.

Table 5-38 data Object Description


Parameter Name Req. or Opt. Data Type Description
totalCount Req. String Number of total pages.
pageIndex Req. String The current page.
pageSize Req. String Number of records on each page.
alarmpriorities / Alarmpriorities [] Information related to alarm
priorities.

106
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Response Example
{
"data": {
"totalCount": "3",
"pageIndex": "0",
"pageSize": "10",
"alarmpriorities": [
{
"id": "0db8cd1c85324e27a1f36c4f5a66e18",
"level": 1,
"levelName": "",
"color": "#F40B0B",
"audioURL": ""
},
{
"id": "0e17d83ee1b24f239aec7a1a9a69d66",
"level": 3,
"levelName": "",
"color": "#2D8B3D",
"audioURL": ""
},
{
"id": "0e1f9742db0d48cea90b5c92b73806d",
"level": 2,
"levelName": "",
"color": "#D79931",
"audioURL": ""
}
]
},
"errorCode": "0"
}

POST /api/hccgw/alarm/v1/receivingschedules/get
Get the list of alarm arming schedule templates.

Request URL
https://[serverAddress]:[serverPort]/api/hccgw/alarm/v1/receivingschedules/get

107
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header The maximum length is 64.
pageIndex Req. Integer Body The current page.
pageSize Req. Integer Body Number of records on each
page, which is between 1 and
500.

Request Example
{
"pageIndex":"1",
"pageSize":"10"
}

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).
Each code can contain up to 32
characters.
data Req. Object Data returned by the successful
request. See details in the data Object
Description below.

Table 5-39 data Object Description


Parameter Name Req. or Opt. Data Type Description
totalCount Req. String Number of total pages.
pageIndex Req. String The current page.
pageSize Req. String Number of records on each page.
receivingSchedule / ReceivingSchedule Information related to alarm arming
[] schedule templates.

108
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Response Example
{
"data": {
"totalCount": "3",
"pageIndex": "1",
"pageSize": "10",
"alarmpriorities": [
{
"id": "0db8cd1c85324e27a1f36c4f5a66e18",
"level": 1,
"levelName": "",
"color": "#F40B0B",
"audioURL": ""
},
{
"id": "0e17d83ee1b24f239aec7a1a9a69d66",
"level": 3,
"levelName": "",
"color": "#2D8B3D",
"audioURL": ""
},
{
"id": "0e1f9742db0d48cea90b5c92b73806d",
"level": 2,
"levelName": "",
"color": "#D79931",
"audioURL": ""
}
]
},
"errorCode": "0"
}

POST /api/hccgw/alarm/v1/alarmlinkage/add
Configure alarm linkage.

Request URL
https://[serverAddress]:[serverPort]/api/hccgw/alarm/v1/alarmlinkage/add

109
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header The maximum length is 64.
alarmLinkage / Object[] Body Information related to alarm
linkage configuration.

Table 5-40 alarmrule Object Description


Parameter Req. or Opt. Data Type Parameter Description
Type
alarmRuleID Req. String Body Alarm rule ID. The maximum
length is 32.
linkageItem Opt. LinkageItem [] Body Linkage item name.

Request Example
{
"alarmLinkage": [
{
"alarmRuleID": "b9619db8ee50475cbf8c6c89cbfb5dbd",
"linkageItem": [
{
"linkageType": "LinkCamera",
"linkageConfig": {
"linkCamera": {
"preRecordTime": 3,
"postRecordTime": 15,
"camera": [
{
"id": "21f84da3f9604a30a3f5b6975fa0f38a",
"name": "5546G0_191 Camera 01",
"areaID": "450ac442bf4e4daf9f04e1af1bc90be7",
"areaName": "_2022-05-07T201804_0"
}
]
}
}
},
{
"linkageType": "LinkCapturePicture",
"linkageConfig": {
"linkCapturePicture": {
"captureInterval": 3,
"captureMode": 2,

110
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

"camera": [
{
"resourceType": "1001",
"id": "21f84da3f9604a30a3f5b6975fa0f38a",
"name": "5546G0_191 Camera 01",
"areaID": "450ac442bf4e4daf9f04e1af1bc90be7",
"areaName": "_2022-05-07T201804_0"
}
]
}
}
},
{
"linkageType": "LinkAlarmOutput",
"linkageConfig": {
"linkAlarmOutput": {
"autoClose": 0,
"autoCloseTime": 15,
"alarmOutput": [
{
"id": "d5418485784b44f79b52e24a64bf2574",
"name": "A 2",
"areaID": "1b65a68be27d41be9f2ed7ddc7045276",
"areaName": "111"
}
]
}
}
},
{
"linkageType": "LinkEMail",
"linkageConfig": {
"linkEmail": {
"emailTemplateId": "8a748675809d8e3901809d9c57370000",
"emailTemplateName": "test22"
}
}
}
]
}
]
}

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).

111
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Parameter Req. or Opt. Data Type Description


Each code can contain up to 32
characters.
data Req. Object Data returned by the successful
request. See details in the data Object
Description below.

Table 5-41 data Object Description


Parameter Name Req. or Opt. Data Type Description
alarmLinkage Req. AlarmLinkage [] Alarm linkage rule information.

Response Example
{
"data": {
"alarmLinkage": [
{
"alarmRuleID": "1651173299037802496",
"itemID": "5BE20D67677647EF8D448E67E4AFB411",
"linkageType": "LinkCamera",
"errorCode": "0"
}
]
},
"errorCode": "0"
}

5.3.4 Alarm Logs

POST /api/hccgw/alarm/v1/alarmlog
Get the list of alarm logs.

Request URL
https://[serverAddress]:[serverPort]/api/hccgw/alarm/v1/alarmlog

112
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header The maximum length is 64.
pageIndex Req. Integer Body The current page No., which is
equal to or greater than 1.
pageSize Req. Integer Body Number of records on each
page, which is between 1 and
500.
timeRange Req. TimeRange Body Time range parameters of
device. The time between the
start time and end time should
be no more than a day.
areaID Req. String[] Body Area ID.
eventTypeList Opt. String[] Body See details in Alarm Type . If
this node is not configured, all
event types will be included.

Request Example
{
"pageIndex":1,
"pageSize":5,
"timeRange":{
"beginTime":"2023-04-23 00:00:00",
"endTime":"2023-04-24 00:00:00"
},
"areaID":"565623256767",
"eventTypeList":["10061","10657"]
}

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).

113
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Parameter Req. or Opt. Data Type Description


Each code can contain up to 32
characters.
data Req. Object Data returned by the successful
request. See details in the data Object
Description below.

Table 5-42 data Object Description


Parameter Name Req. or Opt. Data Type Description
pageIndex Req. Integer The current page No.
pageSize Req. Integer Number of records on the
current page.
moreData Req. Integer Whether it is more than one
page: 0-no, 1-yes.
alarmlogList Req. AlarmMsg [] Alarm log set.

Response Example
{
"data": {
"pageIndex": 1,
"pageSize": 1,
"moreData": 0,
"alarmLogList": [
{
"guid": "9af74b16484d43eaaa64c833c05bcb3a",
"dataRetransmission": 1,
"alarmState": "0",
"pulseAlarm": "0",
"alarmMainCategory": "alarmCategoryVideo",
"alarmSubCategory": "alarmCategoryVideo",
"timeInfo": {
"startTime": "2023-04-26T04:00:00Z",
"endTime": "2023-04-26T04:00:15Z"
},
"eventSource": {
"eventType": "100657",
"sourceID": "a333cd708cd542be975e8f1298cc8aa1",
"sourceName": "201",
"sourceType": "camera",
"areaID": "96c4b7293d4a4a30818c988d1a79b438",
"areaName": "11",
"deviceInfo": {

114
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

"devID": "8838bae9a94b4d0591a13bd16bcebe43",
"devName": "K44201853",
"devCategory": "2001"
}
},
"alarmRule": {
"id": "1650433180307689472",
"name": "201-Leaving Queue Detection",
"description": ""
},
"alarmPriority": {
"id": "1",
"level": "1",
"levelName": "1",
"color": "#ff1122"
},
"markState": "0",
"affirmedState": "0",
"fileInfo": {},
"queueRelatedInfo": {
"queueInfo": {
"regionID": "1",
"peopleTargetId": 3438,
"waitTime": 310,
"startTime": "2023-04-21T10:50:25+08:00",
"endTime": "2023-04-21T10:55:35+08:00",
"queueThreshold": 15
}
}
}
]
},
"errorCode": "0"
}

5.4 Message-Related Services


Message refers to the content uploaded by the device actively when there is no external trigger
source.

5.4.1 Message Subscription and Receiving

POST /api/hccgw/rawmsg/v1/mq/subscribe
Subscribe to messages.

115
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Request URL
https://[serverAddress]:[serverPort]/api/hccgw/rawmsg/v1/mq/subscribe
Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header Token. The maximum length is
64.
subscribeType Req. Integer Body 0-cancel subscription, 1-
subscribe. The maximum
length is 1.
msgType Req. String[] Body Event type to subscribe to. If
this node is empty, all events
will be subscribed by default.
Refer to Message Type for
details.

Request Example
{
"subscribeType":1,
"msgType": ["Msg330001","Msg330002"]
}

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).
Each code can contain up to 32
characters.

Response Example
{
"errorCode": "0"
}

116
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

POST /api/hccgw/rawmsg/v1/mq/messages
After you subscribe to messages, you can get messages manually from the device. It is
recommended that the interval of getting messages be 500 ms.

Request URL
https://[serverAddress]:[serverPort]/api/hccgw/rawmsg/v1/mq/messages
Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header Token. The maximum length is
64.

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).
Each code can contain up to 32
characters.
data Req. Object Data returned by the successful
request. See details in the data Object
Description below.

Table 5-43 data Object Description


Parameter Name Req. or Opt. Data Type Description
batchId Req. String Message queue batch processing ID.
event / Event(1) [] Information related to event
messages.

Response Example
{
"data": {
"batchId":
"5823e397664b41e677fab5c4ee6e8c3fc8f60012f480a6c94e40e60501b8b7f59468bcd91f0a6eca6ec6cddf4511a78f",
"remainingNumber": 0,

117
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

"event": [
{
"basicInfo": {
"occurrenceTime": "2023-05-08 11:15:26",
"systemId": "855362005e074fbba3f2400d7fba3670",
"msgType": "Msg330001",
"resource": {
"id": "25051e2467f44cf5947493a56921ca4c",
"name": "111",
"areaName": "333"
},
"device": {
"id": "0d961d4a05264d4b848522d3414eca3a",
"name": "K70728087",
"category": "mobileDevice"
}
},
"data": {
"vehicleRelatedInfo": {
"gpsInfo": {
"ew": "E",
"lng": "6.943345",
"ns": "N",
"lat": "50.331554",
"direction": 32759,
"height": 6090,
"speed": 33333
},
"vehicleInfo": {
"licensePlate": "111",
"driverName": " ",
"driverPhone": "",
"id": "25051e2467f44cf5947493a56921ca4c",
"speedLimit": 8200000
}
}
}
},
{
"basicInfo": {
"occurrenceTime": "2023-05-05 11:15:32",
"systemId": "855362005e074fbba3f2400d7fba3670",
"msgType": "Msg330502",
"resource": {
"id": "25051e2467f44cf5947493a56921ca4c",
"name": "111",
"areaName": "333"
},
"device": {
"id": "0d961d4a05264d4b848522d3414eca3a",
"name": "K70728087",
"category": "mobileDevice"

118
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

}
},
"picture": [],
"video": [],
"data": {
"vehicleRelatedInfo": {
"gpsInfo": {
"ew": "E",
"lng": "6.943345",
"ns": "N",
"lat": "50.331551",
"direction": 32759,
"height": 6090,
"speed": 33333
},
"vehicleInfo": {
"licensePlate": "111",
"driverName": " ",
"driverPhone": "",
"id": "25051e2467f44cf5947493a56921ca4c",
"speedLimit": 8200000
}
}
},
"uuid": "ba28708fd5664a7281bc764925d68a28",
"update": false
}
]
},
"errorCode": "0"
}

POST /api/hccgw/rawmsg/v1/mq/messages/complete
Confirm that message consuming is finished according to the input batchId. Without confirming,
you will get the same data continuously. After confirming, you will get the new data.

Request URL
https://[serverAddress]:[serverPort]/api/hccgw/rawmsg/v1/mq/messages/complete

119
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header Token. The maximum length is
64.
batchId Req. String Body The returned batchID when
getting event messages. The
maximum length is 256.

Request Example
{

"batchId":"4075e8d16a4b4ce63dabebcdba3cd37e83b65a13edd5b4d34343ef595ab6b5a7946a86e61d086cc86cc4cfdd
4713a58d"
}

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).
Each code can contain up to 32
characters.

Response Example
{
"errorCode": "0"
}

120
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

5.5 Video-Related Services

5.5.1 Recording Schedule and Playback

POST /api/hccgw/video/v1/recordsettings/get
Get the recording schedule.

Request URL
https://[serverAddress]:[serverPort]/api/hccgw/video/v1/recordsettings/get
Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header The maximum length is 64.
cameraID Req. String[] Body Camera ID set.

Request Example
{
"cameraId":[
"2aeec98c14a4427f9ace6c48e91ab4cc"
]
}

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).
Each code can contain up to 32
characters.
data Req. Object Data returned by the successful
request. See details in the data Object
Description below.

121
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Table 5-44 data Object Description


Parameter Name Req. or Opt. Data Type Description
recordSetting Req. RecordSetting [] Recording schedule
information.

Response Example
{
"data": {
"recordSetting": [
{
"cameraID": "2aeec98c14a4427f9ace6c48e91ab4cc",
"enableLocalStorage": 1,
"localStorage": {
"scheduleTemplateId": "1",
"recordingStreamType": 1,
"postRecordTime": 10,
"anr": 0,
"storageTime": 0
},
"enableCloudStorage": 0,
"cloudStorage": {}
}
]
},
"errorCode": "0"
}

POST /api/hccgw/video/v1/live/address/get
Get the address of live view or playback. You need to use JS SDK for live view and playback.

Request URL
https://[serverAddress]:[serverPort]/api/hccgw/video/v1/live/address/get
Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header The maximum length is 64.
resourceId Req. String Body Camera resource ID, which is
CameraInfo obtained from /

122
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Parameter Req. or Opt. Data Type Parameter Description


Type
api/hccgw/resource/v1/areas/
cameras/get. The maximum
length is 64.
deviceSerial Req. String Body Device serial No. The maximum
length is 32.
type Req. String Body Type: 1 (live view), 2 (playback
from local recording), 3
(playback from cloud storage
recording).
code Opt. String Body Password for device recording
encryption. The maximum
length is 16.
startTime Opt. String Body Start time of recording
playback from local or cloud
storage, e.g., 2019-12-01
00:00:00.
stopTime Opt. String Body End time of recording playback
from local or cloud storage,
e.g., 2019-12-01 00:00:00.

Request Example
{
"type":"1",
"code":"1111qqqq",
"deviceSerial":"G99131454",
"resourceId":"b2f3f6ce0a954045ba77a6acfe8dd89e"
}

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).

123
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Parameter Req. or Opt. Data Type Description


Each code can contain up to 32
characters.
data Req. Object Data returned by the successful
request. See details in the data Object
Description below.

Table 5-45 data Object Description


Parameter Req. or Opt. Data Type Description
Name
id Req. String ID.
url Req. String URL.

Response Example
{
"data": {
"id": "1",
“url": "ezopen://[email protected]/G99131454/1.live"
},
"errorCode": "0"
}

5.6 Video Intercom Services

5.6.1 Buildings and Rooms

POST /api/hccgw/vims/v1/build/search
Search for buildings.

Request URL
https://[serverAddress]:[serverPort]/api/hccgw/vims/v1/build/search

124
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header Token. The maximum length is
64.
pageNum Req. Integer Body Page number.
pageSize Req. Integer Body Page size.
searchCriteria Req. Object Body Search condition. Refer to
BuildingSearchCriteria for
details.

Request Example
{
"pageNum": 1,
"pageSize": 64,
"searchCriteria": {
"areaId": "-1",
"isContainSubArea": 1,
"filterName": ""
}
}

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).
Each code can contain up to 32
characters.
data Req. Object Data returned by the successful
request. See details in the data Object
Description below.

125
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Table 5-46 data Object Description


Parameter Name Req. or Opt. Data Type Description
pageNum Req. Integer Page number.
pageSize Req. Integer Page size.
totalNum Req. Integer Total records.
buildList Req. Building [] List of building information.

Response Example
{
"data": {
{
"pageNum": 0,
"pageSize": 0,
"totalNum": 0,
"buildList": [
{
"buildId": "",
"buildName": "",
"areaId": "",
"areaName": "",
"totalRoom": 0,
"totalPerson": 0,
"deviceNames": ""
}
]
}
},
"errorCode": "0"
}

POST /api/hccgw/vims/v1/room/search
Search for rooms.

Request URL
https://[serverAddress]:[serverPort]/api/hccgw/vims/v1/room/search

126
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header Token. The maximum length is
64.
pageNum Req. Integer Body Page number.
pageSize Req. Integer Body Page size.
searchCriteria Req. Object Body Search condition. Refer to
RoomSearchCriteria for details.

Request Example
{
"pageNum": 1,
"pageSize": 64,
"searchCriteria": {
"areaId": "-1",
"buildId": "",
"isContainSubArea": 1,
"filter": {
"roomNum": "",
"roomName": "",
"personAmount": "",
"email": "",
"mainAccount": ""
}
}}

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).
Each code can contain up to 32
characters.
data Req. Object Data returned by the successful
request. See details in the data Object
Description below.

127
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Table 5-47 data Object Description


Parameter Name Req. or Opt. Data Type Description
pageNum Req. Integer Page number.
pageSize Req. Integer Page size.
totalNum Req. Integer Total records.
roomList Req. RoomVO [] List of room information.

Response Example
{
"data": {
{
"pageNum": 0,
"pageSize": 0,
"totalNum": 0,
"roomList": [
{
"roomId": "",
"roomName": "",
"roomNum": 0,
"buildId": "",
"buildName": "",
"areaId": "",
"areaName": "",
"personAmount": 0,
"mainAccount": "",
"email": "",
"phone": ""
}
]
}
},
"errorCode": "0"
}

5.6.2 ISAPI Protocol Transmission

POST /api/hccgw/video/v1/isapi/proxypass
Transmit ISAPI protocol transparently.

128
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Request URL
https://[serverAddress]:[serverPort]/api/hccgw/video/v1/isapi/proxypass
Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header Token. The maximum length is
64.
method Req. String Body Method (GET, POST, PUT, and
DELETE).
url Req. String Body URL.
id Req. String Body Device ID.
contentType Req. String Body application/​xml, application/
json, and application/​x-www-
form-urlencoded are
supported.
body Opt. String Body Request parameters.

Request Example
{
"method": "GET",
"url": "/ISAPI/PTZCtrl/channels/2/presets/1",
"id": "85cff214670c4bc69a8d7436fb93576c",
"contentType": "application/xml",
"body": ""
}
{
"method": "GET"
"url": "/ISAPI/PTZCtrl/channels/2/presets"
"deviceSerial": "85cff214670c4bc69a8d7436fb93576c"
"contentType": "application/xml"
}
{
“method": "POST"
“url": "/ISAPI/PTZCtrl/channels/2/presets"
“deviceSerial": "85cff214670c4bc69a8d7436fb93576c"
“contentType": "application/xml"
}
{
"method": "DELETE"
"url": "/ISAPI/PTZCtrl/channels/2/presets"
"deviceSerial": "85cff214670c4bc69a8d7436fb93576c"

129
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

"contentType": "application/xml"
}
{
"method": "PUT"
"url": "/ISAPI/PTZCtrl/channels/1/auxcontrols/1"
"deviceSerial": "85cff214670c4bc69a8d7436fb93576c"
"contentType": "application/xml",
"body": "<PTZAux><type>WIPER</type><status>on</status></PTZAux>"
}

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).
Each code can contain up to 32
characters.
message Req. String Prompt message.
data Req. String Data returned by the successful
request.

Response Example
{
"data": "<?xml version=\"1.0\" encoding=\"UTF-8\" ?><ResponseStatus version=\"2.0\" xmlns=\"http://
www.isapi.org/ver20/XMLSchema\"><requestURL>/ISAPI/PTZCtrl/channels/2/presets/1</
requestURL><statusCode>4</statusCode><statusString>Invalid Operation</
statusString><subStatusCode>notSupport</subStatusCode></ResponseStatus>",
"errorCode": "0"
}

POST /api/hccgw/proxy/v1/isapi/proxypass
Transmit ISAPI protocol transparently.

Note
This API shares the same request and response parameters with POST /api/hccgw/video/v1/
isapi/proxypass , and the parameters are transparently transmitted directly from OpenAPI to Hik-
Connect.

Request URL
https://[serverAddress]:[serverPort]/api/hccgw/proxy/v1/isapi/proxypass

130
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header Token. The maximum length is
64.
method Req. String Body Method (GET, POST, PUT, and
DELETE).
url Req. String Body URL.
id Req. String Body Device ID.
contentType Req. String Body application/​xml, application/
json, and application/​x-www-
form-urlencoded are
supported.
body Opt. String Body Request parameters.

Request Example
{
"method": "GET",
"url": "/ISAPI/PTZCtrl/channels/2/presets/1",
"id": "85cff214670c4bc69a8d7436fb93576c",
"contentType": "application/xml",
"body": ""
}
{
"method": "GET"
"url": "/ISAPI/PTZCtrl/channels/2/presets"
"deviceSerial": "85cff214670c4bc69a8d7436fb93576c"
"contentType": "application/xml"
}
{
“method": "POST"
“url": "/ISAPI/PTZCtrl/channels/2/presets"
“deviceSerial": "85cff214670c4bc69a8d7436fb93576c"
“contentType": "application/xml"
}
{
"method": "DELETE"
"url": "/ISAPI/PTZCtrl/channels/2/presets"
"deviceSerial": "85cff214670c4bc69a8d7436fb93576c"
"contentType": "application/xml"
}
{

131
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

"method": "PUT"
"url": "/ISAPI/PTZCtrl/channels/1/auxcontrols/1"
"deviceSerial": "85cff214670c4bc69a8d7436fb93576c"
"contentType": "application/xml",
"body": "<PTZAux><type>WIPER</type><status>on</status></PTZAux>"
}

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).
Each code can contain up to 32
characters.
message Req. String Prompt message.
data Req. String Data returned by the successful
request.

Response Example
{
"data": "<?xml version=\"1.0\" encoding=\"UTF-8\" ?><ResponseStatus version=\"2.0\" xmlns=\"http://
www.isapi.org/ver20/XMLSchema\"><requestURL>/ISAPI/PTZCtrl/channels/2/presets/1</
requestURL><statusCode>4</statusCode><statusString>Invalid Operation</
statusString><subStatusCode>notSupport</subStatusCode></ResponseStatus>",
"errorCode": "0"
}

POST /api/hccgw/proxy/v1/areas/alarminputs/status/get
Get alarm input status.

Note
This API shares the same function with POST /api/hccgw/resource/v1/areas/alarminputs/
status/get (only difference: the request parameter alarmIntputId and alarmIntputID), and the
parameters are transparently transmitted directly from OpenAPI to Hik-Connect.

Request URL
https://[serverAddress]:[serverPort]/api/hccgw/proxy/v1/areas/alarminputs/status/get

132
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
alarmIntputId Req. Array[String] Body Alarm input ID set. You can get
status of up to 8 resources at
the same time.

Request Example
{
"alarmInputId": [
"2c0a4ab9a2504de4842d95435f3a8620",
"b35b8e9a9326418ca2198ed45709b5bd"
]
}

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).
Each code can contain up to 32
characters.
data Req. Object Data returned by the successful
request. See details in the data Object
Description below.

Table 5-48 data Object Description


Parameter Name Req. or Opt. Data Type Description
alarmInput Req. AlarmInputInfo [] Returned alarm input status. If the
requested alarm input ID does not
exist, the returned information will
not include the corresponding alarm
input information.

Response Example
{
"data": {

133
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

"alarmInput": [
{
"id": "0da41f0ac59c4debade796914f874148",
"status": 2,
"errorCode": "0"
},
{
"id": "3d75a50c0ae84fc99c19581ef82d1b29",
"status": 1,
"errorCode": "0"
}
]
},
"errorCode": "0"
}

5.6.3 Residents

POST /api/hccgw/vims/v1/person/search
Search for residents.

Request URL
https://[serverAddress]:[serverPort]/api/hccgw/vims/v1/person/search
Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header Token. The maximum length is
64.
pageNum Req. Integer Body Page number.
pageSize Req. Integer Body Page size.
searchCriteria Req. Object Body Search condition. Refer to
ResidentSearchRequest for
details.

Request Example
{
"pageNum": 0,
"pageSize": 0,
"searchRequest": {

134
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

"areaId": "",
"buildId": "",
"isContainSubArea": 0,
"filter": {
"name": "",
"roomNum": 0,
"email": "",
"phone": "",
"type": 0,
"isExpired": 0
}
}}

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).
Each code can contain up to 32
characters.
data Req. Object Data returned by the successful
request. See details in the data Object
Description below.

Table 5-49 data Object Description


Parameter Name Req. or Opt. Data Type Description
pageNum Req. Integer Page number.
pageSize Req. Integer Page size.
totalNum Req. Integer Total records.
personList Req. Person List of person information.

Response Example
{
"data": {
{
"pageNum": 0,
"pageSize": 0,
"totalNum": 0,
"personList": [
{
"personId": "",

135
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

"firstName": "",
"lastName": "",
"phone": "",
"email": "",
"isExpired": 0,
"photoUrl": "",
"headPicUrl": "",
"roomList": [
{
"roomId": "",
"roomNum": 0,
"roomName": "",
"areaId": "",
"areaName": "",
"buildId": "",
"buildName": "",
"accountType": 0
}
]
}
]
}
},
"errorCode": "0"
}

POST /api/hccgw/vims/v1/person/add
Add a resident.

Request URL

Note
Refer to Add Resident for specific guidance.
https://[serverAddress]:[serverPort]/api/hccgw/vims/v1/person/add
Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header Token. The maximum length is
64.
alIds Opt. String[] Body Access level ID.

136
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Parameter Req. or Opt. Data Type Parameter Description


Type
language Opt. String Body Language used for sending
emails to the resident, for
example, zh_CN (Chinese). If
this parameter is empty, the
default language will be en
(English).
If the resident is added from
the existing persons, this
parameter is not required to be
filled in.
List of languages: en (English),
it (Italiano), es (Español), de
(Deutsch), fr (Français) pl
(Polski), nl (Nederlands), pt
(Português), ru (Русский), tr

(Türkçe), ko ( ), zh_
TW (繁體中文), zh_CN (简体中
文), th (ภาษาไทย), vi (Tiếng Việt),
ja (日本語), pt_BR
(Português(Brasil)), ar (‫)العربية‬, id
(Bahasa Indonesia)
personBaseInf Req. PersonDTO Body Person basic information.
o
roomList Req. RoomDTO [] Body Resident room information.

Request Example
{
"personBaseInfo": {
"id": "",
"personCode": "",
"groupId": "",
"firstName": "",
"lastName": "",
"gender": 0,
"phone": "",
"email": "",
"description": "",
"startDate": "",
"endDate": ""

137
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

},
"alIds": [
""
],
"roomList": [
{
"roomId": "",
"roomNum": 0,
"buildId": "",
"buildName": "",
"areaId": "",
"areaName": "",
"accountType": 0
}
],
"language": ""
}

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).
Each code can contain up to 32
characters.
data Req. Object Data returned by the successful
request. See details in the data Object
Description below.

Table 5-50 data Object Description


Parameter Name Req. or Opt. Data Type Description
personId Req. String Person ID.
failedResultList Opt. FailedResult [] The error list is returned only when
the number of persons exceeds the
limit.

Response Example
{
"data": {
"personId": ""
},

138
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

"errorCode": "0"
}

POST /api/hccgw/vims/v1/person/update
Update a resident.

Request URL

Note
Refer to Update Resident for specific guidance.
https://[serverAddress]:[serverPort]/api/hccgw/vims/v1/person/update
Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header Token. The maximum length is
64.
alIds Opt. String[] Body Access level ID.
personBaseInf Req. Object Body Person basic information. Refer
o to PersonDTO for details.
roomList Req. RoomDTO [] Body Resident room information.

Request Example
{
"personBaseInfo": {
"id": "",
"personCode": "",
"groupId": "",
"firstName": "",
"lastName": "",
"gender": 0,
"phone": "",
"email": "",
"description": "",
"startDate": "",
"endDate": ""
},
"alIds": [
""
],

139
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

"roomList": [
{
"roomId": "",
"roomNum": 0,
"buildId": "",
"buildName": "",
"areaId": "",
"areaName": "",
"accountType": 0
}
],
"language": ""
}

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).
Each code can contain up to 32
characters.

Response Example
{
"errorCode": "0"
}

POST /api/hccgw/vims/v1/person/delete
Delete a resident.

Request URL

Note
This API only deletes the linkage between the resident and the room(s). To completely delete the
person, refer to POST /api/hccgw/person/v1/persons/delete .
https://[serverAddress]:[serverPort]/api/hccgw/vims/v1/person/delete

140
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header Token. The maximum length is
64.
deleteList Req. String[] Body ID of the resident to be
deleted.

Request Example
{
"deleteList": [“string1”]
}

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).
Each code can contain up to 32
characters.

Response Example
{
"errorCode": "0"
}

5.6.4 Temporary Passes


A temporary pass contains a password and a QR code. A person with a temporary access need
(e.g., delivery person) can use the temporary pass to unlock doors according to the set access level.

POST /api/hccgw/vims/v1/tempauth/get
Get temporary passes.

Request URL
https://[serverAddress]:[serverPort]/api/hccgw/vims/v1/tempauth/get

141
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header Token. The maximum length is
64.
id Req. String Body Temporary pass ID (temporary
person ID).
clientLocalTim Req. String Body Request time (in ISO 8601
e format). Refer to ISO 8601
Time Format Instruction for
details.

Request Example
{
"id": "237160983473358848",
"clientLocalTime": "2022-10-28T11:08:23+08:00"
}

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).
Each code can contain up to 32
characters.
data Req. Object Data returned by the successful
request. See details in the data Object
Description below.

Table 5-51 data Object Description


Parameter Req. or Opt. Data Type Description
openCount Req. Integer Allowed passes for each door.
name Req. String Temporary pass name.
startTime Req. Long Start time of the validity period (unit:
ms).

142
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Parameter Req. or Opt. Data Type Description


endTime Req. Long End time of the validity period (unit:
ms).
code Req. String base64.
creatorId Req. String Creator ID.
creatorName Req. String Creator name.
expiredStatus Req. Integer Expiry status: 1-expired, 0-valid.
password Req. String Password to open the door.
accessLevelList Req. AccessLevel Access level information.

Response Example
{
"data": {
{
"openCount": 0,
"name": "",
"startTime": 0,
"endTime": 0,
"code": "",
"creatorId": "",
"creatorName": "",
"expiredStatus": 0,
"password": "",
"accessLevelList": [
{
"accessLevelId": "",
"accessLevelName": ""
}
]
}"
},
"errorCode": "0"
}

POST /api/hccgw/vims/v1/tempauth/list
Search for temporary passes.

Request URL
https://[serverAddress]:[serverPort]/api/hccgw/vims/v1/tempauth/list

143
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header Token. The maximum length is
64.
pageNum Req. Integer Body Page number.
pageSize Req. Integer Body Page size.
searchRequest Opt. Object Body Search conditions. Refer to
TempAuthSearchRequest for
details.

Request Example
{
"pageNum": 0,
"pageSize": 0,
"searchRequest": {
"filter": {
"name": ""
}
}}

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).
Each code can contain up to 32
characters.
data Req. Object Data returned by the successful
request. See details in the data Object
Description below.

Table 5-52 data Object Description


Parameter Req. or Opt. Data Type Description
pageNum Req. Integer Page number.
pageSize Req. Integer Page size.

144
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Parameter Req. or Opt. Data Type Description


totalNum Req. Integer Total records.
tempAuthList Req. TempAuth [] List of temporary passes.

Response Example
{
"data": {
{
"pageNum": 0,
"pageSize": 0,
"totalNum": 0,
"tempAuthList": [
{
"id": "",
"name": "",
"openCount": 0,
"creatorId": "",
"creatorName": "",
"password": "",
"creatorEmail": "",
"startDate": 0,
"endDate": 0,
"expiredStatus": 0
}
]
}
},
"errorCode": "0"
}

POST /api/hccgw/vims/v1/tempauth/add
Add temporary passes.

Request URL

Note
Refer to Add Temporary Pass for specific guidance.
https://[serverAddress]:[serverPort]/api/hccgw/vims/v1/tempauth/add

145
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header Token. The maximum length is
64.
name Req. String Body Temporary pass name. The
maximum length is 32.
openCount Req. Integer Body Allowed passes for each door.
The range is between 1 and
200.
startTime Req. String Body Start time of validity period
(unit: ms, in ISO 8601 format).
Refer to ISO 8601 Time Format
Instruction for details.
endTime Req. String Body End time of validity period
(unit: ms, in ISO 8601 format).
Refer to ISO 8601 Time Format
Instruction for details.
clientLocalTim Req. String Body Request time (in ISO 8601
e format). Refer to ISO 8601
Time Format Instruction for
details.
alIds Opt. String[] Body List of access level ID. Required
for the Portal, optional for the
Mobile Client.

Request Example
{
"name": "",
"openCount": 0,
"startTime": "",
"endTime": "",
"clientLocalTime": "",
"alIds": [
""
]
}

146
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).
Each code can contain up to 32
characters.
data Req. Object Data returned by the successful
request. See details in the data Object
Description below.

Table 5-53 data Object Description


Parameter Req. or Opt. Data Type Description
id Req. String Temporary pass ID.
openCount Req. Integer Times of opening door.
name Req. String Temporary pass name.
startTime Req. Long Start time of validity period (unit: ms).
endTime Req. Long End time of validity period (unit: ms).
code Req. String Base64 encoding.
creatorId Req. String Creator ID.
creatorName Req. String Creator name.
expiredStatus Req. Integer Expiry status: 1-expired, 0-valid.
password Req. String Password to open the door.
accessLevelList Opt. AccessLevel [] Access level information.

Response Example
{
"data": {
{
"id": “”,
"openCount": 0,
"name": "",
"startTime": 0,
"endTime": 0,
"code": "",
"creatorId": "",

147
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

"creatorName": "",
"expiredStatus": 0,
"password": "",
"accessLevelList": [
{
"accessLevelId": "",
"accessLevelName": ""
}
]
}"
},
"errorCode": "0"
}

POST /api/hccgw/vims/v1/tempauth/update
Update temporary passes.

Request URL
https://[serverAddress]:[serverPort]/api/hccgw/vims/v1/tempauth/update
Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header Token. The maximum length is
64.
id Req. String Body Temporary pass ID.
name Req. String Body Temporary pass name. The
maximum length is 32.
openCount Req. Integer Body Allowed passes for each door.
The range is between 1 and
200.
startTime Req. String Body Start time of validity period (in
ISO 8601 format). Refer to ISO
8601 Time Format Instruction
for details.
endTime Req. String Body End time of validity period (in
ISO 8601 format). Refer to ISO
8601 Time Format Instruction
for details.

148
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Parameter Req. or Opt. Data Type Parameter Description


Type
clientLocalTim Req. String Body Current time of the request (in
e ISO 8601 format). Refer to ISO
8601 Time Format Instruction
for details.
alIds Opt. String Body List of access level ID. Required
for the Portal, optional for the
Mobile Client.

Request Example
{
"id": "",
"name": "",
"openCount": 0,
"startTime": "",
"endTime": "",
"clientLocalTime": "",
"alIds": [
""
]
}

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).
Each code can contain up to 32
characters.

Response Example
{
"errorCode": "0"
}

POST /api/hccgw/vims/v1/tempauth/delete
Delete temporary passes.

149
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Request URL
https://[serverAddress]:[serverPort]/api/hccgw/vims/v1/tempauth/delete
Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header Token. The maximum length is
64.
deleteList Req. String[] Body List of temporary pass ID.

Request Example
{
"deleteList": [“string1”]
}

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).
Each code can contain up to 32
characters.

Response Example
{
"errorCode": "0"
}

5.6.5 Video Intercom Calls

POST /api/hccgw/devcall/v1/call/receive
Respond to calls.

Request URL
https://[serverAddress]:[serverPort]/api/hccgw/devcall/v1/call/receive

150
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header Token. The maximum length is
64.
recordId Req. String Body Call record ID. The maximum
length is 64.
status Req. Integer Body Operation type: 1-answer
(when receiving calls), 2-not
answer (when receiving calls),
3-hang up (after the call is
picked up).
userId Req. String Body User ID of the called resident,
which can be obtained from
POST /api/hccgw/
platform/v1/users/get .

Request Example
{
"recordId": "",
"userId": "",
"status": "2"
}

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).
Each code can contain up to 32
characters.

Response Example
{
"errorCode": "0"
}

151
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

5.7 Access Control Services

5.7.1 POST /api/hccgw/acs/v1/remote/control


Open door remotely.

Request URL
https://[serverAddress]:[serverPort]/api/hccgw/acs/v1/remote/control
Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header Token. The maximum length is
64.
remoteControl Req. RemoteContro Body Operation content.
l

Request Example
{
"remoteControl": {
"actionType": 0,
"elementlist": [
""
],
"direction": 0,
"areaId": "",
"depthTraversal": 0
}}

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).

152
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Parameter Req. or Opt. Data Type Description


Each code can contain up to 32
characters.
data Req. Object Data returned by the successful
request. See details in the data Object
Description below.

Table 5-54 data Object Description


Parameter Req. or Opt. Data Type Description
operationResult Req. RemoteControlRe List of failures. If this parameter is
sponse [] empty, the operation succeeded.

Response Example
{
"data": {
{
"operationResult": [
{
"elementId": "",
"elementName": "",
"areaId": "",
"areaName": "",
"errorCode": ""
}
]
}
},
"errorCode": "0"
}

5.7.2 GET /api/hccgw/acs/v1/encryptinfo/get


Get system Bluetooth encryption key.

Request URL
https://[serverAddress]:[serverPort]/api/hccgw/acs/v1/encryptinfo/get

153
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header Token. The maximum length is
64.

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).
Each code can contain up to 32
characters.
data Req. Object Data returned by the successful
request. See details in the data Object
Description below.

Table 5-55 data Object Description


Parameter Req. or Opt. Data Type Description
encryptType Req. String Encryption type (AES128_CBC).
authData Req. String Authentication information (32-byte
hex data).
vector Req. String Initialized vector (32-byte hex data).
loopCount Req. Integer Times of loop when generating the
encryption key.

Response Example
{
"data": {
"encryptType": "",
"authData": "",
"vector": "",
"loopCount": 0
},
"errorCode": "0"
}

154
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

5.7.3 POST /api/hccgw/acs/v1/event/certificaterecords/search


Search for access control card swiping records. Search for corresponding access control card
swiping records by page according to start time and end time, access point ID, event type, and
person name.

Request URL
https://[serverAddress]:[serverPort]/api/hccgw/acs/v1/event/certificaterecords/search
Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header Token. The maximum length is
64.
pageIndex Opt. Integer Body The current page. The default
value is 1.
pageSize Opt. Integer Body Number of records on each
page, which is between 1 and
200.
searchCriteria Opt. Object Body Conditions for searching for
card swiping records.

Table 5-56 searchCriteria Details


Parameter Req. or Opt. Data Type Description
beginTime Opt. String Begin time, ISO time format, e.g.: 2023-10-
21T11:08:23+08:00.
endTime Opt. String End time, ISO time format, e.g.: 2023-10-
21T11:08:23+08:00.
type Opt. Integer Searching time type, 0: client time, 1: device
time, 0 by default.
eventTypes Opt. String Event type, seperate by comma.
swipeAuthRes Opt. Integer Authentication result, 0: all, 1: succeed, 2: fail.
ult
elementIDs Opt. String Access control point, seperate by comma.

155
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Parameter Req. or Opt. Data Type Description


searchType Opt. Integer 0: search by person, 1: search by card number, 0
by default.
personConditi Opt. Object Person searching condition. It is valid when
on searchType equals 0. Details are as follows.
cardNumber Opt. String Card number. It is valid when searchType is 1.
temperatureSt Opt. Integer Temperature status, 0-all, 1-normal, 2-​exception,
atus 3-unknown.
maskStatus Opt. Integer Mask status, 0-all, 1-unknown, 2-no mask, 3-
wearing mask.

Table 5-57 personCondition Details


Parameter Req. or Opt. Data Type Description
personIds Opt. String Person ID conflicts with
person name,
separated by comma.
personName Opt. String Person name, fuzzy
search.

Request Example
{
"pageIndex":1,
"pageSize":20
}

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).

156
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Parameter Req. or Opt. Data Type Description


Each code can contain up to 32
characters.
errorMsg Req. String Error message.
data Req. Object Data returned by the successful
request. See details in the data Object
Description below.

Parameter Req. or Opt. Data Type Description


recordList Req. RecordInfo [] Department list.
pageIndex Req. Integer Page No.
pageSize Req. Integer Items per page.
totalNum Req. Integer Total number.

Response Example
{
"errorCode": "0",
"errorMsg": "",
"data": {
"totalNum":4,
"pageIndex":1,
"pageSize":1,
"recordList": []
}
}

5.7.4 POST /api/hccgw/acspm/v1/accesslevel/list


Get access level list of the system by condition. Currently add access level only via HCC/HCT. Users
can contact technical support for guidance and help.

Request URL
https://[serverAddress]:[serverPort]/api/hccgw/acspm/v1/accesslevel/list

157
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header Token. The maximum length is
64.
accessLevelSe Req. String AccessLevelSe Request packet body.
archRequest archRequest

Request Example
{
"accessLevelSearchRequest":{
"pageIndex":1,
"pageSize":20,
"searchCriteria":{
"accessLevelName":"",
"associateResInfoList":[ ]
}
}
}

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).
Each code can contain up to 32
characters.
errorMsg Req. String Error message.
data Req. Object Data returned by the successful
request. See details in the data Object
Description below.

Parameter Req. or Opt. Data Type Description


accessLevelRespo Req. AccessLevelRespo AccessLevel list.
nse nse
pageIndex Req. Integer Page No.

158
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Parameter Req. or Opt. Data Type Description


pageSize Req. Integer Items per page.
totalNum Req. Integer Total number.

Response Example
{
"errorCode": "0",
"errorMsg": "",
"data": {
"accessLevelResponse":{
"pageIndex":1,
"pageSize":1,
"totalNum": 1,
"accessLevelList":[]
}
}
}

5.7.5 POST /api/hccgw/acspm/v1/maintain/overview/person/{id}/elementdetail


Get access level apply information of the person according to person ID.

Request URL
https://[serverAddress]:[serverPort]/api/hccgw/acspm/v1/maintain/overview/person/{id}/
elementdetail
Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header Token. The maximum length is
64.
personId Req. String Url Param Person ID
returnSuccess Opt. Boolean Body Whether to return success
information. It is false by
default (not returned).

Request Example
POST /api/hccgw/acspm/v1/maintain/overview/person/111222333/elementdetail
{

159
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

"returnSuccess": false
}

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).
Each code can contain up to 32
characters.
errorMsg Req. String Error message.
data Req. Object Data returned by the successful
request. See details in the data Object
Description below.

Parameter Req. or Opt. Data Type Description


elementDetailList Req. ElementDetail [] ElementDetail list.

Response Example
{
"errorCode": "0",
"errorMsg": "",
"data": {
"elementDetailList": [
{
"id": "3e252f4f3e1a4831850abc06778fa484",
"name": "AF6590718-Door 1",
"type": 0,
"elementStatus": {
"errorCode": "",
"status": 2
},
"certificateStatusList": [
{
"id": "377772357428962304",
"errorCode": "THD_ISAPI_0x60000037",
"status": 2,
"type": 2
}
]
}
]}
}

160
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

5.7.6 POST /api/hccgw/acspm/v1/accesslevel/person/add


Add access level by person.

Request URL
https://[serverAddress]:[serverPort] /api/hccgw/acspm/v1/accesslevel/person/add
Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header Token. The maximum length is
64.
personList Req. Object[] Body List corresponding to person
and access level.

Table 5-58 Object Description


Parameter Req. or Opt. Data Type Parameter Description
Type
personId Opt. String Header Person ID, which contains 1 to
18 digits.
accessLevelIdLi Opt. String[] Body Access level list. Each access
st level ID should contain 1 to 18
digits.

Request Example
{
"personList":[{
"personId":"aaaa",
"accessLevelIdList": ["222","333"]
}
]
}

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer

161
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Parameter Req. or Opt. Data Type Description


to Status and Error Code for details).
Each code can contain up to 32
characters.
Message Opt. String Error message.
Data Opt. Object[] Data returned by the successful
request. See details in the data Object
Description below.

Table 5-59 Object Description


Parameter Req. or Opt. Data Type Description
accessLevelFailed Opt. AccessLevelFailed List of access level assigning failures.
[]

Response Example
{
"errorCode": "0"
}

5.7.7 POST /api/hccgw/acspm/v1/accesslevel/person/delete


Remove access level by person.

Request URL
https://[serverAddress]:[serverPort] /api/hccgw/acspm/v1/accesslevel/person/delete
Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header Token. The maximum length is
64.
personList Req. Object[] Body List corresponding to person
and access level.

162
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Table 5-60 Object Description


Parameter Req. or Opt. Data Type Parameter Description
Type
personId Opt. String Body Person ID, 1-18 digits.
accessLevelIdLi Opt. String[] Body Access level list. Each access
st level ID should contain 1-18
digits.
deleteAll Opt. boolean Body Whether to delete all.
accessLevelIdList is invalid
when it is true.

Request Example
{
"personList":[{
"personId":"aaaa",
"deleteAll":false,
"accessLevelIdList": ["222","333"]
}
]
}

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).
Each code can contain up to 32
characters.
Message Opt. String Error message.
Data Opt. Object[] Data returned by the successful
request. See details in the data Object
Description below.

Table 5-61 Object Description


Parameter Req. or Opt. Data Type Description
accessLevelFailed Opt. AccessLevelFailed List of access level assigning failures.
[]

163
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Response Example
{
"errorCode": "0"
}

5.7.8 POST /api/hccgw/acspm/v1/accesslevel/person/modify


Assign access level by person.

Request URL
https://[serverAddress]:[serverPort] /api/hccgw/acspm/v1/accesslevel/person/modify
Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header Token. The maximum length is
64.
personList Req. Object[] Body List corresponding to person
and access level.

Table 5-62 Object Description


Parameter Req. or Opt. Data Type Parameter Description
Type
personId Opt. String Body Person ID, 1-18 digits.
accessLevelIdLi Opt. String[] Body Person full access level list.
st Back-end check adding and
deleting according to history
data. Access level ID should
contain 1-18 digits.
deleteAll Opt. boolean Body Whether to delete all.
accessLevelIdList is invalid
when it is true.

Request Example
{
"personList":[{
"personId":"aaaa",

164
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

"deleteAll":false,
"accessLevelIdList": ["222","333"]
}
]
}

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).
Each code can contain up to 32
characters.
Message Opt. String Error message.
Data Opt. Object[] Data returned by the successful
request. See details in the data Object
Description below.

Table 5-63 Object Description


Parameter Req. or Opt. Data Type Description
accessLevelFailed Opt. AccessLevelFailed List of access level assigning failures.
[]

Response Example
{
"errorCode": "0"
}

5.8 Person-Related Services

5.8.1 POST /api/hccgw/person/v1/groups/search


Get department list. Currently department can only be configured on HCC/HCT. Contact technical
support when adding departments.

Request URL
Please refer to Add Person .
https://[serverAddress]:[serverPort]/api/hccgw/person/v1/groups/search

165
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header Token. The maximum length is
64.
parentGroupId Opt. String Body Parent node ID. If this
parameter is empty, the
department in the root
directory will be included.
groupName Opt. String Body Department name for fuzzy
search. The maximum length is
64.
depthTraversa Opt. Bool Body Whether to enable deep
l search: true, false. The default
option is false. (True-return
including parentGroupId and all
sub-nodes, false-including
parentGroupId and lower-level
sub-nodes, false by default.)
groupIdList Opt. Array[String] Body Department ID list. Used for
getting department
information. (If this parameter
exists, parameters above are
invalid. Search only by
groupId.)

Request Example
{
"parentGroupId": "",
"groupName": "",
"depthTraversal": "",
"groupIdList": ["111"]
}

166
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).
Each code can contain up to 32
characters.
errorMsg Req. String Error message.
data Req. Object Data returned by the successful
request. See details in the data Object
Description below.

Table 5-64 data Object Description


Parameter Req. or Opt. Data Type Description
personGroupList Req. PersonGroup [] Department list.

Response Example
{
"errorCode": "0",
"errorMsg": "",
"data": {
"personGroupList": [
{
"groupId": "",
"groupName": "",
"parentId": "",
"childNodeExist": "",
"permissionState": "",
"description": "",
"areaList": [{
"areaId": ""
}],
"groupFullPath": ""
}
]
}
}

167
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

5.8.2 POST /api/hccgw/person/v1/persons/add


Add a person on the platform.

Request URL
Please refer to Add Person .
https://[serverAddress]:[serverPort]/api/hccgw/person/v1/persons/add
Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header Token. The maximum length is
64.
groupId Req. String Body Person group ID.
personCode Req. String Body Employee No., 1-16 characters,
digits and letters allowed,
which should be unique.
firstName Req. String Body First name, no more than 255
characters. First name and last
name should be no more than
255 characters.
lastName Req. String Body Last name, no more than 255
characters. First name and last
name should be no more than
255 characters.
gender Req. Integer Body 0-female, 1-male, 2-unknown.
phone Opt. String Body Phone number, no more than
32 characters.
email Opt. String Body Email address, no more than 64
characters.
description Opt. String Body Description, no more than 128
characters.

168
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Parameter Req. or Opt. Data Type Parameter Description


Type
startDate Req. String Body Validity period start date, ISO
time format, e.g.: 2022-10-
21T11:08:23+08:00.
endDate Req. String Body Validity period end date, ISO
time format, e.g.: 2023-10-
21T11:08:23+08:00. The year
should be no more than 2037.
After the validity period,
person and person on the
device will not be deleted, but
authentication via fingerprint,
swiping card, PIN code, and
face picture are not allowed on
the device.

Request Example
{
"groupId": "378117915440051200",
"firstName": "test",
"lastName":"",
"gender": 2,
"personCode":"odhdf888",
"phone": "110",
"email": "[email protected]",
"description": "",
"startDate": "2022-02-21T20:12:45+08:00",
"endDate": "2032-02-21T20:12:45+08:00"
}

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).

169
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Parameter Req. or Opt. Data Type Description


Each code can contain up to 32
characters.
message Opt. String Error message.
data Opt. Object Data returned by the successful
request. See details in the data Object
Description below.

Table 5-65 data Object Description


Parameter Req. or Opt. Data Type Description
personId Req. String Person ID added.
personCode Req. String Employee No. added.

Response Example
{
"data": {
"personId": "379224379437087745",
"personCode": "0dhdf888"
},
"errorCode": "0"
}

5.8.3 POST /api/hccgw/person/v1/persons/update


Update person's basic information. If person has been applied to device, the information will be
modified on device as well.

Request URL
https://[serverAddress]:[serverPort]/api/hccgw/person/v1/persons/update
Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header Token. The maximum length is
64.
groupId Req. String Body Person group ID.

170
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Parameter Req. or Opt. Data Type Parameter Description


Type
firstName Req. String Body First name, no more than 255
characters. First name and last
name should be no more than
255 characters.
lastName Req. String Body Last name, no more than 255
characters. First name and last
name should be no more than
255 characters.
gender Req. Integer Body 0-female, 1-male, 2-unknown.
phone Opt. String Body Phone number, no more than
32 characters.
email Opt. String Body Email address, no more than 64
characters.
description Opt. String Body Description, no more than 128
characters.
startDate Req. String Body Validity period start date, ISO
time format, e.g.: 2022-10-
21T11:08:23+08:00.
endDate Req. String Body Validity period end date, ISO
time format, e.g.: 2023-10-
21T11:08:23+08:00. The year
should be no more than 2037.
personCode Req. String Body Employee No., returned after
the person is added. If the
person is added but not
recorded, you can search via
POST /api/hccgw/person/v1/
persons/get or POST /api/
hccgw/person/v1/persons/
list . The employee No. cannot
be edited.
personId Req. String Body Person ID, returned after the
person is added. If the person
is added but not recorded,

171
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Parameter Req. or Opt. Data Type Parameter Description


Type
search via POST /api/hccgw/
person/v1/persons/list .

Request Example
{
"groupId": "1",
"firstName": "test1",
"lastName":"test12",
"gender": 2,
"phone": "110",
"email": "[email protected]",
"startDate": "2022-02-21T20:12:45+08:00",
"endDate": "2032-02-21T20:12:45+08:00",
"personCode":"odhdf888",
"personId":"399996371484193792"
}

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).
Each code can contain up to 32
characters.
Message Opt. String Error message.

Response Example
{
"errorCode": "0"
}

5.8.4 POST /api/hccgw/person/v1/persons/photo


Update face pictures of persons. If the person has been applied to the device, the face picture
information of the person will be updated.

172
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Request URL
https://[serverAddress]:[serverPort]/api/hccgw/person/v1/persons/photo
Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header Token. The maximum length is
64 characters.
personId Req. String Body Person ID.
photoData Req. String Body Face picture data encoded by
Base 64. The face picture size is
not limited. If the picture size
exceeds 200K, the picture will
be compressed.

Request Example
{
"personId":"381019761745728512",
"photoData":"ddd"
}

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).
Each code can contain up to 32
characters.
Message Opt. String Error message.

Response Example
{
"errorCode": "0"
}

173
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

5.8.5 POST /api/hccgw/person/v1/persons/fingercollect


Collect fingerprints of persons. The device should support collecting fingerprints and has been
added to HCC/HCT beforehand.

Request URL
https://[serverAddress]:[serverPort]/api/hccgw/person/v1/persons/fingercollect
Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header Token. The maximum length is
64.
deviceSerial Req. String Body Collection device serial No.

Request Example
{
"deviceSerial": "378117915440051200"
}

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).
Each code can contain up to 32
characters.
Message Opt. String Error message.
Data Opt. Object Data returned by the successful
request. See details in the Data Object
Description below.

174
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Table 5-66 Data Object Description


Parameter Req. or Opt. Data Type Description
fingerData Opt. String Fingerprint data.
fingerQuality Opt. Integer Fingerprint quality.
Range of value: [1,
100]. It is used to
evaluate finger quality.
The higher the value,
the more accurate the
fingerprint recognition.
It is recommended to
use the fingerprint of
quality above 80.

Response Example
{
"errorCode": "0",
"data": {
"fingerData": "aaaa",
"fingerQuality": 100
}
}

5.8.6 POST /api/hccgw/person/v1/persons/updatefingers


Update fingerprints of persons. Fingerprints are collected by device.

Request URL
https://[serverAddress]:[serverPort]/api/hccgw/person/v1/persons/updatefingers

175
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header Token. The maximum length is
64.
personId Req. String Body Person ID.
fingerList Opt. Object[] Body Fingerprint list of person. If this
node is not uploaded or set, all
fingerprint data of the person
will be deleted. Up to 2
fingerprints can be configured
for one person. If you need to
reserve only one fingerprint of
two, you should upload the
fingerprint data (id, name, and
data) of the fingerprint to be
reserved.

Table 5-67 fingerList Object Description


Parameter Req. or Opt. Data Type Description
id Opt. String Fingerprint ID. If this
node is not uploaded,
it means adding the
fingerprint by default,
otherwise it means
editing the fingerprint.
name Req. String Fingerprint name. It is
used to record which
finger the fingerprint
belongs to. The
maximum length is 32.
data Req. String Fingerprint data
(hexadecimal data).
The maximum length is
1024.

176
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Request Example
{
"personId":"377140151211762688",
"fingerList":[{
"data":"90030500A3B1564620B3A616A0A7246092E00000000000397",
"name":"ssssss"
}]
}

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).
Each code can contain up to 32
characters.
Message Opt. String Error message.
Data Opt. Object Data returned by the successful
request. See details in the Data Object
Description below.

Table 5-68 Data Object Description


Parameter Req. or Opt. Data Type Description
fingerFailed Opt. FingerFailed Fingerprint data error
list.

Response Example
{
"errorCode":"0",
"data":{
"fingerFailed":{
"personId":"",
"personName":"",
"errorCode ":"0",
" fingerList ":[{
"id":"0",
"failedName":"0",
"errorCode":"CCF000000"
}]
}

177
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

}
}

5.8.7 POST /api/hccgw/person/v1/persons/cardcollect


Collect card information of persons. The device should support collecting card information and has
been added to HCC/HCT beforehand.

Request URL
https://[serverAddress]:[serverPort]/api/hccgw/person/v1/persons/cardcollect
Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header Token. The maximum length is
64.
deviceSerial Req. String Body Collection device serial No.

Request Example
{
"deviceSerial": "378117915440051200"
}

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).
Each code can contain up to 32
characters.
Message Opt. String Error message.
Data Opt. Object Data returned by the successful
request. See details in the Data Object
Description below.

178
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Table 5-69 Data Object Description


Parameter Req. or Opt. Data Type Description
cardNo Opt. String The returned card No.

Response Example
{
"errorCode":"0",
"data":{
"cardNo":"666"
}
}

5.8.8 POST /api/hccgw/person/v1/persons/updatecards


Update cards information of persons. The card NO. can be collected by device and cannot be
duplicated. If you know the card NO., you can enter it by yourself.

Request URL
https://[serverAddress]:[serverPort]/api/hccgw/person/v1/persons/updatecards
Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header Token. The maximum length is
64.
personId Req. String Body Person ID.
cardList Opt. Object[] Body Card list of person. If this node
is not uploaded or set, all card
data of the person will be
deleted. Up to 2 cards data can
be configured for one person. If
you need to reserve only one
card of two, you should upload
the card data (id and cardNo)
of the card to be reserved.

179
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Table 5-70 cardList Object Description


Parameter Req. or Opt. Data Type Description
id Opt. String Card ID. If this node is
not uploaded, it means
adding the card by
default, otherwise it
means editing the
card. After editing, the
card No. will change.
cardNo Req. String Card No., which cannot
be duplicated. The
maximum length is 20.

Request Example
{
"personId":"378222739150076928",
"cardList":[{
"cardNo":"892"
}]
}

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).
Each code can contain up to 32
characters.
Message Opt. String Error message.
Data Opt. Object Data returned by the successful
request. See details in the Data Object
Description below.

Table 5-71 Data Object Description


Parameter Req. or Opt. Data Type Description
cardFailed Opt. CardFailed Card data error list.

180
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Response Example
{
"errorCode":"0",
"data":{
"cardFailed":{
"personId":"",
"personName":"",
"errorCode ":"0",
"cardList ":[{
"cardId":"0",
"cardNo":"0",
"errorCode":"CCF000000"
}]
}
}
}

5.8.9 POST /api/hccgw/person/v1/persons/updatepincode


Update PIN code. PIN code can be used as password to open a door.

Request URL
https://[serverAddress]:[serverPort]/api/hccgw/person/v1/persons/updatepincode
Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header Token. The maximum length is
64.
personId Req. String Body Person ID.
pinCode Req. String Body PIN code. If this node is not set,
it will be deleted and not be
applied to the device. Length
range: [4, 8] digits.

Request Example
{
"personId":"395611750566890496",
"pinCode":"3452"
}

181
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).
Each code can contain up to 32
characters.
Message Opt. String Error message.

Response Example
{
"errorCode": "0"
}

5.8.10 POST /api/hccgw/person/v1/persons/get


View the information (face picture, card, fingerprint, etc.) of a single person.

Request URL
https://[serverAddress]:[serverPort]/api/hccgw/person/v1/persons/get
Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header Token. The maximum length is
64.
Id Req. String Body Person ID.

Request Example
{
"personId":"376748042642236416"
}

182
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).
Each code can contain up to 32
characters.
Message Opt. String Error message.
Data Opt. Object Data returned by the successful
request. See details in the Data Object
Description below.

Table 5-72 Data Object Description


Parameter Req. or Opt. Data Type Description
personInfo Opt. PersonInfo(1) Person basic
information.
cardList Opt. Card(2) [] Card information list.
fingerList Opt. Finger(2) [] Fingerprint information
list.
pinCode Opt. String PIN code.

Response Example
{
"errorCode": "0",
"data":{}
}

5.8.11 POST /api/hccgw/person/v1/persons/delete


Delete persons. The persons on the device will also be deleted.

Request URL
https://[serverAddress]:[serverPort]/api/hccgw/person/v1/persons/delete

183
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header Token. The maximum length is
64.
personId Req. String Body Person ID. Multiple person IDs
are separated by commas.

Request Example
{
"personId":"376748042642236416"
}

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).
Each code can contain up to 32
characters.
Message Opt. String Error message.

Response Example
{
"errorCode": "0"
}

5.8.12 POST /api/hccgw/person/v1/persons/quick/add


Add a person quickly, and apply the PIN code and face picture information of the person to the
device. The card information and fingerprint should be collected beforehand. For now quick
applying is not supported.

Request URL
https://[serverAddress]:[serverPort]/api/hccgw/person/v1/persons/quick/add

184
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header Token. The maximum length is
64.
personInfo Req. PersonBaseInf Body Basic information of the
o(2) person.
aceessLevelLis Opt. String[] Body Access level ID list.
t
pinCode Opt. String Body PIN code. Length: [4, 8] digits.
photoData Opt. String Body Face picture data encoded by
Base 64. The face picture file
size is not limited, but if the
picture size exceeds 200K, the
picture will be compressed.

Table 5-73 Object Description


Parameter Req. or Opt. Data Type Description
name Req. String Fingerprint name. The
maximum length is 32.
data Req. String Fingerprint data
(hexadecimal data).
The maximum length is
1024.

Request Example
{
"personInfo":{
"groupId":"381019761120777216",
"firstName":"zmh_145",
"lastName":"",
"gender":1,
"phone":"1124235678051",
"email":"[email protected]",
"startDate":"2023-02-21T20:12:45+08:00",
"endDate":"2033-02-21T20:12:45+08:00",
"personCode":"12114785901"
},
"pinCode":"33456",

185
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

"photoData":"",
"aceessLevelList":["395619513653140480"]
}

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).
Each code can contain up to 32
characters.
Message Opt. String Error message.
Data Opt. Object Data returned by the successful
request. See details in the data Object
Description below.

Table 5-74 Data Object Description


Parameter Req. or Opt. Data Type Description
personId Req. String Added person IDs.
accessLevelFailed Opt. Object Details about access
level assigning failure.
pinCodeFailed Opt. CommonFailed Details about PIN code
failure.
photoFailed Opt. CommonFailed Details about face
picture updating
failure.

Table 5-75 accessLevelFailed Object Description


Parameter Req. or Opt. Data Type Description
errorCode Req. String Response status or
error code: 0-
succeeded, other
codes-failed (refer to
Status and Error Code
for details). Each code

186
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Parameter Req. or Opt. Data Type Description


can contain up to 32
characters.
message Opt. Integer Error message.
personAccessLevelFail Opt. AccessLevelFailed [] List of access levels
edList failed to be assigned. If
the value of errorCode
is not "0", this node
will return an empty
list. If the value of
errorCode is "0", the
list will be returned.

Response Example
{
"data":{
"personId":"379224379437087745"
},
"errorCode":"0"
}

5.8.13 POST /api/hccgw/person/v1/persons/list


Search for person list.

Request URL
https://[serverAddress]:[serverPort]/api/hccgw/person/v1/persons/list
Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header Token. The maximum length is
64.
pageIndex Req. Integer Body Page No., which is no less than
1.

187
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Parameter Req. or Opt. Data Type Parameter Description


Type
pageSize Req. Integer Body Number of records on each
page, which is between 1 and
100.
filter Opt. Object[] Body Fuzzy search by filter.

filter Object Description

Parameter Req. or Opt. Data Type Parameter Description


Type
name Opt. String Header Person's name.
email Opt. String Body Person's email.
phone Opt. String Body Person's phone No.

Request Example
{
"pageIndex":1,
"pageSize":10,
"filter":{
"name":"zmh",
"email":"zmh",
"phone":"112"
}
}

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).
Each code can contain up to 32
characters.
Message Opt. String Error message.
data Opt. Object[] Data returned by the successful
request. See details in the Data Object
Description below.

188
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Data Object Description

Parameter Req. or Opt. Data Type Description


personInfo Req. PersonInfo(1) Basic information of person.
cardList Opt. Card(2) Card information list.
fingerList Opt. Finger(2) Fingerprint information list.
pinCode Opt. Object[] PIN code.

Response Example
{
"errorCode": "0",
"data": {
}
}

5.8.14 POST /api/hccgw/person/v1/persons/qrcode


Get person's QR code.

Note
There are 2 types of QR codes: dynamic QR code and static QR code.
● The dynamic QR code will expire 60 seconds after the moment it is obtained, or when a new

dynamic QR code is obtained and used. It is recommended to call POST /api/hccgw/vims/v1/


tempauth/get every 60 seconds to get a new dynamic QR code and inform the end user of the
60-second validity.
● The static QR code is valid during the whole temporary pass period.

● Users can choose to configure the dynamic or static QR code on the HikCentral Connect or Hik

Connect for Teams platform, and the dynamic or static QR code will be returned accordingly.

Request URL
https://[serverAddress]:[serverPort]/api/hccgw/person/v1/persons/qrcode

189
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header Token. The maximum length is
64.
personId Req. String Body Person ID.
clientLocalTime Req. String Body Local time for the caller, in ISO
8601 standard time format:
yyyy-MM-ddTHH:mm:ss
+current zone, e.g., 2018-07-
26T15:00:00+08:00.

Request Example
{
" personId ": "xxx",
"clientLocalTime":"2022-10-20T12:21:30+08:00"
}

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).
Each code can contain up to 32
characters.
Message Opt. String Error message.
Data Opt. Object Data returned by the successful
request. See details in the Data Object
Description below.

Table 5-76 Data Object Description


Parameter Req. or Opt. Data Type Description
qrCodeData Req. String Data encoded by
Base64.

190
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Response Example
{
"errorCode": "0",
"data": {
" qrCodeData ":"xxxxxxxxxxxxx"
}
}

5.9 On-Board Monitoring Services

5.9.1 POST /api/hccgw/resource/v1/areas/vehicles/add


Add vehicle resources. The free package only supports adding 10 vehicles and 8 camera channels,
and some functions are limited. If you want to access more functions, please contact the service
provider.

Request URL
https://[serverAddress]:[serverPort]/api/hccgw/resource/v1/areas/vehicles/add
Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header Token. The maximum length is
64.
areaId Req. String Body Area ID.
licensePlateNo Req. String Body License plate No.
vehicleType Req. Integer Body Vehicle type: 0-others, 1-car, 2-
truck, 3-bus.
driverFirstNa Opt. String Body Driver's first name.
me
driverLastNam Opt. String Body Driver's last name.
e
driverPhoneN Opt. String Body Driver's phone No.
o
pictureKey Opt. String Body Key of the vehicle picture.

191
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Parameter Req. or Opt. Data Type Parameter Description


Type
deviceSerial Opt. String Body Linked device serial No.
extend Opt. String Body Annotations.

Request Example
{
"areaId": "2aeec98c14a4427f9ace6c48e91ab4cc",
"licensePlateNo": "ADDDEEE",
"driverFirstName": "san",
"driverLastName": "zhang",
"driverPhoneNo": "18611119999",
"pictureKey": "",
"deviceSerial": "J091122",
"vehicleType": 1,
"extend": "this is a demo car"
}

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).
Each code can contain up to 32
characters.
data Req. Object Data returned by the successful
request. See details in the data Object
Description below.

Table 5-77 data Object Description


Parameter Req. or Opt. Data Type Description
id Req. String Vehicle ID.

Response Example
{
"data": {
"id": "2aeec98c14a4427f9ace6c48e91ab4cc"
},

192
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

"errorCode": "0"
}

5.9.2 POST /api/hccgw/resource/v1/areas/vehicles/{id}/update


Edit vehicle information.

Request URL
https://[serverAddress]:[serverPort]/api/hccgw/resource/v1/areas/vehicles/{id}/update
Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
{id} Req. String PathParam Vehicle ID.
Token Req. String Header Token. The maximum length is
64.
licensePlateNo Req. String Body License plate No.
vehicleType Req. String Body Vehicle type: 0-others, 1-car, 2-
truck, 3-bus.
driverFirstNa Opt. String Body Driver's first name.
me
driverLastNam Opt. String Body Driver's last name.
e
driverPhoneN Opt. String Body Driver's phone No.
o
pictureKey Opt. String Body Key of the vehicle picture.
deviceSerial Opt. String Body Linked device serial No.
extend Opt. String Body Annotations.

Request Example
{
"licensePlateNo": "ADDDEEE",
"driverFirstName": "san",
"driverLastName": "zhang",
"driverPhoneNo": "18611119999",
"pictureKey": "",
"deviceSerial": "J091122",
"vehicleType": 1,

193
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

"extend": "this is a demo car"


}

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).
Each code can contain up to 32
characters.

Response Example
{
"errorCode": "0"
}

5.9.3 POST /api/hccgw/resource/v1/areas/vehicles/get


Search for vehicle resources.

Request URL
https://[serverAddress]:[serverPort]/api/hccgw/resource/v1/areas/vehicles/get
Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header Token. The maximum length is
64.
pageIndex Req. Integer Body The current page.
pageSize Req. Integer Body Number of records on each
page, which is between 1 and
500.
filter Opt. Object Body Search condition. See details in
the filter Object Description
below.

194
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Table 5-78 filter Object Description


Parameter Req. or Opt. Data Type Description
areaID Opt. String Area ID.
includeSubArea Opt. String Whether to include vehicles in the
lower-level areas: 0-no, 1-yes.
vehicleID Opt. String[] Vehicle ID.

Request Example
{
"pageIndex": 1,
"pageSize": 10,
"filter": {
"areaID": "-1",
"includeSubArea": "1",
"vehicleID": []
}
}

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).
Each code can contain up to 32
characters.
data Req. Object Data returned by the successful
request. See details in the data Object
Description below.

Table 5-79 data Object Description


Parameter Req. or Opt. Data Type Description
totalCount Req. Integer Total searched vehicles.
pageIndex Req. Integer Page index.
pageSize Req. Integer Number of records on each page,
which is between 1 and 500.
vehicle Req. VehicleInfo(1) [] Vehicle-related information.

195
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Response Example
{
"data": {
"totalCount": 85,
"pageIndex": 1,
"pageSize": 2,
"vehicle": [
{
"id": "ab51324d3c224335aa90b5036f1a2527",
"name": "test222",
"abilitySet": "",
"online": "1",
"area": {},
"device": {
"devInfo": {
"id": "2a19980bbd414a029f57b752ca675b95",
"category": "0",
"serialNo": "G02907733",
"streamSecretKey": ""
},
"channelInfo": {}
},
"vehicleInfo": {
"licensePlateNo": "test222",
"vehicleType": 0,
"driverFirstName": "first name",
"driverLastName": "last name",
"driverPhoneNo": "1232312",
"pictureUrl": "http://10.19.215.172:31677/hcc-dev-2/msvehicle/images/
f718f3013b5a4fb38e573043afe28683/2022-11-24/39c764aa5acd49a385222f479b34ddc6.jpg?X-Amz-
Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=minio123%2F20221128%2Fap-
southeast-1%2Fs3%2Faws4_request&X-Amz-Date=20221128T034040Z&X-Amz-Expires=86400&X-Amz-
SignedHeaders=host&X-Amz-Signature=330cc2959ec24a347beed7df4f42fbb49854f534d2646e0c30cdfb7422aa3377",
"extend": ""
}
},
{
"id": "2ab33fd299124cf8911cc0d5be679e59",
"name": "yyyy",
"abilitySet": "",
"online": "0",
"area": {},
"device": {
"devInfo": {
"id": "",
"category": "0",
"serialNo": "",
"streamSecretKey": ""
},
"channelInfo": {}

196
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

},
"vehicleInfo": {
"licensePlateNo": "yyyy",
"vehicleType": 0,
"driverFirstName": "",
"driverLastName": "",
"driverPhoneNo": "",
"pictureUrl": "",
"extend": ""
}
}
]

5.9.4 POST /api/hccgw/resource/v1/picture/uploadparam/get


Get the picture upload parameters.

Request URL
https://[serverAddress]:[serverPort]/api/hccgw/resource/v1/picture/uploadparam/get
Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header Token. The maximum length is
64.
format Req. String Body Picture format. Currently only
JPG format is supported.

Request Example
{
"format": "jpg"
}

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).

197
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Parameter Req. or Opt. Data Type Description


Each code can contain up to 32
characters.
data Req. Object Data returned by the successful
request. See details in the data Object
Description below.

Table 5-80 data Object Description


Parameter Req. or Opt. Data Type Description
key Req. String Key of the vehicle picture.
url Req. String Vehicle picture URL, used for picture
upload (valid for 15 minutes).

Response Example
{
"data": {
"key": "msvehicle/images/f718f3013b5a4fb38e573043afe28683/2022-11-28/
e39da74daa66463f8227960707fca60c.jpg",
"url": "http://10.19.215.172:31677/hcc-dev-2/msvehicle/images/
f718f3013b5a4fb38e573043afe28683/2022-11-28/e39da74daa66463f8227960707fca60c.jpg?X-Amz-
Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=minio123%2F20221128%2Fap-
southeast-1%2Fs3%2Faws4_request&X-Amz-Date=20221128T025154Z&X-Amz-Expires=86400&X-Amz-
SignedHeaders=host&X-Amz-Signature=b9d0e9b4b0aa27e3763582f5bb90956146645deacaa9ce06bee11caac5edbbf2"
},
"errorCode": "0"
}

5.9.5 POST /api/hccgw/resource/v1/accstatus/search


Get the vehicle ACC status. It is recommended to call this API no more frequent than every other
minute.

Request URL
https://[serverAddress]:[serverPort]/api/hccgw/resource/v1/accstatus/search

198
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header Token. The maximum length is
64.
deviceSerials Req./Opt. String Body Set of on-board device serial
No.s connected by comma.
Either deviceSerials or
vehicleIds is required. If both
are configured, vehicleIds shall
prevail.
vehicleIds Req./Opt. String Body Set of vehicle IDs connected by
comma.
Either deviceSerials or
vehicleIds is required. If both
are configured, vehicleIds shall
prevail.

Request Example
{

"vehicleIds":"0005c11ef9a64f6d9932e881bdea93d4, 0005c11ef9a64f6d9932e881bdea93d5,
0005c11ef9a64f6d9932e881bdea93d6"
}
Or
{
"deviceSerials":"CA5565496,K70728087,CA7911952,CA2203964"
}

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).

199
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Parameter Req. or Opt. Data Type Description


Each code can contain up to 32
characters.
data Req. Object Data returned by the successful
request. See details in the data Object
Description below.

Table 5-81 data Object Description


Parameter Req. or Opt. Data Type Description
accStatusInfos Req. [] Returned array. See details in the
following accStatusInfos object.

Table 5-82 accStatusInfos Object Description


Parameter Req. or Opt. Data Type Description
idOrDeviceSerial Req. String Vehicle ID or serial No., depending on
the request resource type.
accStatus Req. Integer ACC status: -1 (unknown: no
information uploaded by device), 0
(ACC off), 1 (ACC on).

Response Example
{
"data": {
"accStatusInfos": [
{
"idOrDeviceSerial": "0005c11ef9a64f6d9932e881bdea93d4",
"accStatus": 0
},
{
"idOrDeviceSerial": "0005c11ef9a64f6d9932e881bdea93d5",
"accStatus": 1
},
{
"idOrDeviceSerial": "0005c11ef9a64f6d9932e881bdea93d6",
"accStatus": -1
}
]
},
"errorCode": "0"
}

200
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

5.10 Attendance Services

5.10.1 POST /api/hccgw/attendance/v1/report/totaltimecard/list


Search for Total Time Card.

Request URL
https://[serverAddress]:[serverPort]/api/hccgw/attendance/v1/report/totaltimecard/list
Request Parameters

Parameter Req. or Opt. Data Type Parameter Description


Type
Token Req. String Header Token. The maximum length is
64.
pageIndex Opt. Integer Body Token. The maximum length is
64.
pageSize Opt. Integer Body Number of records on each
page, which is between 1 and
200. The default value is 20.
beginTime Req. String Body Start time, in ISO time format,
e.g., 2023-10-
21T11:08:23+08:00.
endTime Req. String Body End time, in ISO time format,
e.g., 2023-10-
21T11:08:23+08:00.
personName Opt. String Body Person name(s), matched by
fuzzy search. By default all will
be included.
personCode Opt. String Body Employee No.(s), matched by
fuzzy search. By default all will
be included.
personGroupI Opt. String[] Body Person group ID list. By default
ds it is the department which the
account has permission for.
dateFormat Opt. String Body Date format, by default
represented by "yyyy/MM/dd".

201
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Parameter Req. or Opt. Data Type Parameter Description


Type
See details in Date Format
Type .
timeFormat Opt. String Body Date format, by default
represented by "HH:mm". See
details in Time Format Type .
durationForm Opt. String Body Date format, by default
at represented by "HH:MM". See
details in Time Duration
Format Type .

Request Example
{
"pageIndex": 1,
"pageSize": 20,
"beginTime": "2024-01-01T00:00:00+08:00",
"endTime": "2024-01-31T23:59:59+08:00",
"personName": "abc",
"personCode": "123",
"personGroupIds": [],
"dateFormat": "yyyy/MM/dd",
"timeFormat": "HH:mm",
"durationFormat": "HH:MM"
}

Response Parameters

Parameter Req. or Opt. Data Type Description


errorCode Req. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).
Each code can contain up to 32
characters.
message Opt. String Error message.
data Req. Object Data returned by the successful
request. See details in the data Object
Description below.

202
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Table 5-83 data Object Description


Parameter Name Req. or Opt. Data Type Description
reportDataList Req. Report data list. For circumstances
where no data exists, an empty list
will be returned.
pageIndex Req. Integer Page No.
pageSize Req. Integer Number of records per page.
moreData Req. Integer Whether it is more than one page: 0-
no, 1-yes.

Response Example
{
"errorCode": "0",
"data": {
"pageIndex": 1,
"pageSize": 1,
"moreData": 0,
"reportDataList": [
{
"firstName":"abc",
"lastName":"def",
"fullName":"abc def",
"personCode":"123",
"fullPath":"xxx",
"date":"2024/01/01",
"weekday":1,
"timetableName":"Time Table Name",
"checkInDate":"2024/01/01",
"checkInTime":"09:00",
"checkOutDate":"2024/01/01",
"checkOutTime":"18:00",
"clockInDate":"2024/01/01",
"clockInTime":"09:00",
"clockInSource":2,
"clockInDevice":"",
"clockInArea":"",
"clockOutDate":"2024/01/01",
"clockOutTime":"18:00",
"clockOutSource":2,
"clockOutDevice":"",
"clockOutArea":"",
"attendanceStatus":1,
"workDuration":"00:00",
"absenceDuration":"00:00",
"lateDuration":"00:00",

203
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

"earlyDuration":"00:00",
"breakDuration":"00:00",
"leaveDuration":"00:00",
"overtimeDuration":"00:00",
"workdayOvertimeDuration":"00:00",
"weekendOvertimeDuration":"00:00"
}
]
}
}

204
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Appendix A. Appendixes

A.1 Data Dictionary

A.1.1 Alarm Category

Enumeration Description
alarmCategoryAlarmDetection Alarm Main Category: Alarm Detection
alarmCategoryMaintenance Alarm Main Category: Maintenance
alarmCategoryVideo Alarm Main Category: Video Security
alarmCategoryDriving Alarm Main Category: On-Board Monitoring
alarmSubCategoryAlarmDevice Alarm Sub Category: Alarm Device
alarmSubCategoryVehicle Alarm Sub Category: Vehicle Linked to On-Board Device
alarmSubCategoryAlarmInput Alarm Sub Category: Alarm Input
alarmSubCategoryBoxChannel Alarm Sub Category: Channel Linked with Hik-ProConnect Box
alarmSubCategoryBoxDevice Alarm Sub Category: Hik-ProConnect Box
alarmSubCategoryCamera Alarm Sub Category: Camera
alarmSubCategoryEncodingDevice Alarm Sub Category: Encoding Device
alarmSubCategoryMobileDevice Alarm Sub Category: On-Board Device

A.1.2 Resource Type

Enumeration Description
alarmInput Alarm Input
alarmOutput Alarm Output
camera Camera
vehicle Vehicle Linked to On-Board Device
door Door

205
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

A.1.3 Device Category

Enumeration Description
alarmDevice Alarm Device
encodingDevice Encoding device
mobileDevice On-Board Device
accessControllerDevice Access Control Device
videoIntercomDevice Video Intercom Device

A.1.4 Alarm Type

Video Security

Event Code Description


10001 Video Tampering
10002 Motion Detection
10016 Face Capture
10032 Fire and Smoke Detection
10033 Temperature Alarm
10034 Temperature Difference Alarm
10035 Multi-​Target-​Type Detection
10036 Temperature Pre-Alarm
10100 Line Crossing
10101 Region Entrance
10102 Region Exiting
10103 Intrusion
10106 Fast Moving
10500 License Plate BlockList
10501 License Plate Allowlist
10610 Queuing Time Alarm

206
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Event Code Description


10611 Number of Queuing People Detection
10621 Abnormal Number of People
10630 Police Absence
10635 Not Wearing Mask
10636 Distance Measurement Alarm
50000 Triggered by Alarm Input
100105 People Density
100657 Leaving Queue Detection
100375 Person and Vehicle Match
100376 Person and Vehicle Mismatch
50101 Device Offline
50120 Device Reconnected
50102 Encoding Device HDD Full
50110 Invalid Access of Encoding Device
50103 Encoding Device HDD R/W Error

Alarm Detection

Event Code Description


20008 Restore Alarm Input
70001 Disarm
70002 Arming
70003 Instant Arming
70004 Stay Arming
70006 Alarm Clearing
100302 Bypass
100303 Bypass Restored

207
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Maintenance

Event Code Description


10000 Video Loss
10056 Camera Online
10057 Camera Offline
11016 On-Board Device Online
11017 On-Board Device Offline
20002 HDD Bad Sector
20003 HDD High Temperature
20005 HDD Impact Detection Event
20006 HDD Severe Failure
50002 Camera Recording Exception
70007 Late to Disarm
70113 Duress Alarm Report
70118 Keypad Locked
70119 Keypad Unlocked
70200 Device Tampering Alarm
70203 Mains Power Lost
70204 Low Battery Voltage
70205 Host Machine Reset
70213 Auto Arming Failed
70221 Expander Disconnected
70223 Cellular Network Disconnected
70224 Wired Network Disconnected
70250 Wireless Detector Disconnected
70253 Wireless Detector Low Battery
70255 Network Camera Disconnected
70302 IP Conflicted
70307 Wi-Fi Disconnected

208
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Event Code Description


70308 RF Exception
70309 Cellular Network Data Exceeded
70310 Wireless Sounder Low Battery
70311 Battery Fault
70402 Wireless Repeater Disconnected
70451 Wireless Peripheral Undervoltage
70452 Wireless Peripheral Disconnected
70453 Wireless Peripheral Deleted
70454 Wireless Peripheral Added
70502 Wireless Sounder Disconnected

Maintenance (On-Board Device)

Event Code Description


50101 Device Offline
50109 HDD Full
50112 Read/Write Hard Disk Error
50104 Standard Mismatched
50111 Illegal Login
50120 Device Reconnected
300001 Normal Signal
300002 Signal Exception
300003 GPS Module Error

On-Board Monitoring

Event Code Description


11009 Speeding
11010 Rollover
11011 Collision

209
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Event Code Description


11012 Sharp Turn
11013 Sudden Brake
11014 Sudden Acceleration
100351 Fence for Entry Detection
100352 Deviation
100359 Smoking
100360 Using Mobile Phone
100361 Fatigue Driving
100362 Distraction
100363 Seatbelt Unbuckled
100364 Forward Collision Warning
100365 Headway Monitoring Warning
100366 Lane Deviation Warning
100367 Pedestrian Collision Warning
100368 Speed Limit Warning
100369 Blind Spot Warning
100370 Emergency Alarm
100371 Alarm Input
100372 Yawning
100373 Wearing IR Interrupted Sunglasses
100374 Absence
100376 Person and Vehicle Mismatch
100377 Driving License Expired
100396 Video Tampering
100398 Entering Route
330407 ACC ON
330408 ACC OFF
330510 Front Passenger Detection

210
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Card Swiping

Event Code Description


80025 Access Granted by Card and Fingerprint
80021 Access Granted by Card, Fingerprint, and PIN
80001 Access Granted by Card
80002 Access Granted by Card and PIN
80032 Access Granted by Fingerprint
80034 Access Granted by Fingerprint and PIN
80036 Duress Alarm
80072 Access Granted by Face and Fingerprint
80075 Access Granted by Face and PIN
80078 Access Granted by Face and Card
80081 Access Granted by Face, PIN, and Fingerprint
80084 Access Granted by Face, Card, and Fingerprint
80093 Access Granted by Face
80147 Access Granted via Combined Authentication
Modes
100344 Password Authenticated
100620 Access Granted by Bluetooth
100571 Access Granted via QR Code
80273 Access Granted via Keyfob
80008 Verifying Card Encryption Information Failed
80009 Max. Card Access Failed Attempts
80016 Card No. Expired
80017 Access Timed Out by Card and PIN
80018 Access Denied (Door Remained Locked or
Inactive)
80020 Access Denied by Card and PIN
80022 Access Timed Out by Card, Fingerprint, and PIN

211
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Event Code Description


80023 Access Denied by Card, Fingerprint, and PIN
80024 Access Denied by Card and Fingerprint
80026 Access Timed Out by Card and Fingerprint
80027 No Access Level Assigned
80028 Card No. Does Not Exist
80029 Invalid Time Period
80030 Fingerprint Does Not Exist
80031 Access Denied by Fingerprint
80033 Access Denied by Fingerprint and PIN
80035 Access Timed Out by Fingerprint and PIN
80073 Access Denied by Face and Fingerprint
80074 Access Timed Out by Face and Fingerprint
80076 Access Denied by Face and PIN
80077 Access Timed Out by Face and PIN
80079 Access Denied by Face and Card
80080 Access Timed Out by Face and Card
80082 Access Denied by Face, PIN, and Fingerprint
80083 Access Timed Out by Face, PIN, and Fingerprint
80085 Access Denied by Face, Card, and Fingerprint
80086 Access Timed Out by Face, Card, and Fingerprint
80094 Access Denied by Face
80099 Live Facial Detection Failed
80148 Combined Authentication Timed Out
80152 Access Denied by Invalid M1 Card
80153 Verifying CPU Card Encryption Failed
80154 Access Denied (NFC Card Reading Disabled)
80155 EM Card Reading Not Enabled
80156 M1 Card Reading Not Enabled

212
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Event Code Description


80157 CPU Card Reading Disabled
80173 Authentication Mode Mismatch
80263 Password Mismatches
80264 Employee ID Does Not Exist
100345 Verifying Desfire Card Encryption Failed
100346 Absence
100348 Authentication Failed Due to Abnormal
Features (e.g., Not Wearing Mask, Abnormal
Skin-Surface Temperature)
100621 Access Denied by Bluetooth
100572 Access Denied by QR Code
100574 Verifying QR Code Secret Key Failed
80274 Access Denied via Keyfob

A.1.5 Alarm Type (V2)

Note
The Alarm Type (V2) list contains the following Video Intercom (V2) events, GPS (V2) events, and all
events from Alarm Type . See details of example event messages in Event Message .

Video Intercom (V2)

Enumeration Value Description


140001 Messages about video intercom events.

GPS (V2)

Enumeration Value Description


330001 Messages about GPS events.

213
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Event Message

Video Intercom Event Message

Enumeration Value Description


140001 Messages about video intercom events.

eventData Schemas : [ DeviceTalkInfo ]


{
"eventId": "cf826d6fc0b6438785eecf3f97659b1a",
"eventType": "140001",
"basicInfo": {
"systemId": "6f26f64efb6d4e49be2380ad9c634fc5",
"occurrenceTime": "2024-10-31T02:30:41Z",
"resourceInfo": {
"deviceInfo": {
"id": "d00504fdfd6b463c85e9337b7ecd71d4",
"name": "AB7547307",
"category": "2008",
"deviceSerial": "AB7547307"
}
}
},
"eventData": {
"deviceTalkInfo": {
"roomNumber": 1,
"deviceSerial": "AB7547307",
"deviceName": "AB7547307",
"deviceId": "d00504fdfd6b463c85e9337b7ecd71d4",
"msgType": 3,
"doorInfos": [
{
"doorId": "afcf25c8520640d5aa8f56f041cb28f8",
"doorName": "AB7547307-Door 2"
}
],
"deviceTimeStamp": 1730341841000
}
}
}

Card Swiping Event Message


All card swiping events share the same event message structure. The following is an example.

214
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Enumeration Value Description


80001 Access Granted by Card

eventData Schemas: [ AlarmFileInfo ]


{
"eventId": "84fcc2865ba14933afbb16bf3db679bc",
"eventType": "80001",
"basicInfo": {
"systemId": "e9e79fa6f59e4647b412928f6c47ef67",
"occurrenceTime": "2024-10-28T09:09:39Z",
"resourceInfo": {
"sourceType": "door",
"sourceName": "FH1313789-Door 1",
"areaName": "FH1313789",
"deviceInfo": {
"id": "0544a1f4fafa437b9e451348be93909d",
"name": "FH1313789",
"deviceSerial":"FH1313789"
"category":"2008"
},
"sourceID": "6fbf1292ca064eeea7ea531b75dea47d",
"areaID": "f13dcd9d143d41c08a5d3aa3d4108248"
}
},
"eventData": {
"fileInfo": {
"fileContent": "1",
"file": [
{
"type": "1",
"url": "https://isgpopen.ezvizlife.com/api/lapp/mq/downloadurl?
appKey=4e502c094070464c94945ab4f2ba7f0c&fileKey=ISAPI_FILES/FH1313789_1/20241028084347349-
FH1313789-1-10000-3$encrypt=2,2024-10-28T09:09:39,2f6f72f39ec60162d4680608fd31b2e6",
"saveState": "0",
"generationMode": "1",
"encrypted": "0",
"extendInfo": {
"sourceID": "6fbf1292ca064eeea7ea531b75dea47d",
"sourceName": "FH1313789-Door 1",
"sourceType": "door",
"captureIndex": "1"
}
}
]
}
}
}

215
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Video Security / Alarm Detection / Maintenance / Maintenance (On-Board Device)


Event Message
All Video Security / Alarm Detection / Maintenance / Maintenance (On-Board Device) events
share the same event message structure. The following is an example.

Enumeration Value Description


10002 Motion Detection

eventData Schemas: [ AlarmFileInfo ]


{
"eventId": "79824bdd8df848909badb1348e1fa39e",
"eventType": "10002",
"basicInfo": {
"systemId": "7cf0277d267f4acebea601334c13eff7",
"occurrenceTime": "2024-10-24T02:22:16Z",
"resourceInfo": {
"sourceType": "camera",
"sourceName": "FG0587279",
"areaName": "HccbiStore",
"deviceInfo": {
"id": "ce5ea4fdb727448d90653d73be1195ab",
"name": "FG0587279",
"category": "2001",
"deviceSerial": "FG0587279"
},
"sourceID": "ddaeec5d37f74144be2fabc250d45045",
"areaID": "b29b26c586d54707844a6a9fda7a15ee"
}
},
"eventData": {
"fileInfo": {
"fileContent": "1",
"file": [
{
"type": "1",
"url": "https://isgp.ezvizlife.com/v3/alarms/pic/get?fileId=20241024022227-
FG0587279-1-10002-2-1&deviceSerialNo=FG0587279&cn=1&isEncrypted=1&isCloudStored=0&ct=32&lc=7&bn=32_ali
alarm-sgp-2&isDevVideo=0",
"saveState": "0",
"generationMode": "1",
"encrypted": "1",
"extendInfo": {
"sourceID": "ddaeec5d37f74144be2fabc250d45045",
"sourceName": "FG0587279",
"sourceType": "camera",
"captureIndex": "1"
}

216
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

}
]
}
}
}

On-Board Monitoring Event Message


All on-board monitoring alarm types and GPS alarm type share the same event message structure.
The following is an example.

Enumeration Value Description


11012 Sharp Turn

eventData Schemas: [ AlarmFileInfo , VehicleRelatedInfo ]


{
"data": {
"batchId":
"552ae2df624d5def3cace3d1f970dd70cff50418be80a6804205f50847aebaf2946884da1c096dc96dc5cedc4612a48c",
"remainingNumber": 0,
"event": [
{
"uuid": "369f4afc8f594bd296a926c174f4f96a",
"basicInfo": {
"occurrenceTime": "2024-10-17T07:15:51Z",
"systemId": "7cf0277d267f4acebea601334c13eff7",
"eventType": 11012,
"resource": {
"sourceType": "vehicle",
"sourceId": "ab37eda213714520ae1da6b3327939c1",
"sourceName": "o7q51bIE",
"areaName": "CB4152502",
"areaID": "afe7dc6ee8c944de83e570a60dd9a5db",
"deviceInfo": {
"id": "70f0d54bb4f3498b9e46243d8c4ae1db",
"name": "CB4152502",
"deviceSerial": "CB4152502",
"category": ""
}
},
},
"data": {
"fileInfo": {
"file": []
},
"vehicleRelatedInfo": {
"gpsInfo": {
"ew": "E",

217
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

"lng": "0.000000",
"ns": "N",
"lat": "0.000000",
"direction": 0,
"height": 0,
"speed": 0
},
"vehicleInfo": {
"licensePlate": "L26577577-aemd-veh5",
"id": "00cb99c553634775a2ccb297b9dd6daa",
"speedLimit": 9600000,
"driverInfos": [
{
"driverName": "driver1",
"driverPhone": ""
}
]
}
}
}
}
]
},
"errorCode": "0"
}

A.1.6 Alarm Source

Enumeration Description
alarmInput Alarm Input
camera Camera
encodingDevice Encoding Device
alarmDevice Alarm Device
user User
subSystem Partition (Area)
vehicle Vehicle Linked to On-Board Device
mobileDevice On-Board Device

A.1.7 Message Type

218
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Video Intercom

Enumeration Value Description


Msg140001 Messages about video intercom events.

On-Board Monitoring

Enumeration Value Description


Msg330001 GPS Data Report
Msg330101 Alarm Triggered by Panic Button
Msg330102 Alarm Input
Msg330201 Forward Collision Warning
Msg330202 Headway Monitoring Warning
Msg330203 Lane Deviation Warning
Msg330204 Pedestrian Collision Warning
Msg330205 Speed Limit Warning
Msg330301 Blind Spot Warning
Msg330401 Sharp Turn
Msg330402 Sudden Brake
Msg330403 Sudden Acceleration
Msg330404 Rollover
Msg330405 Speeding
Msg330406 Collision
Msg330407 ACC ON
Msg330408 ACC OFF
Msg330501 Smoking
Msg330502 Using Mobile Phone
Msg330503 Fatigue Driving
Msg330504 Distraction
Msg330505 Seatbelt Unbuckled

219
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Enumeration Value Description


Msg330506 Video Tampering
Msg330507 Yawning
Msg330508 Wearing IR Interrupted Sunglasses
Msg330509 Absence
Msg330510 Front Passenger Detection
Msg335000 Person and Vehicle Match
Msg335001 Person and Vehicle Mismatch

Authentication Event

Enumeration Value Description


Msg 110001 Access Granted by Card and Fingerprint
Msg 110002 Access Granted by Card, Fingerprint, and PIN
Msg 110003 Access Granted by Card
Msg 110004 Access Granted by Card and PIN
Msg 110005 Access Granted by Fingerprint
Msg 110006 Access Granted by Fingerprint and PIN
Msg 110007 Duress Alarm
Msg 110008 Access Granted by Face and Fingerprint
Msg 110009 Access Granted by Face and PIN
Msg 110010 Access Granted by Face and Card
Msg 110011 Access Granted by Face, PIN, and Fingerprint
Msg 110012 Access Granted by Face, Card, and Fingerprint
Msg 110013 Access Granted by Face
Msg110018 Access Granted via Combined Authentication Modes
Msg110019 Skin-Surface Temperature Measured
Msg110020 Password Authenticated
Msg110022 Access Granted by Bluetooth
Msg110023 Access Granted via QR Code

220
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Enumeration Value Description


Msg110024 Access Granted via Keyfob
Msg110501 Verifying Card Encryption Failed
Msg110502 Max. Card Access Failed Attempts
Msg110505 Card No. Expired
Msg110506 Access Timed Out by Card and PIN
Msg110507 Access Denied (Door Remained Locked or Inactive)
Msg110509 Access Denied by Card and PIN
Msg110510 Access Timed Out by Card, Fingerprint, and PIN
Msg110511 Access Denied by Card, Fingerprint, and PIN
Msg110512 Access Denied by Card and Fingerprint
Msg110513 Access Timed Out by Card and Fingerprint
Msg110514 No Access Level Assigned
Msg110515 Card No. Does Not Exist
Msg110516 Invalid Time Period
Msg110517 Fingerprint Does Not Exist
Msg110518 Access Denied by Fingerprint
Msg110519 Access Denied by Fingerprint and PIN
Msg110520 Access Timed Out by Fingerprint and PIN
Msg110521 Access Denied by Face and Fingerprint
Msg110522 Access Timed Out by Face and Fingerprint
Msg110523 Access Denied by Face and PIN
Msg110524 Access Timed Out by Face and PIN
Msg110525 Access Denied by Face and Card
Msg110526 Access Timed Out by Face and Card
Msg110527 Access Denied by Face, PIN, and Fingerprint
Msg110528 Access Timed Out by Face, PIN, and Fingerprint
Msg110529 Access Denied by Face, Card, and Fingerprint
Msg110530 Access Timed Out by Face, Card, and Fingerprint

221
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Enumeration Value Description


Msg110531 Access Denied by Face
Msg110533 Live Facial Detection Failed
Msg110545 Combined Authentication Timed Out
Msg110546 Access Denied by Invalid M1 Card
Msg110547 Verifying CPU Card Encryption Failed
Msg110548 Access Denied (NFC Card Reading Disabled)
Msg110549 EM Card Reading Not Enabled
Msg110550 M1 Card Reading Not Enabled
Msg110551 CPU Card Reading Disabled
Msg110552 Authentication Mode Mismatch
Msg110554 Max. Card and Password Authentication Times
Msg110555 Password Mismatches
Msg110556 Employee ID Does Not Exist
Msg110557 Access Denied: Scheduled Sleep Mode
Msg110559 Verifying Desfire Card Encryption Failed
Msg110560 Absence
Msg110561 Authentication Failed Due to Abnormal Features (e.g., Not
Wearing Mask, Abnormal Skin-Surface Temperature)
Msg110564 Access Denied by Bluetooth
Msg110565 Access Denied by QR Code
Msg110566 Verifying QR Code Secret Key Failed
Msg110567 Access Denied via Keyfob

A.1.8 Capability Set

Value Description
2000 Video Loss
2001 Video Tampering Detection

222
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Value Description
2002 Motion Detection
2003 PIR Alarm
2004 Face Capture
2005 Area Crossing
2006 Region Entrance
2007 Region Exiting
2015 Scene Change Detection
2016 Focal Length Detection
2021 Line Crossing Detection
2022 Intrusion Detection
2023 Region Entrance Detection
2024 Region Exiting Detection
2027 Fast Moving Detection
2029 Unattended Baggage Detection
2030 Object Removal Detection

A.2 Time/Date Format

A.2.1 ISO 8601 Time Format Instruction


ISO 8601, Data Elements and Interchange Formats–Information Interchange–Representation of
Dates and Times, is an international standard covering the exchange of date and time-related data
format issued by ISO. An uppercase T should be added before an exact time to represent the
combination of date and time. Beijing time 5:30:08 PM May 3rd, 2004 can be written as
2004-05-03T17:30:08+08:00 or 20040503T173008+08.

A.2.2 Date Format Type

Format Description
yyyy/MM/dd yyyy, the year of 4 digits containing era.

223
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Format Description
MM, the month of 2 digits. The number zero is
added to months of only one digit.
dd, the date of a month. The number zero is
added to dates of only one digit.
E.g., 2024/01/31
yyyy-MM-dd E.g., 2024-01-31
yyyy.MM.dd E.g., 2024.01.31
dd/MM/yyyy E.g., 31/01/2024
dd-MM-yyyy E.g., 31-01-2024
MM-dd-yyyy E.g., 01-31-2024
yy-MM-dd yy, the year of 2 digits without era. The number
zero is added to years of only one digit.
E.g., 24-01-31
yy/MM/dd E.g., 24/01/31
dd/MM/yy E.g., 24.01.31
yy.MM.dd E.g., 24.01.31
yyyyddMM E.g., 20243101
yyyyMMdd E.g., 20240131
MMddyyyy E.g., 01312024
ddMMyyyy E.g., 31012024
yyddMM E.g., 243101
yyMMdd E.g., 240131
MMddyy E.g., 013124
ddMMyy E.g., 310124

224
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

A.2.3 Time Format Type

Format Description
HH:mm HH, the hour in 24-hour format. The number
zero is added to hours and minutes of only one
digit.
E.g., 13:30, 01:30
h:mm h, the hour in 12-hour format. No zero is added
to hours of only one digit.
E.g., 1:30
hh:mm tt tt, the indicator of AM/PM.
hh, the hour in 12-hour format. The number
zero is added to hours of only one digit.
E.g., 01:30 AM
h:mm tt E.g., 1:30 AM
HH:mm:ss ss, the second. The number zero is added to
seconds of only one digit.
E.g., 01:30:05
h:mm:ss E.g., 1:30:05
hh:mm:ss tt E.g., 01:30:05 AM
h:mm:ss tt E.g., 1:30:05 AM
HHmm E.g., 1330
Hmm H, the hour in 24-hour format. No zero is added
to hours of only one digit.
E.g., 130
HHmmss E.g., 013005
hmmss E.g., 13005

A.2.4 Time Duration Format Type

Format Description
HH:MM Duration in hour and minute.

225
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Format Description
E.g., 01:30
MM Duration in minute.
E.g., 120

A.3 Object Description

A.3.1 AccessLevel
The table here shows the access level information.

Parameter Name Req. or Opt. Data Type Description


accessLevelId Req. String Access level ID. The maximum length is
64.
accessLevelName Opt. String Access level name. The maximum length
is 64.

A.3.2 AccessLevelFailed
The table here shows the failed access level information.

Parameter Name Req. or Opt. Data Type Description


personId Opt. String Person ID.
personName Opt. String Person name.
accessLevelId Opt. Integer Access level ID.
accessLevelName Opt. String Access level name.
errorCode Opt. String Error code.

A.3.3 AccessLevelInfo
The table here shows the access level information.

226
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Parameter Name Req. or Opt. Data Type Description


id Opt. String Unique ID.
name Opt. String Name.
remark Opt. String Remark.
usageType Opt. Integer Usage type: 0 (user), 1 (system). The
default value is 0.
areaInfo Opt. AreaInfo Area information.
timeSchedule Opt. IdNameInfo Schedule template information.
associateResList Opt. AssociateResInf Associated resource information.
o []

A.3.4 AccessLevelResponse
The table here shows the returned access level list information.

Parameter Name Req. or Opt. Data Type Description


pageIndex Opt. Integer The current page.
pageSize Opt. Integer Number of records on each page.
totalNum Opt. Integer The total number.
accessLevelList Opt. AccessLevelInfo Access level information.
[]

A.3.5 AccessLevelSearchCriteria
The table here shows the access level search criteria.

Parameter Name Req. or Opt. Data Type Description


accessLevelNam Opt. String Access level name.
e
associateResInfo Opt. AssociateResId [] Door ID list.
List
timeScheduleIdL Opt. String[] Schedule template ID list.
ist

227
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Parameter Name Req. or Opt. Data Type Description


aresIdList Opt. String[] Area ID list.
depthTraversal Opt. Integer Whether to search by area depth: 1
(yes), 0 (no). The default value is 0.
aresSubNode Opt. Integer Whether to return sub-area tree: 1
(yes), 0 (no). The default value is 0.

A.3.6 AccessLevelSearchRequest

Parameter Req. or Opt. Data Type Description


pageIndex Opt. Integer The current page. The default value is
0.
pageSize Opt. Integer Number of records on each page.
searchCriteria Opt. AccessLevelSearc Searching conditions.
hCriteria

A.3.7 AcsSnapPicInfo

Parameter Name Req. or Opt. Data Type Description


snapPicUrl Opt. String Picture URL, URL validity period 24
hours.
snapPicType Opt. Integer Picture type, 0-visible light picture /
normal picture, 1-thermal imaging
picture.

A.3.8 AddDeviceResponse
The table here shows the returned information of adding a device.

228
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Parameter Name Req. or Opt. Data Type Description


taskId Opt. String Task ID, which consists
of up to 256
characters.
failed Req. Integer Number of failed
adding tasks, which
consists of up to 16
characters.
succeeded Req. Integer Number of successful
adding tasks, which
consists of up to 16
characters.
total Req. Integer Total number of adding
tasks, which consists of
up to 16 characters.
deviceList Opt. DeviceList [] Returned list of
successfully added
devices.
relatedVehicleInfo Opt. VehicleInfo(1) Returned vehicle
information.

A.3.9 AlarmCategory
The table here shows the alarm category information.

Parameter Name Req. or Data Type Description


Opt.
mainCategory Opt. String Alarm main category, which consists of up to 64
characters. See details in Alarm Category .
subCategory Opt. String Alarm sub category, which consists of up to 64
characters. See details in Alarm Category .

A.3.10 AlarmDeviceInfo
The table here shows the alarm device information.

229
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Parameter Req. or Opt. Data Type Description


Name
devID Opt. Integer Device ID.
devName Opt. String Device name.
devCategory Opt. String Device type.
deviceSerial Opt. String Device serial No.

A.3.11 AlarmEventSource
The table here shows the information about alarm event source.

Parameter Name Data Type Description


eventType Integer Event type.
sourceID String Source ID.
sourceName String Source name.
sourceType String Source type.
areaID String Area ID.
areaName String Area name.
deviceInfo AlarmDeviceInfo Alarm device details.

A.3.12 AlarmFile
The table here shows the details about an alarm file .

Parameter Req. or Opt. Data Type Description


Name
type Opt. String File format: 1-picture, 2-video.
URL Opt. String URL of an alarm file (valid for
15 minutes).
saveState Opt. String Saving status of an alarm file:
0-saving succeeded, 1-to be
uploaded, 2-saving in process,

230
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Parameter Req. or Opt. Data Type Description


Name
3-saving failed, 4-capturing in
process, 5-capturing failed.
generationMo Opt. String Generation mode of an alarm
de file: "1" (upload alarms), "2"
(capture picture by event
linkage).
encrypted Opt. String Encryption status of an alarm
file: "0" (unencrypted), "1"
(encrypted).
extendInfo Opt. AlarmFileExte Extended information of an
ndInfo alarm file.

A.3.13 AlarmFileExtendInfo
The table here shows the extended information of an alarm file.

Parameter Name Req. or Opt. Data Type Description


sourceID Opt. String Source ID of an alarm file.
sourceName Opt. String Source name of an alarm file.
sourceType Opt. String Source type of an alarm file.
captureIndex Opt. String Captured picture type: "1" (take pictures
before an event occurs), "2" (take pictures
when an event occurs), "3" (take pictures
after an event occurs).

A.3.14 AlarmFileInfo
The table here shows the alarm file information.

231
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Parameter Req. or Opt. Data Type Description


Name
fileContent Opt. String File content: "1"-picture
included, "2"-video included,
"1,2"-both included.
file Opt. AlarmFile [] Alarm file.

A.3.15 AlarmInfo
The table here shows the alarm information.

Parameter Name Req. or Opt. Data Type Description


id Opt. String Camera ID.
name Opt. String Camera name.
online Opt. String Online status.
area Opt. Area Area information.
device Opt. DeviceByResource Device information.

A.3.16 AlarmInputChannel
The table here shows the information of an alarm input channel.

Parameter Name Req. or Opt. Data Type Description


id Opt. String ID.
name Opt. String Name.
no Opt. String Channel No.
online Opt. String Online status.
area Opt. Object Area information. See details in Area .

A.3.17 AlarmInputInfo
The table here shows the alarm input information.

232
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Parameter Name Req. or Opt. Data Type Description


id Req. String Physical resource ID of alarm input.
status Req. Integer Status: 0-unknown, 1-​activated, 2-not activated.
errorCode Req. String Error code.

A.3.18 AlarmLinkageConfig
The table here shows the information of the alarm linkage.

Parameter Name Data Type Description


linkCamera LinkCamera Linked camera.
linkAlarmOutput LinkAlarmOutput Linked alarm output.

A.3.19 AlarmLinkage
The table here shows the information returned from alarm linkage rule operation.

Parameter Name Data Type Description


itemID String Alarm linkage ID.
alarmRuleID String Alarm rule ID.
linkageType String Linkage type.
errorCode String Error code.

A.3.20 AlarmMsg
The table here shows the information of an alarm event..

Parameter Name Data Type Description


guid String GUID.
dataRetransmission Integer Whether it is real-​time alarm: 0-alarm uploaded via
ANR, 1-alarm uploaded in real-​time.

233
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Parameter Name Data Type Description


msgType String Alarm message type: "0" (end message), "1" (start
message, or pulse, repeated GUID means pulse), "2"
(confirm message), "3" (mark message).
alarmState String Whether the alarm is in start status: "1" (start), "0"
(end).
pulseAlarm String Whether the alarm is pulse alarm: "0" (non-pulse
alarm), "1" (pulse alarm).
alarmMainCategory String Alarm main category.
alarmSubCategory String Alarm sub category.
timeInfo AlarmTimeInfo Alarm time.
eventSource AlarmEventSource Alarm event source.
alarmRule AlarmRule Alarm rule.
alarmPriority AlarmPriority Alarm priority.
markState String Whether the alarm is tagged: "0" (untagged), "1"
(tagged).
affirmedState String Whether the alarm is acknowledged: "0"
(unacknowledged), "1" (acknowledged).
fileInfo AlarmFileInfo Alarm file details.
linkageType String[] Linkage type: "0"-recording linkage, "1"-GIS map
linkage, "2"-alarm output linkage, "3"-pop-up window
linkage, "4"-door linkage.
linkageConfig AlarmLinkageConfig Linkage configuration.
vehicleRelatedInfo VehicleRelatedInfo Linked vehicle information.
queueRelatedInfo QueueRelatedInfo Queuing-alarm related information.
anprInfo ANPRInfo Vehicle blocklist/allowlist alarm event details.

A.3.21 AlarmOutputChannel
The table here shows the information of an alarm output channel.

234
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Parameter Name Req. or Opt. Data Type Description


id Opt. String ID.
name Opt. String Name.
no Opt. String Channel No.
online Opt. String Online status.
area Opt. Object Area information. See details in Area .

A.3.22 AlarmOutputOperation
The table here shows information of alarm output control.

Parameter Name Data Type Description


alarmOutputID String Alarm output ID.
alarmOutputState String Alarm output status.
errorCode String Error code.

A.3.23 AlarmOutputState
The table here shows information about alarm output state.

Parameter Name Data Type Description


id String Alarm output ID.
status Integer Alarm output status: 0 (closed), 1 (open).
errorCode String Error code.

A.3.24 Alarmpriorities
The table here shows the details of an alarm priority.

235
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Parameter Name Data Type Description


ID String Alarm priority ID.
level String Alarm priority level, which contains level 1 (the highest level), 2,
and 3.
levelName String Priority level name.
color String Alarm priority level color, which is the value of RGB, for example:
#F40B0B.
audioName String Alarm audio name.
audioURL String Alarm audio URL.

A.3.25 AlarmPriority
The table here shows the information displayed in an alarm priority list.

Parameter Name Data Type Description


ID String Alarm priority ID.
level String Alarm priority level, which contains level 1 (the highest level), 2,
and 3.
levelName String Alarm priority name.
color String Alarm priority level color, which is the value of RGB, for example:
#F40B0B.

A.3.26 AlarmResourceInfo
The table here shows the alarm resource information.

Parameter Name Req. or Opt. Data Type Description


ID Req. String Resource ID, which consists of up to 32 characters.
name Opt. String Resource name, which consists of up to 64
characters.
areaID Opt. String Area ID, which consists of up to 32 characters.
areaName Opt. String Area name, which consists of up to 32 characters.

236
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

A.3.27 AlarmRuleDetail
The table here shows the details of an alarm rule.

Parameter Name Data Type Description


ID String Alarm rule ID.
name String Alarm rule name.
description String Alarm rule description.
color String Alarm rule color.
enable String Whether to enable alarm rule: "0" (disable), "1" (enable).
state String Alarm rule status: "0" (normal), "1" (exception).
alarmMainCategory String Aalrm main category.
alarmSubCategory String Alarm sub category.
notification Notification Notification configuration.
schedule Schedule Alarm schedule template.
priority Priority Alarm priority.
ignoreRecurring IgnoreRecurring Auto-close alarming window.
eventSource EventSource Event source.

A.3.28 AlarmRuleOperation
The table here shows the information returned from alarm rule operation.

Parameter Name Data Type Description


id String Alarm rule ID.
name String Alarm rule name
errorCode String Error code, only returned for the operation of adding alarm rules,
and not for the operation of updating alarm rules.

A.3.29 AlarmRule
The table here shows the information about alarm rules.

237
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Parameter Name Data Type Description


id String Alarm rule ID.
name String Alarm rule name.
description String Alarm rule details.

A.3.30 AlarmTimeInfo
The table here shows the alarm time information.

Parameter Data Description


Name Type
startTime String Alarm start time (refers to device local time), which is in ISO 8601
standard time format (see details in ISO 8601 Time Format
Instruction ), e.g., "2021-12-12T12:12:12+08:00".
endTime String Alarm end time (refers to device local time), which is in ISO 8601
standard time format (see details in ISO 8601 Time Format
Instruction ), e.g., "2021-12-12T12:12:12+08:00".

A.3.31 ANPRInfo
The table here shows the ANPR information.

Parameter Name Data Type Description


driveDirection Integer Driving direction: 0-backward, 1-forward.
licensePlate String License plate No.
pictureInfo List< PictureInfo > Captured picture and coordinates.
vehicleListType Integer List type: 0-blocklist, 1-allowlist.

A.3.32 Area
The table here shows the information of an area.

238
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Parameter Name Req. or Opt. Data Type Description


id Opt. String Area ID.
name Opt. String Area name.

A.3.33 AreaBrief
The table here shows the area information.

Parameter Name Data Type Description


areaId String Area ID.

A.3.34 AreaInfo
The table here shows the area information.

Parameter Name Req. or Opt. Data Type Description


id Opt. String Area ID.
name Opt. String Area name.
area Opt. IdNameInfo [] Sub-area information.

A.3.35 AssociateResId
The table here shows the associated resource ID.

Parameter Name Req. or Opt. Data Type Description


resId Opt. String Resource ID.

A.3.36 AssociateResInfo
The table here shows the associated resource information.

239
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Parameter Name Req. or Opt. Data Type Description


id Opt. String Resource ID.
name Opt. String Resource name.
type Opt. Integer Resource type.
areaInfo Opt. IdNameInfo Area information.

A.3.37 Attachment
The table here shows the attachment information.

Parameter Name Data Type Description


url String Attachment (pictures/videos) URL (valid for 15 minutes).

A.3.38 BasicInfo(1)
The table here shows event's basic information.

Parameter Name Data Type Description


occurrenceTime String Event time in ISO 8601 format. For example, 2021-08-
01T12:30:00+08:30.
msgType String Event type.
resource Resource Resource information.
device DeviceBrief Device information.

A.3.39 BasicInfo(2)
The table here shows device information in authentication event of message subscription.

Parameter Name Req. or Opt. Data Type Description


systemId Opt. String System ID.
eventType Opt. Integer Event type, delete prefix "Msg", type
is Integer.

240
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Parameter Name Req. or Opt. Data Type Description


elementId Opt. String Element ID.
elementType Opt. Integer Element type, door (1002), alarm
input (1003), access control (2002),
two-way audio device (2008).
elementName Opt. String Element name.
areaId Opt. String Area ID.
areaName Opt. String Area name.
occurTime Opt. String Occurred time, ISO format.
deviceId Opt. String Device ID.
deviceSerial Opt. String Device serial No.
deviceName Opt. String Device name.
channelNo Opt. Integer Channel No.
currentEvent Opt. Integer Whether the current event, 0: offline,
1: current. It is current event without
this field.
serialNo Opt. Integer Event serial No.
cardReaderId Opt. String Card reader ID.

A.3.40 BriefArea
The table here shows the information of an area.

Parameter Name Req. or Opt. Data Type Description


id Req. String Area ID.
name Req. String Area name.
parentAreaID Opt. String Parent area ID.
existSubArea Req. Integer Whether there are sub areas in the current area: 0
(no), 1 (yes).
areaPath Req. String Detailed path starting from the origin area to the
current area (e.g., root->a->b).

241
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

A.3.41 Building
The table here shows the building information.

Parameter Name Req. or Opt. Data Type Description


buildId Req. String Building ID. The maximum length is
64.
buildName Req. String Building name.
areaId Req. String Area ID.
areaName Req. String Area name.
totalRoom Req. Integer Total number of rooms.
totalPerson Req. Integer Total number of residents.
deviceNames Opt. String Device name(s). Use comma to
separate multiple items.

A.3.42 BuildingSearchCriteria
The table here shows the building search conditions.

Parameter Name Req. or Opt. Data Type Description


areaId Req. String Area ID: -1 (root area). The maximum
length is 64.
isContainSubArea Opt. Integer Whether the child areas are included:
0 (no), 1 (yes). The child areas are not
included by default.
filterName Opt. String Building name.

A.3.43 CameraChannel
The table here shows information of a camera channel.

242
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Parameter Name Req. or Opt. Data Type Description


id Opt. String Channel ID.
name Opt. String Name.
no Opt. String Channel No.
online Opt. String Online status.
area Opt. Object Area information. See details in Area .

A.3.44 CameraInfo
The table here shows the camera information.

Parameter Name Data Type Description


id String Camera ID.
name String Camera name.
abilitySet String The capability set of the camera. See details of specific
values in Capability Set .
online String Online status: "1"-online, "0"-​offline.
area Area Area information.
device DeviceByResource Device information.

A.3.45 Card(1)
The table here shows he failed card details returned by card information updating.

Parameter Name Req. or Opt. Data Type Description


cardId Opt String Card ID.
cardNo Opt String Card No.
errorCode Opt String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).
Each code can contain up to 32
characters.

243
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

A.3.46 Card(2)
The table here shows the card information linked with person information.

Parameter Name Req. or Opt. Data Type Description


id Opt String Card ID.
cardNo Opt String Card No.

A.3.47 CardFailed
The table here shows the failure information returned by card information updating.

Parameter Name Req. or Opt. Data Type Description


personId Opt. String Person ID.
personName Opt. String Person name.
errorCode Opt. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).
Each code can contain up to 32
characters.
cardList Opt. Card(1) Failed card list.

A.3.48 CertificateInfo
The table here shows authentication event information of message subscription.

Parameter Name Req. or Opt. Data Type Description


event Opt. Event(2) Opening door event.

A.3.49 CertificateStatus
The table here shows the credential applying status.

244
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Parameter Name Req. or Opt. Data Type Description


id Opt. String Unique ID.
status Opt. String Applying status: 0 (applied), 1 (to be
applied), 2 (applying failed), 3 (deleting
failed).
type Opt. Integer Credential type: 0 (physical card), 1
(fingerprint), 2 (face), 3 (person). The
default value is 2.
errorCode Opt. String Error code.
message Opt. String When the error code is VMS040112, this
node is the employee No. when the
fingerprint is duplicate.

A.3.50 ChannelInfo
The table here shows the channel information.

Parameter Name Data Type Description


id String Channel ID.
no String Channel No.

A.3.51 CloudStorage
The table here shows the overview of the cloud storage service.

Parameter Name Data Type Description


category Integer Cloud storage type: 1 (cloud storage via NVR), 2 (Hik-ProConnect
box).
no Integer Channel No.
sn String Device serial No.

245
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

A.3.52 CloudStorageInfo
The table here shows the information of the cloud storage service.

Parameter Name Req. or Opt. Data Type Description


usingAmountFor7Days Opt. String Channel number of 7-day cloud storage
service.
usingAmountFor30Days Opt. String Channel number of 30-day cloud storage
service.
remainingAmount Opt. String Channel number of the remaining cloud
storage service.

A.3.53 CloudStorageDetail
The table here shows the details of the cloud storage service.

Parameter Name Req. or Opt. Data Type Description


storageType Opt. String Cloud storage type: "7Days" (7-day cloud storage
service), "30Days" (30-day cloud storage service).
purchaseAmount Opt. String Channel number of the purchased cloud storage
service, unit: day.

A.3.54 CombineBaseInfo

Parameter Name Req. or Opt. Data Type Description


systemId Req. String System ID.
occurrenceTime Req. String Event time, in ISO 8601 standard time
format: yyyy-MM-ddTHH:mm:ss +current
zone, e.g., 2018-07- 26T15:00:00+08:00.
dataRetransmissi Opt. Integer Whether it is real-​time alarm: 0-alarm
on uploaded in real-​time, 1-alarm uploaded
via ANR.
resourceInfo Opt. CombineResourc Resource information.
eInfo

246
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

A.3.55 CombineDeviceInfo

Parameter Name Req. or Opt. Data Type Description


id Opt. String Device ID
deviceSerial Req. String Device serial No.
name Opt. String Device name.
category Opt. String Device type.

A.3.56 CombineEvent

Parameter Name Req. or Opt. Data Type Description


eventId Req. Integer Event ID.
eventType Req. String Event type. See details in Alarm Type
(V2) .
basicInfo Req. CombineBaseInf Basic information.
o
evenData Opt. CombineEventD Extended information for eventType. See
ata details in the eventData Schemas
information in Event Message .

A.3.57 CombineEventData

Parameter Name Req. or Data Type Description


Opt.
fileInfo Opt. AlarmFileInfo Alarm picture information.
vehicleReletedInfo Opt. VehicleRelatedInfo Information of vehicles linked with on-
board devices.
queueReletedInfo Opt. QueueRelatedInfo Queuing-related alarm information.
anprInfo Opt. ANPRInfo ANPR information.
deviceTalkInfo Opt. DeviceTalkInfo Video intercom information.

247
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

A.3.58 CombineResourceInfo

Parameter Name Req. or Opt. Data Type Description


sourceID Opt. String Resource ID.
sourceType Opt. String Resource type.
sourceName Opt. Integer Resource name.
areaID Opt. String Area ID.
areaName Opt. String Area name.
deviceInfo Req. CombineDeviceInf Device information.
o

A.3.59 CommonFailed
The table here shows common failure information.

Parameter Name Req. or Opt. Data Type Description


personId Opt. String Person ID.
message Opt. String Error description.
errorCode Opt. String Error code.

A.3.60 DataBean
The table here shows the event's extended information.

Parameter Name Req. or Data Type Description


Opt.
deviceTalkInfo Opt. DeviceTalkInfo Video intercom event (140001)
details.
vehicleRelatedInfo Opt. VehicleRelatedInfo On-board monitoring event
details.
openDoorInfo Opt. CertificateInfo Authentication event information.

248
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

A.3.61 Device
The table here shows the information of a device.

Parameter Name Req. or Opt. Data Type Description


id Req. String Device ID.
name Req. String Device name.
category Opt. String Device type.
type Opt. String Device model.
serialNo Opt. String Device serial No.
version Opt. String Firmware version.
timeZone Opt. String Time zone No.
onlineStatus Opt. Integer Network status: 0 (offline), 1 (online), 2 (unknown).
addTime Opt. String Added time.

A.3.62 DeviceBaseInfo
The table here shows basic information about the device.

Parameter Name Req. or Opt. Data Type Description


id Opt. String Device ID.
name Opt. String Device name.
category Opt. String Device type.
serialNo Opt. String Device serial No. (short serial No.).
version Opt. String Device firmware version.
type Opt. String Device model.
streamEncryptEnable Opt. Integer Whether to enable encryption of
stream.
availableCameraChann Opt. Integer Number of available camera
elNum channels.

249
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Parameter Name Req. or Opt. Data Type Description


availableAlarmInputCh Opt. Integer Number of available alarm input
annelNum channels.
availableAlarmOutput Opt. Integer Number of available alarm output
ChannelNum channels.

A.3.63 DeviceBrief
The table here shows the device information.

Parameter Name Data Type Description


id String Device ID.
name String Device name.
category String Device category.
deviceSerial String Device serial No.

A.3.64 DeviceByResource
The table here shows the information about the device.

Parameter Name Data Type Description


devInfo DevInfo Device details.
.
channelInfo ChannelInfo Channel details.

A.3.65 DeviceInfo
The table here shows the device information.

Parameter Name Req. or Opt. Data Type Description


name Req. String Device name, which consists of up to 64 characters.
ezvizSerialNo Req. String Serial No., which consists of up to 30 characters.

250
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Parameter Name Req. or Opt. Data Type Description


ezvizVerifyCode Req. String Verification code, which consists of up to 30
characters.
userName Opt. String User name, which consists of up to 32 characters.
password Opt. String Password, which consists of up to 16 characters.

A.3.66 DeviceInfo (2)


The table here shows the device information.

Parameter Name Req. or Opt. Data Type Description


name Req. String Device name, which consists of up to 32 characters.
id Req. String Device ID, which consists of up to 32 characters.
userName Opt. String User name, which consists of up to 32 characters.
password Opt. String Password, which consists of up to 16 characters.

A.3.67 DeviceList
The table here shows the returned results of adding a device.

Parameter Name Req. or Opt. Data Type Description


alias Req. String Device alias, which consists of up to 32 characters.
deviceId Req. String Device ID, which consists of up to 32 characters.
deviceSerial Req. String Device serial No., which consists of up to 30
characters.
errorCode Opt. String Error code, which consists of up to 16 characters.

A.3.68 DeviceTalkInfo
The table here shows the video intercom event details.

251
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Parameter Req. or Data Type Description


Name Opt.
userId Opt. String User ID of the person added to the room that is
called by the video intercom device. This field is
empty when no user exists in the called room.
personId Opt. String Person ID of the person added to the room that is
called by the video intercom device. This field will be
returned only when callType is 0 and userId is not
empty.
roomNumber Opt. Integer ID of the room that is called. This field will be
returned only when callType is 0.
deviceSerial Req. String Device serial No.
deviceName Req. String Device name.
deviceId Req. String Device ID.
msgId Req. String Call record ID.
msgType Req. Integer Call record type: 0 ( pushed call), 1 (call answered by
others), 2 (call hung up by the device), 3 (call
canceled by the device because no one answers).
callType Opt. Integer Call type: 0-from device to room, 1-from device to
call management center.
doorInfos Opt. DoorInfo [] Door information.

A.3.69 DevInfo
The table here shows the device details.

Parameter Name Data Type Description


id String Device ID.
category String Device main type.
serialNo String Device serial No.

A.3.70 DoorChannel
The table here shows the information of a door channel.

252
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Parameter Name Req. or Opt. Data Type Description


id Opt. String ID.
name Opt. String Name.
no Opt. String Channel No.
online Opt. String Online status.
area Opt. Object Area information. See details in Area .

A.3.71 DoorInfo
The table here shows the door information.

Parameter Name Req. or Opt. Data Type Description


doorId Req. String Door ID.
doorName Req. String Door name.

A.3.72 DriverInfo

Parameter Name Req. or Opt. Data Type Description


driverName Opt. String License plate No.
driverPhone Opt String Vehicle ID.
.
driverFacePic Opt Integer Speed limit (cm/h).
.
licenseInfo Opt LicenseInfo License plate information.
.

A.3.73 ElementDetail
The table here shows the credential details.

253
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Parameter Name Req. or Opt. Data Type Description


id Opt. String Unique ID.
name Opt. String Name.
type Opt. Integer Resource type: 0 (door), 1 (device). The
default value is 0.
elementStatus Opt. ElementStatus Applying status of the resource.
certificateStatusLi Opt. CertificateStatus [] Applying status of the credential. It is
st returned when applying failed.

A.3.74 ElementStatus
The table here shows the applying status of the resource.

Parameter Name Req. or Opt. Data Type Description


status Opt. Integer Applying status: 0 (applied), 1 (to be
applied), 2 (applying failed), 3 (deleting
failed).
errorCode Opt. String Error code.

A.3.75 Event(1)
The table here shows the event information.

Parameter Name Req. or Opt. Data Type Description


uuid Opt. String UUID of on-board monitoring
messages.
update Opt. Boolean Whether it is updated information:
true-yes (added pictures/videos
comparing to the previous upload),
false-no.
basicInfo Req. BasicInfo(1) Basic information.
picture Opt. Attachment [] Picture information.

254
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Parameter Name Req. or Opt. Data Type Description


video Opt. Attachment [] Video information.
data Opt. DataBean Extended information.

A.3.76 Event(2)
The table here shows authentication event in authentication event information of message
subcription.

Parameter Name Req. or Opt. Data Type Description


basicInfo Opt. BasicInfo(2) Device information.
intelliInfo Opt. IntelliInfo Person information.

A.3.77 EventSource
The table here shows the event source information.

Parameter Name Req. or Data Type Description


Opt.
eventType Opt. String Event type, which consists of up to 64 characters.
sourceID Opt. String Alarm source ID, which consists of up to 64
characters.
sourceType Opt. String Alarm source type, which consists of up to 64
characters. See details in Alarm Source .
sourceName Opt. String Alarm source name, which consists of up to 64
characters.

A.3.78 FailedResult
The table here shows the information of the room where the number of persons exceeds the limit.

255
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Parameter Name Req. or Opt. Data Type Description


buildName Req. String Building name, for identifying the rooms
with limit-reached number of persons.
roomNum Req. Integer Room No.
roomName Req. String Room name.
errorCode Req. String Error code (VMS038005 supported only
currently).

A.3.79 Finger(1)
The table here shows the failed fingerprint details returned by fingerprint information updating.

Parameter Name Req. or Opt. Data Type Description


id Opt String Fingerprint ID.
failedName Opt String Fingerprint name.
errorCode Opt String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).
Each code can contain up to 32
characters.

A.3.80 Finger(2)
The table here shows the fingerprint information linked with person information.

Parameter Name Req. or Opt. Data Type Description


id Opt String Fingerprint ID.
name Opt String Fingerprint name.
data Opt String Fingerprint data.

A.3.81 FingerFailed
The table here shows failure information returned by fingerprint information updating.

256
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Parameter Name Req. or Opt. Data Type Description


personId Opt. String Person ID.
personName Opt. String Person name.
errorCode Opt. String Response status or error code: 0-
succeeded, other codes-failed (refer
to Status and Error Code for details).
Each code can contain up to 32
characters.
fingerList Opt. Finger(1) Failed fingerprint list.

A.3.82 GetDeviceInfo
The table here shows the returned information of device details.

Parameter Name Req. or Data Type Description


Opt.
baseInfo Opt. Object Device information. See details in
DeviceBaseInfo .
cameraChannel Opt. CameraChannel [] Camera list.
alarmInputChannel Opt. AlarmInputChannel [] Alarm input list.
alarmOutputChannel Opt. AlarmOutputChannel [] Alarm output list.
doorChannel Opt. DoorChannel [] List of doors.
relatedVehicleInfo Opt. VehicleInfo(1) Information of the linked vehicle.
onlineStatus Opt. Integer Device online status, which consists
of 1 character.
timeZoneID Opt. String Time zone ID, which consists of up to
8 characters.

A.3.83 GetDevicesResVo
The table here shows the device list structure.

257
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Parameter Name Req. or Opt. Data Type Description


totalCount Opt. Integer Total number of pages.
pageIndex Opt. Integer Current page No.
pageSize Opt. Integer Number of items per page.
device Opt. Device [] Information of device list.

A.3.84 GPSInfo
The table here shows the GPS information.

Parameter Name Req. or Opt. Data Type Description


ew Req. String E-east longitude, W-west longitude.
lng Req. String Longitude (e.g., 120.218048) (unit:
degree).
ns Req. String N-north latitude, S-south latitude.
lat Req. String Latitude (unit: degree).
direction Req. Integer Direction (unit: degree, calculated
clockwise from due north (0)).
height Opt. Integer Height (unit: cm)
speed Req. Integer Speed (cm/h).

A.3.85 IdNameInfo
The table here shows the ID and name information.

Parameter Name Req. or Opt. Data Type Description


id Opt. String Unique ID.
name Opt. String Name.

A.3.86 IgnoreRecurring
The table here shows the information of an auto-closing alarming window.

258
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Parameter Name Req. or Opt. Data Type Description


enable Req. String Whether to enable auto-close alarming window: 0
(disable), 1 (enable), which consists of up to 1
character.
timeValue Opt. String Time, which consists of up to 16 characters.

A.3.87 ImportToArea
The table here shows whether to import to area automatically.

Parameter Req. or Data Type Description


Name Opt.
enable Opt. Intger Whether to import device resources to area (channel,
alarm input, and alarm output) automatically: 0 (no), 1
(yes). And the field consists of 1 character.
areaID Opt. String When area ID is empty, the area will be created according
to device name. And the field consists of up to 32
characters.

A.3.88 IntelliInfo
The table here shows person information in openning door event of message subscription.

Parameter Name Req. or Opt. Data Type Description


cardNumber Opt. String Card No.
personId Opt. String Person ID.
firstName Opt. String Person first name.
lastName Opt. String Person last name.
fullPath Opt. String Person department full path.
phoneNum Opt. String Phone number.
personPicUrl Opt. String Person picture URL.
groupId Opt. String Person group ID.

259
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Parameter Name Req. or Opt. Data Type Description


attendanceStatus Opt. Integer Person attendance status, 0-
undefined, 1-on work, 2-​off work, 3-
break starts, 4-break ends, 5-​overtime
starts, 6-​overtime ends.
authResult Opt. Integer Authentication result, whether
swiping card succeeded, 1-true, 0-
false.

A.3.89 LicenseInfo

Parameter Name Req. or Opt. Data Type Description


licenseNo Opt. String License plate No.
invalidTime Opt. String License validity.
imageUrl Opt. String License profile picture.

A.3.90 LinkageAlarmOutput
The table here shows the information of an alarm output linked to an alarm.

Parameter Name Req. or Data Type Description


Opt.
autoClose Opt. Integer Types of closing alarm window : 0 (manually
closing alarm window), 1 (automatically
closing alarm window), which consists of up
to 1 character.
autoCloseTime Opt. Integer The time of auto-closing alarm window,
which consists of up to 16 characters.
camera / AlarmResourceInfo [] Alarm resource parameters.

A.3.91 LinkageCamera
The table here shows the information of an linked camera .

260
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Parameter Name Req. or Data Type Description


Opt.
preRecordTime Opt. String Pre-record time, which consists of up to 64
characters.
postRecordTime Opt. String Post-record time, which consists of up to 64
characters.
camera Opt. AlarmResourceInfo [] Alarm resource information.
relateType Req. Integer Linked alarm type: 1 (link to the
corresponding camera), 2 (link to another
camera); this node consists of up to 16
characters.
selfRelated Opt. SelfRelated Related storage information.

A.3.92 LinkageConfig
The table here shows the alarm linkage information.

Parameter Name Data Type Description


linkCamera LinkageCamera Camera linked to the alarm.
linkCapturePicture LinkCapturePicture Captured pictures linked to the alarm.
linkEmail LinkEmail Email linked to the alarm.
linkAlarmOutput LinkageAlarmOutput Alarm outputs linked to the alarm.

A.3.93 LinkageItem
The table here shows the linkage of an alarm.

Parameter Name Req. or Opt. Data Type Description


linkageType Opt. String Linkage type, which consists of up to 64
characters.
linkageConfig / LinkageConfig Linkage configuration.

261
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

A.3.94 LinkAlarmOutput
The table here shows the linked alarm output.

Parameter Name Data Type Description


alarmOutput AlarmResourceInfo [] Alarm resource information.

A.3.95 LinkCamera
The table here shows the information of an linked camera.

Parameter Name Data Type Description


preRecordTime String Pre-record time.
postRecordTime String Post-record time.
camera AlarmResourceInfo [] Alarm resource information.

A.3.96 LinkCapturePicture
The table here shows the information of an captured picture linked to an alarm.

Parameter Name Req. or Data Type Description


Opt.
captureInterval Opt. Integer Capture interval, unit: second, which
consists of up to 16 characters.
captureMode Opt. String Capture mode: "1" (capture the picture
when the event occurs), "2" (capture each
picture before, when, and after the event
occurs, and ), which consists of up to 1
character.
camera Opt. AlarmResourceInfo [] Alarm resource information.

A.3.97 LinkEmail
The table here shows the information of an email template linked to an alarm.

262
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Parameter Name Req. or Opt. Data Type Description


emailTemplateId Opt. String Email template ID, which consists of up to 64
characters.
emailTemplateName Opt. String Email template name, which consists of up to 64
characters.

A.3.98 LocalStorage
The table here shows the local storage information.

Parameter Name Data Type Description


recordingStreamType Integer Record stream type.
scheduleTemplateId String Template ID of local storage schedule.
preRecord Integer Whether to enable pre-record: 0 (disable), 1 (enable).
postRecordTime Integer Post-record time, unit: second.
anr Integer Whether to enable ANR: 0 (disable), 1 (enable).
storageTime Integer Storage retention period of records, unite: day. If the value "-
1" is returned, it means the records have no limited storage
retention period.

A.3.99 Notification
The table here shows the information of an alarm notification.

Parameter Name Req. or Opt. Data Type Description


enable Req. Integer Whether to enable notification: 0 (disable), 1
(enable).
recipients Recipients [] User list for receiving notifications.
/

A.3.100 PackageDetails
The table here shows the details of a service package.

263
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Parameter Name Req. or Opt. Data Type Description


servicePackage Opt. ServicePackage [] Details of a service package.

A.3.101 PackageOverview
The table here shows the overview of the service package.

Parameter Name Req. or Opt. Data Type Description


servicePackageOverview Opt. ServicePackageOverview [] Service package overview.

A.3.102 Person
The table here shows the person information.

Parameter Name Req. or Opt. Data Type Description


personId Req. String Person ID.
firstName Req. String Person's first name.
lastName Req. String Person's last name.
phone Req. String Phone No.
email Req. String Email.
isExpired Req. String Status: 0 (normal), 1 (expired).
photoUrl Req. String URL of the face picture to be applied to
the device.
headPicUrl Req. String URL of the profile photo.
roomList Req. RoomDTO [] Resident's room information.

A.3.103 PersonBaseInfo(1)

Parameter Name Req. or Opt. Data Type Description


fullPath Opt. String Person group path.
firstName Opt. String First name.

264
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Parameter Name Req. or Opt. Data Type Description


lastName Opt. String Last name.
personCode Opt. String Employee No.
phoneNum Opt. String Phone number.
photoUrl Opt. String Photo URL.
gender Opt. Integer 0-female, 1-male, 2-unknown.
email Opt. String Email.

A.3.104 PersonBaseInfo(2)

Parameter Name Req. or Opt. Data Type Description


groupId Req. String Person group ID.
personCode Req. String Employee No., 1-16 characters, digits
and letters allowed.
firstName Req. String First name, no more than 255
characters. First name and last name
should be no more than 255
characters.
lastName Req. String Last name, no more than 255
characters. First name and last name
should be no more than 255
characters.
gender Req. Integer 0-female, 1-male, 2-unknown.
phone Opt. String Phone number, no more than 32
characters.
email Opt. String Email address, no more than 64
characters.
description Opt. String Description, no more than 128
characters.

265
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Parameter Name Req. or Opt. Data Type Description


startDate Req. String Validity period start date, ISO time
format, e.g.: 2022-10-
21T11:08:23+08:00
endDate Req. String Validity period end date, ISO time
format, e.g.: 2023-10-
21T11:08:23+08:00. The year should
be no more than 2037. After the
validity period, platform will not
delete. You can delete by yourself or
renew.

A.3.105 PersonDTO
The table here shows the resident basic information.

Parameter Name Req. or Opt. Data Type Description


id Opt. String Person ID, not required
for adding new
residents and required
for selecting existing
residents; required for
updating resident
information.
personCode Opt. String Person code.

Note
Update Resident: This
node should be
empty.
Add Resident: This
node should be empty
if you add new person
information for the
resident, while this
node is required if you
add a resident from
existing persons.

266
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Parameter Name Req. or Opt. Data Type Description


groupId Opt. String Department ID, for
adding or updating
person information.
firstName Req. String Person's first name.
The maximum length is
128.
lastName Req. String Person's last name.
The maximum length is
128.
gender Req. Integer 0 (female), 1 (male), 2
(unknown).
phone Opt. String Phone No.
email Req. String Email.
description Opt. String Remark.
startDate Req. String Start time of effective
period in ISO 8601
time format.
endDate Req. String End time of effective
period in ISO 8601
time format.

A.3.106 PersonGroup
The table here shows the department information.

Parameter Name Data Type Description


groupId String Department ID.
groupName String Department name.
parentId String Root department ID.
childNodeExist Boolean Whether child departments exist.
permissionState Boolean Permission: 0 (no permission), 1 (with permission).
description String Description.

267
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Parameter Name Data Type Description


areaList AreaBrief [] Area ID list.
groupFullPath String Full path.

A.3.107 PersonInfo(1)
The table here shows basic information linked to person.

Parameter Req. or Opt. Data Type Description


personId Opt. String Person ID.
groupId Opt. String Person group ID.
firstName Opt. String First name.
lastName Opt. String Last name.
gender Opt. Integer 0-female, 1-male, 2-unknown.
phone Opt. String Phone number.
email Opt. String Email address.
description Opt. String Description information.
startDate Opt. Long Validity period start date, timestamp
format, e.g.: 1659490699376
endDate Opt. Long Validity period end date, timestamp
format, e.g.: 1659490699376.
personCode Opt. String Employee No.
headPicUrl Opt. String Face picture URL.

A.3.108 PersonInfo(2)

Parameter Name Req. or Opt. Data Type Description


id Opt. String Person unique ID.
baseInfo Opt. PersonBaseInfo(1 Baisc information.
)

268
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

A.3.109 PictureInfo
The table here shows the captured picture information.

Parameter Name Data Type Description


pictureURL String Captured picture.
plateRect PlateRect Coordinates.

A.3.110 PlateRect
The table here shows the coordinate information.

Parameter Name Data Type Description


X Integer X-coordinate.
Y Integer Y-coordinate.
width Integer Width.
height Integer Height.

A.3.111 Priority
The table here shows the alarm priority information.

Parameter Req. or Data Type Description


Name Opt.
ID Req. String Alarm priority ID, which consists of up to 64 characters.
level Opt. String Alarm priority level, which contains level 1 (the highest
level), 2, and 3. It consists of up to 64 characters.
levelName Opt. String Level name, which consists of up to 64 characters.
color Opt. String Alarm priority level color, which is the value of RGB, for
example: #F40B0B. It consists of up to 64 characters.

A.3.112 QueueInfo
The table here shows the information of leaving queue detection alarms.

269
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Parameter Name Req. or Opt. Data Type Description


regionID Opt. String Queuing area ID.
regionName Opt. String Queuing area name.
queueThreshold Opt. Integer Queuing time threshold.
peopleTargetId Opt. Integer Target persons whose queuing time has
exceeded the alarm threshold.
waitTime Opt. Long The actual waiting duration for the person
(unit: second).
startTime Opt. String Queuing start time in ISO 8601 format,
which is represented by "yyyy-MM-
ddTHH:mm:ss+current time zone", e.g.,
"2018-07-26T15:00:00+08:00".
endTime Opt. String Queuing end time in ISO 8601 format,
which is represented by "yyyy-MM-
ddTHH:mm:ss+current time zone", e.g.,
"2018-07-26T15:00:00+08:00".

A.3.113 QueueRelatedInfo
The table here shows the specific queuing-related alarms.

Parameter Name Req. or Opt. Data Type Description


queueInfo Opt. QueueInfo Leaving queue detection alarms.

A.3.114 ReceivingSchedule
The table here shows the information of an arming schedule template.

Parameter Name Data Type Description


ID String ID of an arming schedule template.
name String Name of an arming schedule template name.
systemTemplate Integer Template type: 0 (custom template), 1 (default template).
timeSetting TimeSetting [] Time settings.

270
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

A.3.115 Recipients
The table here shows the recipient information.

Parameter Name Req. or Opt. Data Type Description


userID Opt. String User ID, which consists of up to 32
characters.
userName Opt. String User name, which consists of up to 64
characters.

A.3.116 RecordInfo
The table here shows the information of card swiping record.

Parameter Name Req. or Opt. Data Type Description


recordGuid Opt. String Unique ID.
elementId Opt. String Access control point ID.
elementName Opt. String
elementPicUrl Opt. String Access control point picture URL, URL
validity period 2 hours.
elementType Opt. Integer Element type, door: 1002, access
control device: 2002, two-way audio
device: 2008.
areaId Opt. String
areaName Opt. String
deviceId Opt. String
deviceName Opt. String
acsSnapPicList Opt. AcsSnapPicInfo []
associatedCamera Opt. String
List
cardReaderId Opt. String
cardReaderName Opt. String
occurTime Opt. String

271
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Parameter Name Req. or Opt. Data Type Description


deviceTime Opt. String
eventType Opt. Integer Event type, refers to Event(2) .
swipeAuthResult Opt. Integer Authentication result, 0: failed, 1:
success.
eventMainType Opt. Integer Event main type, 0: normal event, 1:
temperature measurement event.
devSerialNo Opt. Integer Event serial No.
hasCameraSnapPi Opt. Integer Whether it has capture linkage.
c
hasDevVideoReco Opt. Integer Whether it has device recording.
rd
cardNumber Opt. String
personInfo Opt. PersonInfo(2)
temperatureInfo Opt. TemperatureInfo
masksStatus Opt. Integer Mask status, 1-unknown, 2-no mask,
3-wearing mask.
attendanceStatus Opt. Integer Attendance status, 0-​undefined, 1-on
work, 2-​off work, 3-break starts, 4-
break ends, 5-​overtime starts, 6-
overtime ends.

A.3.117 RecordSetting
The table here shows the record settings.

Parameter Name Data Type Description


cameraID String Camera ID.
enableLocalStorage Integer Whether to enable local recording schedule: 0 (disable), 1
(enable).
localStorage LocalStorage Local storage information.

272
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Parameter Name Data Type Description


enableCloudStorage Integer Whether to enable cloud storage schedule: 0 (disable), 1
(enable).
cloudStorage CloudStorage Cloud storage schedule.

A.3.118 RemoteControl
The table here shows the operation of remote control.

Parameter Name Req. or Opt. Data Type Description


actionType Req. Integer Operation type: 1 (unlock door), 2 (lock
door), 3 (remain unlocked), 4 (remain
locked).
elementlist Opt. String[] Door ID list. All doors are included if this
node is empty.
direction Opt. Integer Direction: 0 (enter), 1 (exit). The default
value is 0.
areaId Opt. String Area ID. All areas are included if the value
is -1.
depthTraversal Opt. Integer Whether to include child areas or not: 1
(yes), 0 (no). The default value is 0.

A.3.119 RemoteControlResponse
The table here shows the results of door control.

Parameter Name Req. or Opt. Data Type Description


elementId Req. String Door ID.
elementName Req. String Door name.
areaId Req. String Area ID.
areaName Req. String Area name.
errorCode Req. String Error code.

273
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

A.3.120 ResidentFilter
The table here shows the detailed conditions for resident search.

Parameter Name Req. or Opt. Data Type Description


name Opt. String Resident name.
roomNum Opt. Integer Room No.
email Opt. String Email.
phone Opt. String Phone No.
type Opt. Integer Resident type: 1 (householder), 0 (family
member).
isExpired Opt. Integer Status: 0 (normal), 1 (expired). Residents
of all status are included if this node is
empty.

A.3.121 ResidentSearchRequest
The table here shows the resident search conditions.

Parameter Name Req. or Opt. Data Type Description


areaId Req. String Area ID: -1 (root area). The maximum
length is 64.
buildId Opt. String Building ID. The maximum length is
64.
isContainSubArea Opt. Integer Whether the child areas are included:
0 (no), 1 (yes). The child areas are not
included by default.
filter Opt. ResidentFilter Detailed search conditions.

A.3.122 Resource
The table here shows the resource information.

274
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Parameter Name Data Type Description


type String Resource type.
id String Resource ID.
name String Resource name.
areaID String Area ID.
areaName String Area name.

A.3.123 ResourceAddResult
The table here shows the information about an area.

Parameter Name Data Type Description


id String Resource ID.
name String Resource name.
resourceType String Resource type. See details in
Resource Type , e.g., "camera",
"alarmInput" (alarm input),
"alarmOutput" (alarm output).
channelID String Device channel ID.
errorCode String Error code: "0" (succeeded),
other codes (failed). See details
in Status and Error Code .

A.3.124 RoomDTO
The table here shows the room information.

Parameter Name Req. or Opt. Data Type Description


roomId Req. String Room ID.
roomName Opt. String Room name, which is
required for searching
residents and is
optional for adding/
updating residents.

275
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Parameter Name Req. or Opt. Data Type Description


roomNum Opt. Integer Room No., which is
required for searching
residents and is
optional for adding/
updating residents.
buildId Req. String Building ID.
buildName Opt. Integer Building name, which
is required for
searching residents
and is optional for
adding/​updating
residents.
areaId Req. Integer Area ID.
areaName Opt. String Area name, which is
required for searching
residents and is
optional for adding/
updating residents.
accountType Req. Integer Resident type: 1
(householder), 0
(family member).

A.3.125 RoomFilter
The table here shows the detailed conditions for room search.

Parameter Name Req. or Opt. Data Type Description


roomNum Opt. Integer Room No.
roomName Opt. String Room name.
personAmount Opt. Integer Number of residents.
email Opt. String Email.
mainAccount Opt. String Householder name.

276
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

A.3.126 RoomSearchCriteria
The table here shows the room search conditions.

Parameter Name Req. or Opt. Data Type Description


areaId Req. String Area ID: -1 (root area). The maximum
length is 64.
buildId Opt. String Building ID. The maximum length is 64.
isContainSubArea Opt. Integer Whether the child areas are included: 0
(no), 1 (yes). The child areas are not
included by default.
filter Opt. RoomFilter Detailed search conditions.

A.3.127 RoomVO
The table here shows the room information.

Parameter Name Req. or Opt. Data Type Description


roomId Req. String Room ID.
roomName Req. String Room name.
roomNum Req. Integer Room No.
buildId Req. String Building ID.
buildName Req. Integer Building name.
areaId Req. Integer Area ID.
areaName Req. String Area name.
personAmount Req. Integer The number of
residents.
mainAccount Req. String Householder name.
email Req. String Email.
phone Opt. String Phone No.

277
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

A.3.128 Schedule
The table here shows the information of an alarm schedule template.

Parameter Name Req. or Opt. Data Type Description


timeSchedule Opt. TimeSchedule Alarm schedule template.
type Opt. String Schedule type, which consists of up to 64
characters.

A.3.129 SelfRelated
The table here shows the related information of an linked camera.

Parameter Name Req. or Opt. Data Type Description


storageType Opt. Integer Storage type, which consists of up to 16 characters.

A.3.130 ServicePackage
The table here shows the information of service(s) in a service package.

Parameter Name Req. or Data Type Description


Opt.
serviceType Opt. String Service type: "serviceVideo" (video
management service), "serviceVehicle" (on-
board monitoring service),
"serviceAlarmDetection" (alarm detection
service).
packageType Opt. String Service package type: "1" (free service
package), "2" (on-trial service package), "3"
(purchased service package), "4"
(complimentary service package).
purchaseAmount Opt. Integer Channel number of the purchased service(s).
activationTime Opt. String Activation time, which is in ISO 8601 standard
time format, see details in ISO 8601 Time
Format Instruction .

278
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Parameter Name Req. or Data Type Description


Opt.
expiredTime Opt. String Expiry time, which is in ISO 8601 standard
time format, see details in ISO 8601 Time
Format Instruction .
cloudStorage Opt. CloudStorageDetail [] Details of the purchased cloud storage service.

A.3.131 ServicePackageOverview
The table here shows the overview of the service(s) in a service package.

Parameter Name Data Type Description


serviceType String Service type: "serviceVideo" (video management service),
"serviceVehicle" (on-board monitoring service),
"serviceAlarmDetection" (alarm detection service).
packageType String Service package type: "1" (free service package), "2" (on-
trial service package), "3" (purchased service package), "4"
(complimentary service package).
usingAmount String Channel number of the in-using service(s).
remainingAmount String Channel number of the remaining service(s).
totalAmount String Channel number of the purchased service(s).
lastExpiredTime String Expiry time of the latest service.
packageStatus Integer Status of the service package: 0 (normal), 1 (exceeded
limit), 2 (to be expired), 3 (expired).
cloudStorage CloudStorageInfo Cloud storage service of the video management service
package.

A.3.132 TempAuth
The table here shows the temporary pass information.

279
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Parameter Name Req. or Opt. Data Type Description


id Req. String Temporary pass ID.
openCount Req. Integer Allowed passes for
each door.
name Req. String Temporary pass name.
startTime Req. Long Start time (millisecond
value). For example,
1672370265000.
endTime Req. Long End time (millisecond
value). For example,
1672370265000.
creatorId Req. String Creator ID.
creatorName Req. String Creator name.
creatorEmail Req. String Creator email.
expiredStatus Req. Integer Status: 1 (expired), 0
(normal).
password Req. String Password for opening
the door.

A.3.133 TempAuthFilter
The table here shows the detailed conditions for temporary pass search.

Parameter Name Req. or Opt. Data Type Description


name Req. String Temporary pass name
or creator name for
fuzzy search. The
maximum length is 64.

A.3.134 TempAuthSearchRequest
The table here shows the temporary pass search conditions.

280
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Parameter Name Req. or Opt. Data Type Description


filter Opt. TempAuthFilter Search conditions.

A.3.135 TemperatureInfo

Parameter Name Req. or Opt. Data Type Description


temperatureData Opt. String Temperature data.
temperatureStatu Opt. Integer Temperature status value, 1-normal,
s 2-​exception, 3-unknown.
temperatureUnit Opt. Integer Temperature unit, 0: Centigrade (°C),
1: Fahrenheit (°F), 2: Kelvin (K)

A.3.136 TimeRange
The table here shows the time range parameters for time-related alarm log search.

Parameter Req. or Data Type Description


Name Opt.
beginTime Req. String Start time, which is represented by "yyyy-MM-dd
HH:mm:ss", e.g., "2018-07-26 15:00:00".
endTime Req. String End time, which is represented by "yyyy-MM-dd
HH:mm:ss", e.g., "2018-07-26 15:00:00".

A.3.137 TimeSchedule
The table here shows the details of an alarm schedule template.

Parameter Name Req. or Opt. Data Type Description


ID Opt. String ID of an alarm schedule template, which consists of
up to 32 characters.
Name Opt. String Name of an alarm schedule template, which consists
of up to 64 characters.

281
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

A.3.138 TimeSetting
The table here shows the time information of an arming schedule template.

Parameter Name Data Type Description


dayOfWeek String Day of a week.
timeSpan TimeSpan [] Time range.

A.3.139 TimeSpan
The table here shows the time range of an arming schedule template.

Parameter Name Data Type Description


beginTime String Start time.
endTime String End time.

A.3.140 TimeZone
The table here shows information about time zone.

Parameter Name Req. or Opt. Data Type Description


id Req. String Time zone ID, which
consists of up to 8
characters.
applyToDevice Req. String Whether to apply to
device: "0" (not apply
to device), "1" (apply
to device). And the
field consists of 1
character.

A.3.141 TimeZoneInfo
The table here shows the information about time zone.

282
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Parameter Name Data Type Description


id String ID.
standardName String Standard time zone name.
displayName String Displayed time zone name.
bias Integer Time difference with GMT, unit: minute.
dst TimeZoneDst DST settings.

A.3.142 TimeZoneDst
The table here shows time zone DST settings.

Parameter Name Data Type Description


daylightBias String Time difference with DST, unit:
minute.
daylightDate String DST start time.
standardDate String Standard time, which is the end
time of DST.
enable Integer Whether to enable DST: 0 (no),
1 (yes).

A.3.143 TotalTimeCardReportData
The table here shows the Total Time Card report data.

Parameter Name Req. or Opt. Data Type Description


firstName Req. String Person's first name.
lastName Req. String Person's last name.
fullName Req. String Person's full name.
personCode Req. String Person's employee No.
groupName Req. String Department name.
date Req. String Date.

283
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Parameter Name Req. or Opt. Data Type Description


weekday Req. Integer Day of a week: 0-Sunday, 1-Monday,
2-Tuesday, 3-Wednesday, 4-Thursday,
5-Friday, 6-Saturday.
timetableName Req. String Time period name.
checkInDate Req. String Required check-in date.
checkInTime Req. String Required check-in time.
checkOutDate Required String Required check-out date.
checkOutTime Req. String Required check-out time.
clockInDate Req. String Actual clock-in date.
clockInTime Req. String Actual clock-in time.
clockInSource Req. Integer Actual clock-in source: 0-unknown, 1-
original record, 2-correction
application, 3-check-in/out via mobile
client, 4-check-in/out not required.
clockInDevice Req. String Actual clock-in device name.
clockInArea Req. String Actual clock-in area name.
clockOutDate Req. String Actual clock-out date.
clockOutTime Req. String Actual clock-out time.
clockOutSource Req. Integer Actual clock-out source: 0-unknown,
1-original record, 2-correction
application, 3-check-in/out via mobile
client, 4-check-in/out not required.
clockOutDevice Req. String Actual clock-out device name.
clockOutArea Req. String Actual clock-out area name.
attendanceStatus Req. Integer Attendance status: 1-normal, 2-late,
3-early leave, 4-late and early leave,
5-absense, 6-leave.
workDuration Req. String Work hours.
absenceDuration Req. String Absence duration.
lateDuration Req. String Late duration.
earlyDuration Req. String Early leave duration.

284
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Parameter Name Req. or Opt. Data Type Description


breakDuration Req. String Break duration.
leaveDuration Req. String Leave duration.
overtimeDuration Req. String Overtime duration.
workdayOvertime Req. String Weekday overtime duration.
Duration
weekendOvertim Req. String Weekend overtime duration.
eDuration

A.3.144 User
The table here shows the user information.

Parameter Name Data Type Description


ID String User ID.
name String User name.

A.3.145 VehicleInfo(1)
The table here shows the vehicle information.

Parameter Req. or Opt. Data Type Description


id Opt. String Vehicle ID.
licensePlateNo Req. String License plate No.
vehicleType Req. Integer Vehicle type: 0-others, 1-car, 2-truck,
3-bus.
driverFirstName Opt. String Driver's first name.
driverLastName Opt. String Driver's last name.
driverPhoneNo Opt. String Driver's phone No.
pictureUrl Opt. String Vehicle picture URL.
extend Opt. String Annotations.
speedLimit Req. Integer Speed limit (cm/h).

285
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

A.3.146 VehicleInfo(2)
The table here shows the vehicle information.

Parameter Name Req. or Opt. Data Type Description


licensePlateNo Req. String License plate No.
id Req. String Vehicle ID.
speedLimit Req. Integer Speed limit (cm/h).
driverInfos Opt. DriverInfo [] Driver information list.

A.3.147 VehicleInfo(3)
The table here shows the vehicle information.

Parameter Name Req. or Opt. Data Type Description


vehicleID Opt. (Req.) String Vehicle ID, the only required parameter to be entered
when you link on-board devices with existing
vehicles. If the vehicle ID is not empty, linking with
the existing vehicle will be prior to adding a new
vehicle.
licensePlateNo Opt. (Req.) String License plate No., required with the optional
parameters below for adding new vehicles to be
linked with on-board devices.
vehicleType Opt. Integer Vehicle type: 0-others, 1-car, 2-truck, 3-bus.
driverFirstName Opt. String Driver's first name.
driverLastName Opt. String Driver's last name.
driverPhoneNo Opt. String Driver's phone No.
pictureKey Opt. String Vehicle picture key.
extend Opt. String Annotations.

A.3.148 VehicleRelatedInfo
The table here shows the information of vehicles linked with on-board devices.

286
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Parameter Name Req. or Opt. Data Type Description


gpsInfo Opt. GPSInfo GPS-related information.
vehicleInfo Opt. VehicleInfo(2) Vehicle-related information.

A.4 Status and Error Code

Internal Errors

Error Code Error Description Debug Suggestion


CCF000001 Parameter error. Compare documents to check if the
parameter is correct.
CCF000004 Database operation failed. Check the database operation.
CCF000005 No permission to operate Check your permissions.
this resource.
CCF000007 Internal calling failed. Check request parameters
according to the error message.
CCF038002 Name length exceeded Adjust name length.
limit.
CCF038005 Name cannot contain Remove special characters.
special characters.
CCF038007 User is not assigned with Contact the platform to check
the access level. person's access level.
CCF038009 Person group does not Person group does not exist.
exist.
CCF038014 Invalid first name of Check and edit the first name of
person. person.
CCF038015 Invalid family name of Check and edit the family name of
person. person.
CCF038016 Invalid person ID. Check person 's personCode.
CCF038017 Invalid person's full name. Check person's full name.
CCF038019 Invalid person email. Check email.
CCF038020 Invalid person's phone No. Check phone No.

287
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Error Code Error Description Debug Suggestion


CCF038021 Invalid person's Check person's description.
description.
CCF038022 Invalid person's validity. Check person's validity.
CCF038023 Person does not exist. Person does not exist.
CCF038024 Person ID already exists. Check person 's personCode.
CCF038025 Person ID does not exist. Check person 's personCode.
CCF038026 Person's picture does not Check person's picture.
exist.
CCF038028 Saving person's picture Check if the picture information is
failed. correct.
CCF038029 No more persons are Check the number of added
allowed. persons (free:100, fee-paying:
50,000.
CCF038031 Adding person failed. Check all information of added
persons.
CCF038032 No more cards for a person Check the number of cards for a
are allowed. person (max. 2).
CCF038034 Duplicate card No. Duplicate card No.
CCF038035 Card does not exist. Card does not exist.
CCF038036 Card No. length exceeded Card No. length exceeded limit.
limit.
CCF038037 Card No. is empty Check if empty string is entered for
card No.
CCF038038 Invalid card No. Check if card No. meets the
requirement.
CCF038039 No more fingerprints for a Check the number of fingerprints
person are allowed. for a person (max. 2).
CCF038042 Fingerprint does not exist. Fingerprint does not exist.
CCF038052 Email address already exist Email address already exist.
(remote calling error code).
CCF038055 Duplicate person's PIN Set PIN code again.
code.

288
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Error Code Error Description Debug Suggestion


CCF038059 Updating card failed. Check the card data.
CCF038060 Updating fingerprint failed. Check the fingerprint data.
CCF038061 Updating additional Check if the PIN code configuration
attribute failed. is appropriate. Modify the PIN code
and try again.
CCF038062 Updating picture failed. Check the picture data.
CCF038064 No matched department Check if search condition is valid.
by search condition.
CCF038065 Device does not exist. Check if the device is on the
platform.
CCF038066 Fingerprint data length Check fingerprint data length.
exceeded limit.
CCF038067 Duplicate fingerprint. Check fingerprint.
CCF038068 Duplicate profile picture. Check profile picture.
CCF038084 Collecting card No. by Check if the device is on the
device failed. platform.
CCF038085 Collecting fingerprint by Check if the device is on the
device failed. platform.
CCF038089 Phone No. has been Check the phone No.
occupied.
CCF021103 Area name already exists. Modify the area name.
CCF021307 Device does not exist. Device does not exist.
CCF021008 Not supported by current Check if the device supports the
device version. function.
EVZ20002 Device does not exist. Incorrect device registration region
or the device does not exist. Please
enter the correct device serial
number.
EVZ20007 Device offline. Device offline. Please check its
network connection.
EVZ20008 Device response timed out. Device response timed out.

289
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Error Code Error Description Debug Suggestion


EVZ20010 Incorrect device Incorrect device verification code.
verification code. Please check the device verification
code and try again.
EVZ20013 The device has been added The device is already added to a
by another account. Hik-Connect account or another
Hik-ProConnect account.
EVZ20014 Incorrect device serial No. Incorrect device serial number.
Please check the device serial
number and try again.
EVZ20017 The device has been added The device has been added by
by yourself. yourself.
LAP000001 Parameter error. Check API parameters.
LAP000004 Service calling blow Calling timed out. Please call again.
exception.
VMS000000 System error. /
VMS000001 Parameter error. Check API parameters.
VMS000003 No resource found or Check if resource exists.
resource does not exist.
VMS000004 Database operation failed. Check the database operation.
VMS000005 No permission to operate Apply for permission to operate the
this resource. resource.
VMS000007 Internal calling failed. Check the system environment.
VMS000008 Redis operation failed. Check if Redis is normal or check if
the request sent to Redis is correct.
VMS000009 Concurrent requests Please try again later, or check if
(distributed lock is the distributed operations are
enabled). locked.
VMS001000 Gateway error. Please try again later, or check if
the gateway is normal.
VMS001001 Service instance Please try again later, or check if
unavailable. Service is the network is normal.
overloaded.

290
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Error Code Error Description Debug Suggestion


VMS003001 This email has been Please register with another email.
registered on the platform.
VMS003002 The user does not exist. Check if the user exists or apply for
a new user account.
VMS004004 Invalid role ID. Check the role ID.
VMS004005 No permission. Apply for the corresponding
permission.
VMS020007 Get information from Hik- Check if the device is offline or the
Connect. registration failed.
VMS021008 The device version is not Check the device version or change
supported. to another device.
VMS021102 The area already exists. Check if the area already exists.
VMS021103 The area name already Change the area name.
exits.
VMS021104 No more areas can be Delete some areas or cancel adding
added. areas.
VMS021105 Maximum area levels Switch the area level.
reached.
VMS021106 No more logical resources Delete some logical resources from
can be added to the VMS the VMS system or cancel adding
system. logical resources to the VMS
system.
VMS021107 No more logical resources Delete some logical resources from
can be added to the area. the area or cancel adding logical
resources to the area.
VMS021108 Duplicate license plate No. License plate No. already exists.
VMS021109 Device already linked with Device already linked with another
another vehicle. vehicle.
VMS021301 Adding the device... Please try again later.
VMS021302 The device has been Check if the device has been
added. added.
VMS021303 The device already exits in Check if the device already exists in
the system. the system.

291
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Error Code Error Description Debug Suggestion


VMS021305 The device name already Change the device name.
exists.
VMS021306 Adding the device timed Please try again later.
out.
VMS021307 The device does not exist. Check if the device exists.
VMS021308 Refreshing the device... Please try again later.
VMS021309 Incorrect device type. Check the device type.
VMS021311 No more devices can be Delete some devices or cancel
added. adding devices.
VMS021314 Device offline. Check if the device is online.
VMS021315 Invalid serial No. Check if the serial No. is valid.
VMS021316 The device belongs to Check if the device belongs to
another user. yourself.
VMS021337 Importing resource failed. Importing resource failed for
adding device.
VMS023001 Sending the email failed. Please try again later.
VMS023002 Duplicate color. Please try again later.
VMS023003 The priority name already Change the priority name.
exits.
VMS023004 The alarm category name Change the alarm category name.
already exists.
VMS023005 The email template name Change the email template name.
already exists.
VMS023006 The system email is not Configure the system email first.
configured.
VMS023007 Repeatedly acknowledging Check if the alarm is
the alarm. acknowledged.
VMS023008 The alarm configuration Check if the alarm configuration
already exists. already exists.
VMS038005 Number of persons in the Check if the number of persons in
room exceeds limit. the room exceeds the limit.

292
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Error Code Error Description Debug Suggestion


VMS038009 Adding person failed. This error message will be sent by
the person group when the
employee ID is not obtained by the
internal protocol.
VMS038011 Wrong person type added Check if a householder is added to
to the room. a room with an existing
householder or a family member is
added to a room without a
householder.
VMS038012 No permission for adding Check if the person who wants to
persons to the room. add persons is the householder.
VMS038014 Resident already in the The resident is already in the room.
room.
VMS038019 The calling record does not Check the calling record ID.
exist.
VMS038026 Email address already Email address already exists.
exists.
VMS038027 Call answered. Call answered.
VMS038028 Resident does not exist. Resident does not exist.
VMS038029 Call from device canceled. Call from device canceled.
VMS040002 Duplicate name. Edit name.
VMS040003 Name length exceeded Edit name.
limit.
VMS040004 Name is empty Edit name.
VMS040005 Name contains special Edit name.
characters.
VMS040011 No more access schedule Delete access schedule templates.
templates are allowed.
VMS040012 The default schedule Do not modify the default schedule
template cannot be template.
modified
VMS040013 No more access levels are Delete access levels.
allowed on the platform.

293
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Error Code Error Description Debug Suggestion


VMS040014 No more holidays are Delete holiday schedules.
allowed.
VMS040015 Select at least one access The access point parameter cannot
point. be empty.
VMS040016 Access level does not exist. Check if the access point exists.
VMS040017 No more than 4 access No more than 4 access schedules
schedules can be linked can be configured for a single
with one person for an person on a single device.
access point.
VMS040018 No valid credential for the Check credential information for
person. the person.
VMS040020 The current device is in Wait for the current applying to
applying process... Please finish.
try again later.
VMS040101 No more schedule Delete schedule templates on
templates are allowed on device.
device.
VMS040102 No more holiday groups Delete holiday group schedules on
are allowed on device. device.
VMS040103 No more holidays are Delete holiday schedules on device.
allowed on device.
VMS040104 No more weekly schedules Delete weekly schedules on device.
are allowed on device.
VMS040105 Access group settings are Please contact technical support.
not applied to device.
VMS040106 Fingerprint length
mismatch.
VMS040107 No valid card reader for the
fingerprint currently.
VMS040108 Applying fingerprint failed. Please contact technical support.
VMS040109 Fingerprint module offline
VMS040110 Quality of fingerprint is
low.

294
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Error Code Error Description Debug Suggestion


VMS040111 No more fingerprints are
allowed on card reader.
VMS040112 Duplicate fingerprint.
VMS040113 Duplicate fingerprint ID.
VMS040114 Invalid fingerprint ID.
VMS040115 Fingerprint module does
not require configuration.
VMS040116 Device does not support
applying fingerprints
VMS040117 Fingerprint card reader
version too old (employee
No. not supported).
VMS040118 Fingerprint type not
supported.
VMS040119 No valid card reader for the
face picture currently.
VMS040120 Visit schedule template
does not exist.
VMS040121 Password length mismatch.
VMS040122 The current device only
supports 6-digit password.
THD_ISAPI_0x20000004 Device busy. During fingerprint or card
collecting, if the fingerprint or card
information are not entered in the
request, this error will occur. Please
collect information in the regular
course.
THD_ISAPI_0x60000003 XML message error (e.g., Please contact technical support.
incorrect value of node).
THD_ISAPI_0x60000017 JSON message error. Please contact technical support.
THD_ISAPI_0x60000019 Missing parameters in the Please contact technical support.
message.

295
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Error Code Error Description Debug Suggestion


THD_ISAPI_0x6000001C Containing invalid
characters.
THD_ISAPI_0x6000001D Name too long.
THD_ISAPI_0x60000025 The parameter value
exceeded limit.
THD_ISAPI_0x6000002D Number of face picture
libraries exceeded limit.
THD_ISAPI_0x6000002E Number of face pictures
exceeded limit.
THD_ISAPI_0x6000002F Picture data detection
failed.
THD_ISAPI_0x60000030 Invalid face picture data
PID.
THD_ISAPI_0x60000031 Invalid face picture library
ID.
THD_ISAPI_0x60000032 Data library version of face
picture library mismatch.
THD_ISAPI_0x60000033 Incorrect verification code.
THD_ISAPI_0x60000034 Face picture library data
error.
THD_ISAPI_0x60000035 Multi-​face target error
(multiple valid targets exist
among pictures imported
to face picture library, and
are not differentiated by
coordinates).
THD_ISAPI_0x60000036 No target detected in the
picture.
THD_ISAPI_0x60000037 Sub-picture modeling
failed.
THD_ISAPI_0x60000038 Incorrect name.
THD_ISAPI_0x60000039 Name already exists.

296
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Error Code Error Description Debug Suggestion


THD_ISAPI_0x6000003A Importing pictures to face
picture library...
THD_ISAPI_0x6000003B Invalid picture format.
THD_ISAPI_0x6000003C Invalid picture resolution.
THD_ISAPI_0x6000003D Picture size too large.
THD_ISAPI_0x6000003E Picture size too small.
THD_ISAPI_0x6000005F The maximum length of
password is 16.
THD_ISAPI_0x60000060 Password mismatch.
THD_ISAPI_0x60000063 Deleting failed.
THD_ISAPI_0x60000068 No data returned from face
picture comparison search.
THD_ISAPI_0x60000069 No data returned from face
picture library search.
THD_ISAPI_0x6000006A Concurrent processing is
not supported. The device
is performing operation of
picture modeling.
THD_ISAPI_0x6000006B No data to be modeled in
face picture library.
THD_ISAPI_0x6000006C The upper layer applied
duplicate custom face
picture library ID.
THD_ISAPI_0x6000006D The upper layer applied
duplicate custom person
ID.
THD_ISAPI_0x6000006E Dowloading URL failed.
THD_ISAPI_0x6000006F Dowloading URL not
started yet.
THD_ISAPI_0x60000071 Internal device modeling
error.
THD_ISAPI_0x60000072 Face picture modeling
error.

297
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Error Code Error Description Debug Suggestion


THD_ISAPI_0x60000073 Face picture categorization
error.
THD_ISAPI_0x60000074 Face feature modeling
error.
THD_ISAPI_0x60000075 Face picture analysis
modeling error.
THD_ISAPI_0x60000082 Pupil distance parameter
error (the min. value is
larger than the max. value,
or the configured max.
value is smaller than the
min value).
THD_ISAPI_0x60000083 Duplicate alarm linkage
name.
THD_ISAPI_0x60006000 Overlapped time periods.
THD_ISAPI_0x60006001 Overlapped holiday
schedules.
THD_ISAPI_0x60006002 Card No. is not sorted in
order.
THD_ISAPI_0x60006003 Card No. does not exist.
THD_ISAPI_0x60006004 Incorrect card No.
THD_ISAPI_0x60006008 No more cards are allowed.
THD_ISAPI_0x60006009 Downloading holiday group
failed.
THD_ISAPI_0x60006014 Multiple cards for a single
person is not supported.
THD_ISAPI_0x60006015 Face picture to be deleted
does not exist.
THD_ISAPI_0x60006019 Incorrect finger No.
THD_ISAPI_0x6000601a Incorrect fingerprint type.
THD_ISAPI_0x6000601b Fingerprint is not linked
with employee No. or card

298
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Error Code Error Description Debug Suggestion


No. (the employee No. or
card No. field is empty).
THD_ISAPI_0x6000601c Fingerprint already exists.
THD_ISAPI_0x6000601d Fingerprint module does
not require configuration.
THD_ISAPI_0x6000601e Card reader does not
support deleting
fingerprint by pressing
fingerprint ID.
THD_ISAPI_0x6000601f Employee No. does not
exist.
THD_ISAPI_0x60006020 Employee No. already
exists.
THD_ISAPI_0x60006033 Card No. already exists.
THD_ISAPI_0x60006034 The length of fingerprint
data is 0.
THD_ISAPI_0x60006035 Incorrect card reader No.
THD_ISAPI_0x60006036 Incorrect employee No.
THD_ISAPI_0x60006039 Admin password not
configured yet (for
prompting on configurating
activation code on device).
THD_ISAPI_0x6000603a Picture does not exist.
THD_ISAPI_0x6000603b Ocular distance too narrow.
THD_ISAPI_0x6000603c Face picture data less than
1 KB.
THD_ISAPI_0x6000603d Picture information
verification failed.
THD_ISAPI_0x6000603e Face rating failed.
THD_ISAPI_0x6000603f Converting QR code picture
failed.

299
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Error Code Error Description Debug Suggestion


THD_ISAPI_0x60006040 Number of fingerprints
reached limit.
THD_ISAPI_0x60007000 Number of persons
reached limit.

openAPI Errors

Error Code Error Description Debug Suggestion


OPEN000000 System internal errors. /
OPEN000001 The AK does not exist. Check if the AK is correct.
OPEN000002 Incorrect SK. Check if the SK is correct.
OPEN000003 The user does not exists. Check if the user exists.
OPEN000004 The system does not exist. Check if the system exists.
OPEN000005 Linking the HCC account with Check the parameters or try
the AK and SK failed. again later.
OPEN000006 Token expired. Please try again later.
OPEN000007 Token exception. Check if the token is correct.
OPEN000008 Parameter conversion Check the parameters.
exception.
OPEN000009 Network exception. Please try again later.
OPEN000010 Parameter verification Check the parameters.
exception.
OPEN000011 The requested resources are Check if the requested
not available yet. resources are available.
OPEN000012 The message submission ID Check the submission ID or try
(batchId) does not exist. again later.
OPEN000013 The alarm offset AK does not Check the alarm offset AK or
exist. try again later.
OPEN000014 Incorrect format of alarm Check the format of alarm
picture URL. picture URL or try again later.
OPEN000015 Alarm message conversion Please try again later.
failed.

300
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Error Code Error Description Debug Suggestion


OPEN000016 The alarm information is not Check if the alarm information
subscribed. is subscribed.
OPEN000017 Adding resource failed. Adding resource failed.
OPEN000018 Hik-Connect server error. Hik-Connect server error.
OPEN000019 Hik-Connect server response Hik-Connect server response
error. error.
OPEN000020 Saving file failed. Saving file failed.
OPEN000021 No permission for viewing the No permission for viewing the
resource resource
OPEN000022 No permission for managing No permission for managing
the source. the source.
OPEN000023 Reading Dynamo failed. Reading Dynamo failed.
OPEN000024 Number of resources for Reduce the number of
request exceeded limit. resources for request.
OPEN000025 Number of records on each The number of records on each
page exceeded limit. page should be from 1 to 500.
OPEN000026 Incorrect time format. The time should be
represented by "yyyy-MM-
ddTHH:mm:ss".
OPEN000027 The time range set for search The time range for search
exceeded limit. should be no more than a day.
OPEN000028 Area ID is empty. Enter an area ID.
OPEN000029 Incorrect request volume. Check the parameter
description.
OPEN000030 Start time of search is later Set the start time of search
than end time of search. earlier than the end time of
search.
OPEN000031 Area does not exist. Check if areaID is correct.
OPEN000501 Device does not exist. Check if the input parameter is
correct.
OPEN000502 Cloud storage configuration Check if cloud storage is
information not found. configured.

301
Hik-Connect for Teams (HikCentral Connect) OpenAPI Developer Guide

Error Code Error Description Debug Suggestion


OPEN000503 Camera resource does not Check if the input resource
exist. request parameter is correct.
OPEN000504 Adding area failed. Check the parameter according
to error information.
OPEN000505 Adding resource failed. Check the parameter according
to error information.
OPEN000510 Area already exists. Edit area name.
OPEN000511 Resource already exists. Do not add the same resource
twice.
OPEN000550 No response to request. Check if the device supports
this function.
OPEN000552 Error returned from request. Troubleshoot according to
error information.
OPEN000554 Device offline. Check the device status.
OPEN000555 Device response timed out. Check if the device supports
this function.
OPEN000556 Device capturing failed. Check the device status and if
the device supports this
function.

302
UD37561B

You might also like