Hikcentral Professional Openapi Developer Guide
Hikcentral Professional Openapi Developer Guide
Developer Guide
HikCentral Professional OpenAPI Developer Guide
Legal Information
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
HikCentral Professional 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.
ii
HikCentral Professional OpenAPI Developer Guide
Contents
Chapter 1 Overview .................................................................................................................... 1
1.1 Introduction ........................................................................................................................... 1
1.2 System Requirements ............................................................................................................ 1
1.3 Open Capabilities ................................................................................................................... 1
1.4 Terms and Definitions ............................................................................................................ 2
1.5 Update History ....................................................................................................................... 3
Chapter 2 Getting Started ......................................................................................................... 11
2.1 Installation ........................................................................................................................... 11
2.2 Configuration ....................................................................................................................... 14
2.2.1 Authenticate Service Certificate ................................................................................. 14
2.2.2 Enable Open Platform ................................................................................................. 15
2.3 Run Open Platform .............................................................................................................. 16
Chapter 3 Protocol Summary .................................................................................................... 19
3.1 Request and Response Rule ................................................................................................. 19
3.1.1 Request ....................................................................................................................... 19
3.1.2 Response ..................................................................................................................... 20
3.2 Signature and Authentication .............................................................................................. 22
Chapter 4 Typical Applications .................................................................................................. 26
4.1 Common Application ........................................................................................................... 26
4.1.1 Capability Description ................................................................................................. 26
4.1.2 Programming Guide .................................................................................................... 26
4.2 Resource Management ........................................................................................................ 27
4.2.1 Capability Description ................................................................................................. 27
4.2.2 Programming Guide .................................................................................................... 28
4.2.3 Restrictions and Suggestions ...................................................................................... 44
4.3 Event and Alarm ................................................................................................................... 44
iii
HikCentral Professional OpenAPI Developer Guide
iv
HikCentral Professional OpenAPI Developer Guide
v
HikCentral Professional OpenAPI Developer Guide
vi
HikCentral Professional OpenAPI Developer Guide
vii
HikCentral Professional OpenAPI Developer Guide
viii
HikCentral Professional OpenAPI Developer Guide
ix
HikCentral Professional OpenAPI Developer Guide
x
HikCentral Professional OpenAPI Developer Guide
xi
HikCentral Professional OpenAPI Developer Guide
xii
HikCentral Professional OpenAPI Developer Guide
xiii
HikCentral Professional OpenAPI Developer Guide
Chapter 1 Overview
1.1 Introduction
HikCentral Professional is a platform that provides the open capabilities and APIs of video, alarm,
ANPR (Automatic Number Plate Recognition), and so on, for the third-party manufacturers or
developers to fast integrate different applications.
Note
The system requirements of Open Platform is same as that of HikCentral Professional.
1
HikCentral Professional OpenAPI Developer Guide
Term Description
OpenAPI The publicly available application programming interface that
provides developers with programmatic access to a proprietary
software application or web service.
HikCentral Professional A platform for security video management.
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 The supplemental data at the beginning of a data block. For
example, "Accept:text/plain".
URL Uniform Resource Locator, which is colloquially termed a web
address, and is a reference to a web resource that specifies its
location on a computer network and a mechanism for retrieving
it.
query A precise request for information retrieval with database and
information systems.
appKey\appSecret A pair of appKey or appSecret is used to mark the caller, and the
appSecret is as a key for signature calculation.
AK Access Key, which relates with the private access key. They are
used in pair to encrypt the signature in the request.
SK Secret Access Key, which is used to mark the sender and prevent
the request from being modified during signature encryption.
SMS Stream Media Server, which supports RTSP and is used to
forward stream to up to 200 channels. It is also like a security
gateway in multi-channel scene.
RTSP Real Time Streaming Protocol, which is a network control
protocol designed for use in entertainment and communications
systems to control streaming media servers. The protocol is used
for establishing and controlling media sessions between end
points. Clients of media servers issue VHS-style commands, such
as play, record and pause, to facilitate real-time control of the
2
HikCentral Professional OpenAPI Developer Guide
Term Description
media streaming from the server to a client (Video On Demand)
or from a client to the server (Voice Recording).
RTP Real-time Transport Protocol, which is a network protocol for
delivering audio and video over IP networks.
3
HikCentral Professional OpenAPI Developer Guide
4
HikCentral Professional OpenAPI Developer Guide
5
HikCentral Professional OpenAPI Developer Guide
6
HikCentral Professional OpenAPI Developer Guide
7
HikCentral Professional OpenAPI Developer Guide
10. Added a parameter timeZone for AcsDevInfo , EncodeDevInfo and MobileDeviceInfo : added
an object description TimeZoneInfo accordingly.
11. Added a parameter vehicleDirectionType for PassVehicleRecord .
12. Added AIOP event and HEOP event to camera alarms.
8
HikCentral Professional OpenAPI Developer Guide
9
HikCentral Professional OpenAPI Developer Guide
10
HikCentral Professional OpenAPI Developer Guide
2.1 Installation
The Open Platform can be installed with the HikCentral Professional in a same computer or server
(i.e., centralized mode) or in different computers or servers (i.e., distributed mode).
Before You Start
● Make sure you have prepared the proper system environment and installed the HikCentral
Professional.
Note
The compatible versions include version 2.0/2.1/2.2 of HikCentral Professional and version
1.0/1.1 of HikCentral Professional Access Control.
● Make sure you have enabled the License of Third-Party Integration function, see details in the
figure below.
11
HikCentral Professional OpenAPI Developer Guide
12
HikCentral Professional OpenAPI Developer Guide
Steps
1. Run the executable program HikCentral Professional_OpenAPI.exe as an administrator to enter
the welcome panel of the InstallShield Wizard.
2. Click Next to start the InstallShield Wizard.
3. Read the License Agreement.
- Click I accept the terms of the license agreement and continue.
- Click I do not accept the terms of the license agreement to cancel the installation.
4. Click Next.
5. Perform one of the following operations according to the centralized or distributed installation
mode.
Note
If the event or alarm uploading frequency is larger than 100 times per second, you should adopt
the distributed installation mode.
- For centralized installation mode, click Next to continue.
Note
The default directory C:\Program Files (x86)\HikCentral Professional\VSM Servers\OpenAPI is
used.
- For distributed installation mode, click Change... and select a proper directory as desired to
install the Open Platform.
6. Click Next to continue.
7. Read the pre-install information, and click Install to begin the installation.
A panel indicating progress of the installation displays.
8. Read the post-install information and click Finish to complete the installation.
Four services, i.e., OpenAPI Translation Service, artemis, artemis-web, and artemis-portal, are
generated. And the following documents and software development kits will appear under the
installation directory.
13
HikCentral Professional OpenAPI Developer Guide
2.2 Configuration
After installing the services of Open Platform, some configurations should be done to make it
running normally. Especially for the distributed installation mode, the service certificate must be
authenticated. And also, switching the integration mode of HikCentral Professional and enabling
the Open Platform are required.
14
HikCentral Professional OpenAPI Developer Guide
15
HikCentral Professional OpenAPI Developer Guide
Note
The default management port No. is 8208.
5. Check the checkbox to select a partner user.
6. Click Save.
16
HikCentral Professional OpenAPI Developer Guide
Note
The user names of Open Platform and HikCentral Professional are independent, the default user
name of Open Platform is "admin", and the initial password is "admin@123". For the first time
login, you must change the password.
4. Click log in to log in to the Open Platform.
5. Create a partner.
1) Click Partner Management at the left panel.
2) Click Create a partner to enter Create Partner panel.
17
HikCentral Professional OpenAPI Developer Guide
Note
If the domains of the third-party platform and HikCentral Professional are different, you
should an extension field to set the domain information.
5) Click Create to save the added partner information.
The created partner displays on the Partner Management panel. Click on the partner name to
view the details, including APPkey and APPsecret, which are for authentication and marking
the encrypted request.
6) Select a partner and click Authentication in the operating column of the selected partner
item.
Note
The third-party partner should enter the debug page via the web site https://IPaddress/
artemis-portal.
3) Enter the request URL, request parameters, and authentication information (the APPkey and
APPsecret are returned after creating partner) to start the test.
If the request URL is available, the corresponding response message will be returned.
18
HikCentral Professional OpenAPI Developer Guide
3.1.1 Request
The request for executing a task contains HTTP method, request URL, and request message.
HTTP Method
The POST method is used to execute different tasks in this manual.
Request URL
The format of request URL is defined as "<protocol>://<serverAddress>[:serverPort][absolutePath?
[query]]". For example, https://10.26.31.41:443/artemis/api/example?
qa=value1&qb=value2&qc=value3.
protocol
Required, protocol type, here in this manual, it always be "https".
serverAddress
Required, domain name or IP address of the platform, i.e., "10.26.31.41" in the above URL
example.
serverPort
Optional, web access port No. of the platform, i.e., "403" in the above URL example. If this field is
not configured, it will use the default port No.
absolutePath
Required, the absolute path of resources for identifying, and it is a part of URI (Uniform Resource
Identifier), i.e., "/artemis/api/example" in the above URL example.
query
Optional, parameters for describing the resource, and it is the other part of URI (Uniform
Resource Identifier), i.e., "qa", "qb", and "qc" in the above URL example.
Note
The URI is a uniform resource identifier for distinguishing different resource types, which consists
of absolutePath and query, i.e., "/artemis/api/example?qa=value1&qb=value2&qc=value3" in the
above URL example. Sometime, the URI will replace the URL to simplify the description.
19
HikCentral Professional OpenAPI Developer Guide
Request Message
The request message is in JSON format and encoded by UTF-8 rule. It consists of multiple input
parameters, and the parameters are named by camel case.
3.1.2 Response
The response returned after calling API contains response message and status or 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.
Example
Response of Calling Failed
20
HikCentral Professional OpenAPI Developer Guide
{
"code": "0x02401006",
"msg": "Token Exception.",
"data":""
}
Example
Response of Single Data Item
{
"code":"0",
"msg":"xxxxxx",
"data":{
"userId": xxxxxx,
"name": "xxxxxx",
…
}
}
Example
Response of Paged Batch Data
{
"code":"0",
"msg":"xxxxxx",
"data":{
"total":5,
"pageSize":20,
"pageNo": 1,
"list": [{
"userId": xxxxxx,
"name": "xxxxxx",
…
},
{
"userId": xxxxxx,
"name": "xxxxxx",
…
}]
}
}
Example
Response of Batch Data without Paging
{
"code":"0",
"msg":"xxxxxx",
"data":{
"total":5,
"list": [{
"userId": xxxxxx,
21
HikCentral Professional OpenAPI Developer Guide
"name": "xxxxxx",
…
},
{
"userId": xxxxxx,
"name": "xxxxxx",
…
}]
}
}
Signature String
The signature string before calculating consists of HTTP method, headers, and URI, which is defined
as below.
HTTP METHOD "\n"
Accept "\n"
Content-MD5 "\n"
Content-Type "\n"
Date "\n"
Headers
Uri
HTTP METHOD
The HTTP method must be upper-case, e.g., "POST".
Accept
Setting Accept header is suggested. As for some HTTP clients, if Accept is not configured, the
default value: */* will automatically be assigned to it, which may cause the failure of signature
verification.
Content-MD5
The Content-MD5 is the value of digest calculated by MD5 algorithm in the request body and
processed by BASE64 algorithm, and the body must be on non-form format. E.g., String content-
MD5=Base64.encodeBase64(MD5(bodyStream.getbytes("UTF-8"))).
Content-Type
Content format, such as "text/plain", "text/xml", and "text/json".
Date
Signature date and time.
Headers
22
HikCentral Professional OpenAPI Developer Guide
Note
The following headers will not be calculated in the signature: X-Ca-Signature, X-Ca-Signature-
Headers, Accept, Content-MD5, Content-Type, Date, Content-Length, Server, Connection, Host,
Transfer-Encoding, X-Application-Context, and Content-Encoding.
X-Ca-Timestamp
Optional, time stamp of calling API, the value equals to the number of milliseconds calculated
from 00:00:00 on 1st., Jan., 1970 to the current time. E.g., x-ca-timstamp:1550153182830.
X-Ca-Nonce
Optional, UUID generated when calling API, which is used with the time stamp for anti-replay.
Uri
Uniform resource identifier, which consists of resource absolute path and query parameters, e.g.,
"/artemis/api/example?qa=value1&qb=value2&qc", or "/artemis/api/example".
Note
Each header should end with "\n", but if the Accept, Content-MD5, Content-Type, or Date header
does not exist, "\n" is not required.
23
HikCentral Professional OpenAPI Developer Guide
a-header:value \n
b-header:value \n
x-ca-key:1231243298 \n
x-ca-timestamp:1479956865000 \n
/artemis/api/example?a-bodyform=value&a-query=value&b-query=value
Signature Calculation
1. Calculate the signature string by HmacSHA256 algorithm with the appKey or appSecret to
generate message digest.
2. Calculate the message digest by BASE64 algorithm to generate the signature.
Note
During the signature calculation, the encoding format is UTF-8.
24
HikCentral Professional OpenAPI Developer Guide
header-a:A\n
header-b:b\n
x-ca-key:29666671\n
x-ca-timestamp:1479968678000\n
/artemis/api/example?a-body=a&qa=a&qb=B&x-body=x
/*signature information*/
XeBEg2Ifh+FOfeProHLMYz8luWkJ00Exx7N7tJuats8=
Example
Sample Flow of Signature and Authentication
25
HikCentral Professional OpenAPI Developer Guide
26
HikCentral Professional OpenAPI Developer Guide
27
HikCentral Professional OpenAPI Developer Guide
28
HikCentral Professional OpenAPI Developer Guide
29
HikCentral Professional OpenAPI Developer Guide
30
HikCentral Professional OpenAPI Developer Guide
31
HikCentral Professional OpenAPI Developer Guide
Note
For RSM scenario, call POST /artemis/api/resource/v1/site/siteList , or POST /artemis/api/
resource/v1/site/advance/siteList to get the site list; call POST /artemis/api/resource/v1/site/
indexCode/siteInfo to get the information of a single site.
32
HikCentral Professional OpenAPI Developer Guide
33
HikCentral Professional OpenAPI Developer Guide
34
HikCentral Professional OpenAPI Developer Guide
35
HikCentral Professional OpenAPI Developer Guide
Manage Persons
The person management includes the organization management, person's basic information
management, face picture management, fingerprint management, custom information
management, etc.
36
HikCentral Professional OpenAPI Developer Guide
37
HikCentral Professional OpenAPI Developer Guide
Organization Management
Function Description
Get root organization POST /artemis/api/resource/v1/org/rootOrg
information
Get information list of lower- POST /artemis/api/resource/v1/org/parentOrgIndexCode/
level organizations by parent subOrgList
organization
Get information of an POST /artemis/api/resource/v1/org/orgIndexCode/orgInfo
organization
Get information list of all POST /artemis/api/resource/v1/org/orgList
organizations
Search for organizations by POST /artemis/api/resource/v1/org/advance/orgList
condition
Add an organization POST /artemis/api/resource/v1/org/single/add
Edit an organization's POST /artemis/api/resource/v1/org/single/update
information
Delete an organization POST /artemis/api/resource/v1/org/single/delete
1. Call POST /artemis/api/resource/v1/org/single/add to add an organization.
2. Call POST /artemis/api/resource/v1/org/rootOrg to get the root organization information.
3. Call POST /artemis/api/resource/v1/org/parentOrgIndexCode/subOrgList to get information
list of lower-level organizations by parent organization; call POST /artemis/api/
resource/v1/org/orgList to get information list of all organizations; call POST /artemis/api/
resource/v1/org/advance/orgList to search for organizations by condition.
With the organization ID, call POST /artemis/api/resource/v1/org/orgIndexCode/orgInfo to get
information of a single organization.
4. (Optional) Call POST /artemis/api/resource/v1/org/single/delete / POST /artemis/api/
resource/v1/org/single/update to delete/edit organization information.
Person Management
Function API
Get persons' information POST /artemis/api/resource/v1/person/personList
Get a person's information by POST /artemis/api/resource/v1/person/personId/personInfo
person ID
Search for persons by condition POST /artemis/api/resource/v1/person/advance/personList
38
HikCentral Professional OpenAPI Developer Guide
Function API
Get person picture POST /artemis/api/resource/v1/person/picture_data
Add a person POST /artemis/api/resource/v1/person/single/add
Edit a person's information POST /artemis/api/resource/v1/person/single/update
Delete a person POST /artemis/api/resource/v1/person/single/delete
Edit information of face linked POST /artemis/api/resource/v1/person/face/update
with person
Edit information of fingerprint POST /artemis/api/resource/v1/person/fingerPrints/update
linked with person
Get person information POST /artemis/api/resource/v1/person/personCode/
according to person ID personInfo
Verify the validity of face POST /artemis/api/acs/v1/faceCheck
picture
Get the person's custom POST /artemis/api/resource/v1/person/customFields
information
Update the person's custom POST /artemis/api/resource/v1/person/personId/
information customFieldsUpdate
Add a custom field POST /artemis/api/resource/v1/person/customFields/
single/add
Delete a custom field POST /artemis/api/resource/v1/person/customFields/single/
delete
Edit the custom field POST /artemis/api/resource/v1/person/customFields/single/
modify
1. Call POST /artemis/api/resource/v1/person/single/add to add persons to the organization.
2. Call POST /artemis/api/resource/v1/person/personList or POST /artemis/api/resource/v1/
person/advance/personList to get the person information list.
3. Call POST /artemis/api/resource/v1/person/picture_data to get the person's face picture.
4. Call POST /artemis/api/resource/v1/person/personId/personInfo to get the person details by
person ID, or call POST /artemis/api/resource/v1/person/personCode/personInfo to get the
person details by person No.
5. (Optional) Delete/edit persons as needed. Call POST /artemis/api/resource/v1/person/single/
delete or POST /artemis/api/resource/v1/person/single/update to delete/edit persons
information (person No., name, gender, employee No., organization, phone No., email, face
picture, fingerprint, card, validity).
39
HikCentral Professional OpenAPI Developer Guide
6. (Optional) Edit face picture as needed. Call POST /artemis/api/acs/v1/faceCheck to verify the
face picture data, and then call POST /artemis/api/resource/v1/person/face/update to update
the face picture information.
7. (Optional) Edit fingerprint information as needed. Call POST /artemis/api/resource/v1/person/
fingerPrints/update to update the fingerprint information.
8. (Optional) Edit custom information as needed. Call POST /artemis/api/resource/v1/person/
personId/customFieldsUpdate to update the custom attributes of a specific person.
9. Call POST /artemis/api/resource/v1/person/customFields to get the list of custom fields, and
call POST /artemis/api/resource/v1/person/customFields/single/add , POST /artemis/api/
resource/v1/person/customFields/single/delete , or POST /artemis/api/resource/v1/person/
customFields/single/modify to add, delete, or edit the custom field for attribute management.
Manage Vehicles
The vehicle management includes managing vehicle lists and blocklists, for parking lot service
configuration.
40
HikCentral Professional OpenAPI Developer Guide
41
HikCentral Professional OpenAPI Developer Guide
Function API
Add a vehicle list POST /artemis/api/resource/v1/vehicleGroup/single/add
Delete a vehicle list POST /artemis/api/resource/v1/vehicleGroup/single/delete
Edit a vehicle list's information POST /artemis/api/resource/v1/vehicleGroup/single/update
Get the list of vehicle lists POST /artemis/api/resource/v1/vehicleGroup/vehicleGroupList
1. Call POST /artemis/api/resource/v1/vehicleGroup/single/add to add a vehicle list.
2. (Optional) Call POST /artemis/api/resource/v1/vehicleGroup/single/delete or POST /
artemis/api/resource/v1/vehicleGroup/single/update to delete or edit the vehicle list.
3. Call POST /artemis/api/resource/v1/vehicleGroup/vehicleGroupList to get the list of vehicle
lists.
Vehicle Management
Function API
Add a vehicle POST /artemis/api/resource/v1/vehicle/single/add
Delete a vehicle POST /artemis/api/resource/v1/vehicle/single/delete
Edit a vehicle's information POST /artemis/api/resource/v1/vehicle/single/update
Get the list of all vehicles. POST /artemis/api/resource/v1/vehicle/vehicleList
Search for vehicles by condition POST /artemis/api/resource/v1/vehicle/advance/vehicleList
Get a vehicle's information by POST /artemis/api/resource/v1/vehicle/indexCode/vehicleInfo
vehicle ID
1. Call POST /artemis/api/resource/v1/vehicle/single/add to add a vehicle to the vehicle list.
2. (Optional) Call POST /artemis/api/resource/v1/vehicle/single/delete or POST /artemis/api/
resource/v1/vehicle/single/update to delete or edit the vehicle.
3. Call POST /artemis/api/resource/v1/vehicle/vehicleList to get the list of all vehicles; call POST /
artemis/api/resource/v1/vehicle/advance/vehicleList to search for vehicles by condition; call
POST /artemis/api/resource/v1/vehicle/indexCode/vehicleInfo to get information of a specific
vehicle.
42
HikCentral Professional OpenAPI Developer Guide
Function API
Add a vehicle blocklist POST /artemis/api/vehicle/v1/vehicle/blocklist/add
Delete a vehicle blocklist POST /artemis/api/vehicle/v1/vehicle/blocklist/delete
Edit a vehicle blocklist's POST /artemis/api/vehicle/v1/vehicle/blocklist/modify
information
Get the vehicle blocklist POST /artemis/api/vehicle/v1/vehicle/blocklist/get
1. Call POST /artemis/api/vehicle/v1/vehicle/blocklist/add to add a vehicle blocklist.
2. (Optional) Call POST /artemis/api/vehicle/v1/vehicle/blocklist/delete or POST /artemis/api/
vehicle/v1/vehicle/blocklist/modify to delete or edit the vehicle blocklist.
3. Call POST /artemis/api/vehicle/v1/vehicle/blocklist/get to get the vehicle blocklist.
Wake Up Device
Wake up solar devices.
43
HikCentral Professional OpenAPI Developer Guide
1. Call Table 4-1 APIs and Table 4-9 APIs to get the information of encoding device and camera.
2. Check if the device supports the wakeup function according to isSupportWakeUp from the
obtained device information.
3. Check if the device is in sleep mode according to wakeUpStatus from the obtained device
information.
4. If the device supports wakeup function and is in sleep mode, call POST artemis/api/
resource/v1/device/indexCode/wakeUp to wake it up.
44
HikCentral Professional OpenAPI Developer Guide
45
HikCentral Professional OpenAPI Developer Guide
46
HikCentral Professional OpenAPI Developer Guide
Note
Multiple event types or alarm categories are available for subscription, refer to Event Types or
Alarm Categories for details.
4. Call POST /artemis/api/eventService/v1/eventSubscriptionView to search for the subscribed
events.
5. When events are triggered, call back the HTTP or HTTPS event receiving API. The third-party can
correspond according to the event/alarm types or resources from the callback message, e.g.,
triggering the camera capture, triggering the sounder alarm, controling alarm output, or saving
the record.
6. Optional: Call POST /artemis/api/eventService/v1/eventRecords/controlling to acknowledge
the alarm.
Note
The alarm or event receiving and alarm acknowledgment must be in different threads.
7. Call POST /artemis/api/eventService/v1/eventUnSubscriptionByEventTypes to specify the
event types or alarm categories to cancel subscribing.
Note
Subscribed events will be re-subscribed if OpenAPI service exception occurs or the service is
rebooted; events that failed to be pushed will be pushed again until it is successful, for every 24
hours.
47
HikCentral Professional OpenAPI Developer Guide
Steps
Figure 4-11 API Calling Flow of Searching for Events and Getting Pictures
1. Get related resources information, including cameras, encoding device, and access points, refer
to Resource Management for details.
2. Call one of the following APIs to search for the corresponding records.
- Call POST /artemis/api/eventService/v1/eventRecords/page to search for alarm records.
- Call POST /artemis/api/pms/v1/crossRecords/page to search for ANPR records.
- Call POST /artemis/api/acs/v1/door/events to search for card swiping records.
- Call POST /artemis/api/mobilesurveillance/v1/recordOverview to search for on-board
monitoring records.
- Call POST /artemis/api/aiapplication/v1/face/faceMatchRecord to search for face picture
comparison records.
48
HikCentral Professional OpenAPI Developer Guide
3. Get the picture URL from the searched events and call one of the following APIs to download the
corresponding picture.
- Call POST /artemis/api/eventService/v1/image_data to download the alarm picture
according to the obtained picture URL.
- Call POST /artemis/api/pms/v1/image to download the vehicle passing picture according to
the obtained picture URL.
- Call POST /artemis/api/acs/v1/event/pictures to download the access control event picture
according to the obtained picture URL.
- Call POST /artemis/api/mobilesurveillance/v1/picture_download to download the on-board
monitoring event picture according to the obtained picture URL.
- Call POST /artemis/api/frs/v1/application/picture to download the face picture according to
the obtained picture URL.
49
HikCentral Professional OpenAPI Developer Guide
50
HikCentral Professional OpenAPI Developer Guide
Video Streaming
You can get the video and audio stream, and download playback videos via standard RTSP, but
cannot play the video or audio on the OpenAPI platform. Therefore, you must develop a player for
live view, playback, and two-way audio in the Windows operating system, via the one of the
following methods:
● APIs provided by C++ or C# language SDK via RTSP.
This developer guide compares the first 3 development methods on aspects including instructions
for use, application scenarios, technical requirements, supported development language and
operating system, etc. between the web client and control client, so that the caller can select an
appropriate one as needed.
51
HikCentral Professional OpenAPI Developer Guide
Note
The C++ or C# language SDK, web plug-in, and JsDecoder only supports Windows operating system.
And the SDK can implement the functions of live view, playback, PTZ control, capturing, stream
callback, and so on, while the web plug-in and JsDecoder only provide live view and playback
functions. Refer to the HikCentral Professional Video SDK (C++) Developer Guide, HikCentral
Professional Video SDK (C#) Demo User Manual, HikCentral Professional Video WebSDK Developer
Guide, and HikCentral Professional Video JsDecoder SDK_Developer Guide for details.
52
HikCentral Professional OpenAPI Developer Guide
53
HikCentral Professional OpenAPI Developer Guide
Note
1. Cameras resource information should be recorded and live view / playback should be
configured on the platform, as the relevant APIs are not available for now.
2. Development language: C++ and C#; operating system: Microsoft Windows server 2008 or
above.
Running Environment
32/64-bit Windows 7: 32-bit IE 10 (compatible with 64-bit IE 10; 32-bit IE 10 will be started by
default in 64-bit IE 10 environment), 32/64-bit IE 11, 32/64-bit Chrome 45.0 or above, 32/64-bit
Firefox 52.0 or above.
32/64-Bit Windows 10: 32/64-bit IE 11, 32/64-bit Chrome 45.0 or above, 32/64-bit Firefox 51.0 or
above.
54
HikCentral Professional OpenAPI Developer Guide
Note
1. Generally, calling JS_DestroyWnd to destroy a plug-in window is not needed, since the window
can be destroyed internally by JS_Disconnect. In some cases, however, calling this interface is
needed. For example, when a browser needs to enable and disable playing video at any time,
you can call JS_DestroyWnd to destroy the plug-in window and disable playing, and call
JS_CreateWnd to enable playing video. JS_DestroyWnd and JS_Disconnect will deinitialize the
plug-in, thus calling JS_RequestInterface/uninit for deinitializing is not needed.
2. Touchscreen Windows operating system is not fully tested, thus not recommended.
3. Currently div tags must be used cooperatively. The iframe or browser pop-up methods are not
supported.
Running Environment
32/64-Bit Windows 7/8/10: 32/64-bit Chrome 45.0 or above, 32/64-bit Firefox 52.0 or above.
The API calling flow for download solution of non-plug-in is shown below:
55
HikCentral Professional OpenAPI Developer Guide
Note
See details of the live view / playback and two-way audio solutions in HikCentral Professional Video
JsDecoder SDK_Developer Guide.
56
HikCentral Professional OpenAPI Developer Guide
3. Call POST /artemis/api/video/v1/download to start download and get the download ID.
4. According to the returned download ID, call POST /artemis/api/video/v1/downloadURL to get
the download progress and URL of the downloaded file when the download is completed.
5. Get the downloaded file by the returned URL via web browser.
PTZ Control
After adding cameras and starting live view in HikCentral Professional, you can call the APIs
provided here to control PTZ, manage presets and patrols.
Steps
57
HikCentral Professional OpenAPI Developer Guide
Intelligent Recognition
Intelligent recognition includes applications on searching for matched faces and human bodies.
58
HikCentral Professional OpenAPI Developer Guide
59
HikCentral Professional OpenAPI Developer Guide
Note
The face information can be added from existing persons. See details in Manage Persons .
5. Call POST /artemis/api/frs/v1/face to get the face information by face comparison group.
6. Optional: Call POST /artemis/api/frs/v1/face/deletion to delete the face information from the
face comparison group. If the face information is added from existing persons in the person
management, you can choose to delete it from the organization.
60
HikCentral Professional OpenAPI Developer Guide
Camera Capture
Steps
Picture capture by camera is applicable to scenarios including but not limited to:
a. You need to specify camera for capturing pictures for initial alarm reviewing, but picture capture
is not configured for some events or alarms yet.
b. You can configure scheduled tasks and specify camera of a certain area (e.g., rack, farm, and
construction site) for capturing pictures, to observe changes of the area within a time period.
c. Any other applicable scenarios you can think of.
61
HikCentral Professional OpenAPI Developer Guide
Tag Search
Tag search is used to search for time periods when persons or vehicles are detected by camera. You
can download the recording during the time period on your developed client as evidence.
62
HikCentral Professional OpenAPI Developer Guide
Steps
63
HikCentral Professional OpenAPI Developer Guide
64
HikCentral Professional OpenAPI Developer Guide
65
HikCentral Professional OpenAPI Developer Guide
Steps
1. Call APIs from Manage Persons to get the information list of corresponding persons, where you
can perform adding, editing, or deleting persons.
2. Call POST /artemis/api/acs/v1/privilege/group to get the existing access levels of the platform
for reference.
3. Optional: Call POST /artemis/api/acs/v1/privilege/group/single/addPersons / POST /
artemis/api/acs/v1/privilege/group/single/deletePersons to assign/unassign access levels to
persons.
Note
If the access level is configured through the person group on the platform, calling POST /
artemis/api/acs/v1/privilege/group/single/addPersons is not needed.
4. Call POST /artemis/api/visitor/v1/auth/reapplication to apply persons' access level settings to
device.
5. Optional: Call POST /artemis/api/acs/v1/auth/applicationResult to get the details of access
level applying and see if the applying is successful.
Note
Besides card swiping event, you can also refer to other access control related alarms for your
development: Door Alarms and Access Control Device Alarms .
66
HikCentral Professional OpenAPI Developer Guide
Note
For the event types as the search condition, see details in Event Types or Alarm Categories .
3. Call POST /artemis/api/acs/v1/event/pictures to download URL pictures from the event.
67
HikCentral Professional OpenAPI Developer Guide
68
HikCentral Professional OpenAPI Developer Guide
69
HikCentral Professional OpenAPI Developer Guide
Note
A reservation record ID will be returned, which is used for checking in.
2. If the visitor matched with any person in the monitoring list, all matched information will be
returned and you should call POST /artemis/api/visitor/v2/appointment again with the auto-
filled information to make the reservation.
3. Call POST /artemis/api/visitor/v1/visitorConfig/automaticApproval to check whether auto
review of visitor reservation is enabled or not.
4. (Optional) Call POST /artemis/api/visitor/v2/appointment/update / POST /artemis/api/
visitor/v1/appointment/single/delete to edit/delete the visitor reservation information.
Note
When auto review of visitor reservation is enabled, you can edit the reservation information;
when it is disabled, the reservation in review cannot be edited.
5. (Optional) Call POST /artemis/api/visitor/v1/visitorapprovalflow/status to review the
reservation.
6. Call POST /artemis/api/visitor/v1/appointment/appointmentlist to search for the reservation
list.
Check In Visitor
The platform provides check-in service for both reserved visitors and unreserved visitors.
70
HikCentral Professional OpenAPI Developer Guide
Note
The difference between check-in with and without reservation is the searched reservation
information for quick filling of visitor information.
1. Call POST /artemis/api/visitor/v1/appointment/appointmentlist to get the reservation record,
or get the reservation record by reservation code.
2. According to the visitorId returned from the last step, call POST /artemis/api/visitor/v1/
registerment to match the visitorId with the information from the reservation list, for auto-
filling for quick visitor check-in.
3. (Optional) Call POST /artemis/api/acs/v1/privilege/group to search for the access group and
add the visitor to the specified access group.
4. Call POST /artemis/api/visitor/v1/auth/reapplication to apply the visitor's access level settings
to devices.
5. Call POST /artemis/api/visitor/v1/person/ID/elementDownloadDetail to search for
information of access level applying. If the access level applying failed, call POST /artemis/api/
visitor/v1/auth/reapplication again to reapply the access level.
71
HikCentral Professional OpenAPI Developer Guide
4.7 ANPR
Note
For vehicle resource management, refer to Manage Vehicles .
72
HikCentral Professional OpenAPI Developer Guide
Note
Besides the ANPR events, you can also refer to the vehicle matched event and vehicle mismatched
event in Camera Alarms .
73
HikCentral Professional OpenAPI Developer Guide
Note
For vehicle resource management, refer to Manage Vehicles .
74
HikCentral Professional OpenAPI Developer Guide
Figure 4-30 API Calling Flow of Searching for Vehicle Passing Records
1. Call POST /artemis/api/vehicle/v1/parkinglot/list to get the parking lot list.
2. Call POST /artemis/api/vehicle/v1/parkinglot/passageway/record to search for the vehicle
passing records of the specified parking lot.
3. (Optional) Call POST /artemis/api/pms/v1/image to download the vehicle pictures via the
URLs in the records.
Note
For how to receive ANPR events, refer to Programming Guide .
2. Call POST /artemis/api/pms/v1/image to download the corresponding picture.
75
HikCentral Professional OpenAPI Developer Guide
Figure 4-31 API Calling Flow of Getting Real-Time Occupancy of the Parking Spaces
1. Call POST /artemis/api/vehicle/v1/parkinglot/list to get the parking lot list.
2. Call POST /artemis/api/vehicle/v1/floor/list to get the floor list of the specified parking lots.
3. Call POST /artemis/api/vehicle/v1/floor/overview to get the occupancy of the specified floors.
4. Call POST /artemis/api/vehicle/v1/floor/parkingspace/status to get the real-time status of all
parking spaces on the specified floor.
5. According to parkingImageUrl and platenumberImageUrl in the returned parking space
information, call POST /artemis/api/pms/v1/image to download the picture.
76
HikCentral Professional OpenAPI Developer Guide
Figure 4-32 API Calling Flow of Searching for Vehicle Parking Records
1. Call POST /artemis/api/vehicle/v1/parkinglot/list to get the parking lot list.
2. Call POST /artemis/api/vehicle/v1/floor/list to get the floor list of the specified parking lots.
3. Call POST /artemis/api/vehicle/v1/parkingspace/record to get the vehicle parking records.
77
HikCentral Professional OpenAPI Developer Guide
Figure 4-33 API Calling Flow of Getting Vehicle Parking Fee Information
Enter the license plate number and call POST /artemis/api/vehicle/v1/parkingfee/calculate to get
the parking fee information of the vehicle in the current parking lot.
78
HikCentral Professional OpenAPI Developer Guide
Figure 4-34 API Calling Flow of Confirming the Payment of Parking Fee and Allow Exit
Enter the license plate number and call POST /artemis/api/vehicle/v1/parkingfee/confirm .
● Payment on exit:
○ If the vehicle is right at the barrier gate, the gate will be opened once the payment is made via
booth.
○ If the vehicle is not at the barrier gate, a pompt on absence will be be sent.
○ If the vehicle is to exit wthin the paid duration, the gate will be automatically opened on exit.
○ If the vehicle is to exit after the paid duration, extra time will be charged and the gate will be
79
HikCentral Professional OpenAPI Developer Guide
Note
● Resource Management: consistent with Table 4-6 in Manage Physical Resources .
● Video Application: consistent with Video Application .
Note
For receiving the following real-time on-board module event, refer to Event and Alarm .
● Driver status monitoring event: smoking, on the phone, fatigue driving, distracted, not buckled
up, and video tampering.
● ADAS event: front vehicle collision warning, short vehicle distance warning, lane deviation
warning, pedestrian collision warning, overspeed warning, and blind spot detection warning.
80
HikCentral Professional OpenAPI Developer Guide
Figure 4-36 API Calling Flow of Searching for Driving Event Records
1. Call POST /artemis/api/resource/v1/mobilevehicle/mobilevehicleList to get the list of vehicles
linked to on-board devices.
2. Call On-Board Monitoring Events to search for event types of vehicles linked to on-board
devices.
3. Call POST /artemis/api/mobilesurveillance/v1/recordOverview to search for event records of
vehicles linked to on-board devices.
4. Call POST /artemis/api/mobilesurveillance/v1/single/record to search for event information of
an on-board device.
81
HikCentral Professional OpenAPI Developer Guide
82
HikCentral Professional OpenAPI Developer Guide
83
HikCentral Professional OpenAPI Developer Guide
84
HikCentral Professional OpenAPI Developer Guide
85
HikCentral Professional OpenAPI Developer Guide
86
HikCentral Professional OpenAPI Developer Guide
Request URL
https://[serverAddress]:[serverPort]/artemis/api/common/v1/version
Request Parameters
Response Parameters
87
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"produceName": "HikCentral Professional",
"softVersion": "V2.1.0.0"
}
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/acsDevice/acsDeviceList
Request Parameters
Request Example
{
"pageNo": 1,
88
HikCentral Professional OpenAPI Developer Guide
"pageSize": 2
}
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"total": 4,
"pageNo": 1,
"pageSize": 2,
"list": [
{
"acsDevIndexCode": "46",
"acsDevName": "10.18.64.39",
"acsDevIp": "10.18.64.39",
"acsDevPort": "9502",
"treatyType": "hiksdk_net",
89
HikCentral Professional OpenAPI Developer Guide
"acsDevCode": "DS-K1T671TM-3XF20210308V030202ENE43116796",
"status ": 2
},
{
"acsDevIndexCode": "13",
"acsDevName": "10.18.66.112",
"acsDevIp": "10.18.66.112",
"acsDevPort": "8005",
"treatyType": "hiksdk_net",
"acsDevCode": "DS-K1T680MF-E120210303V030203ENE33392121",
"status ": 2
}
]
}
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/acsDevice/indexCode/acsDeviceInfo
Request Parameters
Request Example
{
"acsDevIndexCode": "46"
}
90
HikCentral Professional OpenAPI Developer Guide
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"acsDevIndexCode": "46",
"acsDevName": "10.18.64.39",
"acsDevIp": "10.18.64.39",
"acsDevPort": "9502",
"treatyType": "hiksdk_net",
"acsDevCode": "DS-K1T671TM-3XF20210308V030202ENE43116796",
"status": 2
}
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/acsDevice/advance/acsDeviceList
91
HikCentral Professional OpenAPI Developer Guide
Request Parameters
Request Example
{
"pageNo": 1,
"pageSize": 10,
"acsDevName": "10.18.64.39"
}
Response Parameters
92
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"total": 1,
"pageNo": 1,
"pageSize": 10,
"list": [
{
"acsDevIndexCode": "46",
"acsDevName": "10.18.64.39",
"acsDevIp": "10.18.64.39",
"acsDevPort": "9502",
"treatyType": "hiksdk_net",
"acsDevCode": "DS-K1T671TM-3XF20210308V030202ENE43116796",
"status ": 2
}
]
}
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/encodeDevice/encodeDeviceList
93
HikCentral Professional OpenAPI Developer Guide
Request Parameters
Request Example
{
"pageNo": 1,
"pageSize": 2
}
Response Parameters
94
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"total": 19,
"pageNo": 1,
"pageSize": 2,
"list": [
{
"encodeDevIndexCode": "86",
"encodeDevName": "10.41.13.38_ ",
"encodeDevIp": "10.41.13.38",
"encodeDevPort": "8000",
"encodeDevCode": "DS-9632NI-I81620210322CCRRF71031387WCVU",
"treatyType": "hiksdk_net",
"isSupportWakeUp": 0,
"wakeUpStatus": 0,
"status ": 1
},
{
"encodeDevIndexCode": "85",
"encodeDevName": "10.18.66.25",
"encodeDevIp": "10.18.66.25",
"encodeDevPort": "9000",
"encodeDevCode": "SimulatorDevice",
"treatyType": "hiksdk_net",
"isSupportWakeUp": 0,
"wakeUpStatus": 0,
"status ": 2
}
]
}
}
95
HikCentral Professional OpenAPI Developer Guide
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/encodeDevice/indexCode/
encodeDeviceInfo
Request Parameters
Request Example
{
"encodeDevIndexCode": "85"
}
Response Parameters
Response Example
{
"code": "0",
96
HikCentral Professional OpenAPI Developer Guide
"msg": "Success",
"data": {
"encodeDevIndexCode": "85",
"encodeDevName": "10.18.66.25",
"encodeDevIp": "10.18.66.25",
"encodeDevPort": "9000",
"encodeDevCode": "SimulatorDevice",
"treatyType": "hiksdk_net",
"isSupportWakeUp": 0,
"wakeUpStatus": 0,
"status": 2
}
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/encodeDevice/advance/
encodeDeviceList
Request Parameters
97
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"pageNo": 1,
"pageSize": 10,
"encodeDevName": "10.18.66.25",
}
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"total": 1,
"pageNo": 1,
"pageSize": 10,
"list": [
{
"encodeDevIndexCode": "85",
"encodeDevName": "10.18.66.25",
98
HikCentral Professional OpenAPI Developer Guide
"encodeDevIp": "10.18.66.25",
"encodeDevPort": "9000",
"encodeDevCode": "SimulatorDevice",
"treatyType": "hiksdk_net",
"isSupportWakeUp": 0,
"wakeUpStatus": 0,
"status ": 2
}
]
}
}
Request URL
https://[serverAddress]:[serverPort]/artemis/resource/v1/device/indexCode/wakeUp
Request Parameters
Request Example
{
"deviceIndexCode": "1",
"cameraIndexCode": "1"
}
Response Parameters
99
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success"
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/intelligentServer/
intelligentServerList
Request Parameters
100
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"pageNo": 1,
"pageSize": 2
}
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"total": 4,
"pageNo": 1,
"pageSize": 2,
"list": [
{
"intelligentServerIndexCode": "1",
101
HikCentral Professional OpenAPI Developer Guide
"intelligentServerName": "10.41.7.96",
"intelligentServerIp": "10.41.7.96",
"status": 1
},
{
"intelligentServerIndexCode": "2",
"intelligentServerName": "10.19.167.130",
"intelligentServerIp": "10.19.167.130",
"status": 0
}
]
}
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/mobileDevice/mobileDeviceList
Request Parameters
Request Example
{
"pageNo": 1,
"pageSize": 2
}
102
HikCentral Professional OpenAPI Developer Guide
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"total": 1,
"pageNo": 1,
"pageSize": 2,
"list": [
{
"mobileDevIndexCode": "1",
"mobileDevName": "10.18.66.164",
"mobileDevIp": "",
"mobileDevPort": "0",
"mobileDevCode": "20210225WRF58663372",
"treatyType": "ehome_reg",
"status ": 2
}
103
HikCentral Professional OpenAPI Developer Guide
]
}
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/mobileDevice/indexCode/
mobileDeviceInfo
Request Parameters
Request Example
{
"mobileDevIndexCode ":"1"
}
Response Parameters
104
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"mobileDevIndexCode": "1",
"mobileDevName": "10.18.66.164",
"mobileDevIp": "",
"mobileDevPort": "0",
"mobileDevCode": "20210225WRF58663372",
"treatyType": "ehome_reg",
"status": 2
}
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/mobileDevice/advance/
mobileDeviceList
Request Parameters
105
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"pageNo": 1,
"pageSize": 2,
"mobileDevName": "10.18.64.39"
}
Response Parameters
106
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"total": 1,
"pageNo": 1,
"pageSize": 2,
"list": [
{
"mobileDevIndexCode": "1",
"mobileDevName": "10.18.66.164",
"mobileDevIp": "",
"mobileDevPort": "0",
"mobileDevCode": "20210225WRF58663372",
"treatyType": "ehome_reg",
"status ": 2
}
]
}
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/recordServer/recordServerList
107
HikCentral Professional OpenAPI Developer Guide
Request Parameters
Request Example
{
"pageNo": 1,
"pageSize": 2
}
Response Parameters
108
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"total": 2,
"pageNo": 1,
"pageSize": 2,
"list": [
{
"recordServerIndexCode": "1",
"recordServerName": "10.41.7.232",
"recordServerIp": "10.41.7.232",
"recordingStatus": 2,
"networkStatus": 1
},
{
"recordServerIndexCode": "4",
"recordServerName": "10.18.66.214",
"recordServerIp": "10.18.66.214",
"recordingStatus": 1,
"networkStatus": 2
}
]
}
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/recordServer/indexCode/
recordServerInfo
109
HikCentral Professional OpenAPI Developer Guide
Request Parameters
Request Example
{
"recordServerIndexCode": "1"
}
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"recordServerIndexCode": "1",
"recordServerName": "10.41.7.232",
"recordServerIp": "10.41.7.232",
110
HikCentral Professional OpenAPI Developer Guide
"recordingStatus": 2,
"networkStatus": 1,
"hddList": [
{
"poolID": "0",
"poolName": "RV_1",
"Capacity": 821568,
"FreeSpace": 712317,
"UsedSpace": 109251
},
{
"poolID": "1",
"poolName": "PIC_RV_1",
"Capacity": 9310,
"FreeSpace": 9310,
"UsedSpace": 0
}
]
}
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/recordServer/recordStatus
Request Parameters
111
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"pageNo": 1,
"pageSize": 2,
"recordServerIndexCode": "1",
"poolID": "0"
}
Response Parameters
112
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"total": 1,
"pageNo": 1,
"pageSize": 2,
"recordServerIndexCode": "1",
"recordServerName": "10.41.7.232",
"recordServerIp": "10.41.7.232",
"recordingStatus": 2,
"networkStatus": 1,
"list": [
{
"regionName": "10.18.65.98",
"deviceIp": "10.18.65.98",
"cameraName": "Camera 01",
"cameraIndexCode": "103",
"networkStatus": 2,
"recordingScheduleName": "",
"recordingStatus": 2,
"siteName": "HikCentral Professional",
"storageType": 1
}
]
113
HikCentral Professional OpenAPI Developer Guide
}
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/streamServer/streamServerList
Request Parameters
Request Example
{
"pageNo": 1,
"pageSize": 2
}
Response Parameters
114
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"total": 4,
"pageNo": 1,
"pageSize": 2,
"list": [
{
"acsDevIndexCode": "46",
"acsDevName": "10.18.64.39",
"acsDevIp": "10.18.64.39",
"acsDevPort": "9502",
"treatyType": "hiksdk_net",
"acsDevCode": "DS-K1T671TM-3XF20210308V030202ENE43116796",
"status ": 2
},
{
"acsDevIndexCode": "13",
"acsDevName": "10.18.66.112",
"acsDevIp": "10.18.66.112",
"acsDevPort": "8005",
"treatyType": "hiksdk_net",
"acsDevCode": "DS-K1T680MF-E120210303V030203ENE33392121",
"status ": 2
115
HikCentral Professional OpenAPI Developer Guide
}
]
}
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/videoManagementServer
Request Parameters
Response Parameters
116
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"ip": "127.0.0.1",
"port": 443,
"cpu": 90,
"status": 0
}
}
POST /artemis/api/resource/v1/site/siteList
Get the information list of all sites, and all information is returned by page.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/site/siteList
Request Parameters
117
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"pageNo": 1,
"pageSize": 2
}
Response Parameters
118
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"total": 2,
"pageNo": 1,
"pageSize": 2,
"list": [
{
"siteIndexCode": "0",
"siteName": "HikCentral Professional",
"siteIp": "10.41.7.232",
"sitePort": "0",
"description": ""
},
{
"siteIndexCode": "17",
"siteName": "HikCentral Professional",
"siteIp": "10.18.66.21",
"sitePort": "80",
"description": ""
}
]
}
}
POST /artemis/api/resource/v1/site/indexCode/siteInfo
Get the information of a site by site ID.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/site/indexCode/siteInfo
Request Parameters
119
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"siteIndexCode": "17"
}
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"siteIndexCode": "17",
"siteName": "HikCentral Professional",
"siteIp": "10.18.66.21",
"sitePort": "80",
"description": ""
}
}
POST /artemis/api/resource/v1/site/advance/siteList
Set search condition (i.e., site name) to search the specified site, and fuzzy search is supported; if
the search condition is not configured, the information of all sites will be returned by page.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/site/advance/siteList
120
HikCentral Professional OpenAPI Developer Guide
Request Parameters
Request Example
{
"pageNo": 1,
"pageSize": 10,
"siteName": "HikCentral Professional"
}
Response Parameters
121
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"total": 2,
"pageNo": 1,
"pageSize": 10,
"list": [
{
"siteIndexCode": "0",
"siteName": "HikCentral Professional",
"siteIp": "10.41.7.232",
"sitePort": "0",
"description": ""
},
{
"siteIndexCode": "17",
"siteName": "HikCentral Professional",
"siteIp": "10.18.66.21",
"sitePort": "80",
"description": ""
}
]
}
}
POST /artemis/api/resource/v1/regions/subRegions
Get the area list of a specified parent area by resource type and permission.
122
HikCentral Professional OpenAPI Developer Guide
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/regions/subRegions
Request Parameters
Request Example
{
"siteIndexCode": "0",
"parentIndexCode": "0"
}
Response Parameters
123
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"list": [
{
"indexCode": "1",
"parentIndexCode": "-1",
"siteIndexCode": "0",
"name": "10.18.65.114"
},
{
"indexCode": "28",
"parentIndexCode": "-1",
"siteIndexCode": "0",
"name": "10.18.65.98"
},
{
"indexCode": "29",
"parentIndexCode": "-1",
"siteIndexCode": "0",
"name": "10.41.7.131"
}
]
}
}
Remarks
The returned areas do not contain any child area, and both the cascading and non-cascading areas
will be returned.
POST /artemis/api/resource/v1/region/indexCode/regionInfo
Get the area information by area ID.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/region/indexCode/regionInfo
124
HikCentral Professional OpenAPI Developer Guide
Request Parameters
Request Example
{
"regionIndexCode": "28",
"siteIndexCode": "0"
}
Response Parameters
Response Example
{
"code": "0",
125
HikCentral Professional OpenAPI Developer Guide
"msg": "Success",
"data": {
"indexCode": "28",
"parentIndexCode": "-1",
"siteIndexCode": "0",
"name": "10.18.65.98"
}
}
POST /artemis/api/resource/v1/regions
Get information list of all areas, and all information is returned by page.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/regions
Request Parameters
Request Example
{
"pageNo": 1,
"pageSize": 2,
"siteIndexCode": "0"
}
126
HikCentral Professional OpenAPI Developer Guide
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"total": 40,
"pageNo": 1,
"pageSize": 2,
"list": [
{
"indexCode": "1",
"parentIndexCode": "-1",
"siteIndexCode": "0",
"name": "10.18.65.114"
},
{
"indexCode": "28",
"parentIndexCode": "-1",
"siteIndexCode": "0",
"name": "10.18.65.98"
127
HikCentral Professional OpenAPI Developer Guide
}
]
}
}
POST /artemis/api/resource/v1/regions/regionIndexCode/cameras
Get the camera list of a specified area by area ID, and the information is returned by page.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/regions/regionIndexCode/cameras
Request Parameters
128
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"pageNo": 1,
"pageSize": 2,
"regionIndexCode": "1",
"siteIndexCode": "0",
"deviceType": "encodeDevice",
"bRecordSetting": 1
}
Response Parameters
129
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"total": 1,
"pageNo": 1,
"pageSize": 2,
"list": [
{
"cameraIndexCode": "1",
"cameraName": "Simulator Channel",
"capabilitySet": "ptz,event_veh",
"encodeDevIndexCode": "1",
"recordType": "0",
"recordLocation": "1",
"regionIndexCode": "1",
"siteIndexCode": "0",
"status": 2,
"isSupportWakeUp": 0,
"wakeUpStatus": 0
}
]
}
}
Remarks
The returned cameras do not contain child cameras.
POST /artemis/api/resource/v1/regions/regionIndexCode/cameras
Get the camera list of a specified area by area ID, and the information is returned by page.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/regions/regionIndexCode/cameras
130
HikCentral Professional OpenAPI Developer Guide
Request Parameters
Request Example
{
"pageNo": 1,
"pageSize": 2,
"regionIndexCode": "1",
"siteIndexCode": "0",
"deviceType": "encodeDevice",
131
HikCentral Professional OpenAPI Developer Guide
"bRecordSetting": 1
}
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"total": 1,
"pageNo": 1,
"pageSize": 2,
"list": [
{
"cameraIndexCode": "1",
"cameraName": "Simulator Channel",
"capabilitySet": "ptz,event_veh",
"encodeDevIndexCode": "1",
132
HikCentral Professional OpenAPI Developer Guide
"recordType": "0",
"recordLocation": "1",
"regionIndexCode": "1",
"siteIndexCode": "0",
"status": 2,
"isSupportWakeUp": 0,
"wakeUpStatus": 0
}
]
}
}
Remarks
The returned cameras do not contain child cameras.
POST /artemis/api/resource/v1/cameras/indexCode
Get the information of a specified camera by camera ID.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/cameras/indexCode
Request Parameters
Request Example
{
"cameraIndexCode": "1213"
}
133
HikCentral Professional OpenAPI Developer Guide
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"cameraIndexCode": "1213",
"cameraName": "Simulator Channel",
"capabilitySet": "ptz",
"devResourceType": "encodeDevice",
"DevIndexCode": "5",
"recordType": "0",
"recordLocation": "1",
"regionIndexCode": "95",
"siteIndexCode": "0",
"status": 2,
"isSupportWakeUp": 0,
"wakeUpStatus": 0
}
}
POST /artemis/api/resource/v1/cameras
Get the information list of all cameras, and all information is returned by page.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/cameras
134
HikCentral Professional OpenAPI Developer Guide
Request Parameters
Request Example
{
"pageNo": 1,
"pageSize": 2,
"siteIndexCode": "0",
"deviceType": "encodeDevice",
"bRecordSetting": 1
}
135
HikCentral Professional OpenAPI Developer Guide
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"total": 51,
"pageNo": 1,
"pageSize": 2,
"list": [
{
"cameraIndexCode": "1213",
"cameraName": "Simulator Channel",
"capabilitySet": "ptz",
"encodeDevIndexCode": "85",
"recordType": "0",
"recordLocation": "1",
"regionIndexCode": "95",
136
HikCentral Professional OpenAPI Developer Guide
"siteIndexCode": "0",
"status": 2,
"isSupportWakeUp": 0,
"wakeUpStatus": 0
},
{
"cameraIndexCode": "1212",
"cameraName": "Simulator Channel",
"capabilitySet": "ptz",
"encodeDevIndexCode": "85",
"recordType": "0",
"recordLocation": "1",
"regionIndexCode": "95",
"siteIndexCode": "0",
"status": 2,
"isSupportWakeUp": 0,
"wakeUpStatus": 0
}
]
}
}
POST /artemis/api/resource/v1/camera/advance/cameraList
Set search conditions (e.g., camera name, encoding device ID, and area ID) to search the specified
cameras, and fuzzy search is supported; if the search condition is not configured, the information
of all cameras will be returned by page.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/camera/advance/cameraList
Request Parameters
137
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"pageNo": 1,
"pageSize": 100,
"cameraName": "Simulator Channel",
"deviceType": "encodeDevice"
"encodeDevIndexCode": "85",
"devIndexCode": "15",
138
HikCentral Professional OpenAPI Developer Guide
"regionIndexCode": "95",
"siteIndexCode": "0",
"bRecordSetting": 1
}
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"total": 2,
"pageNo": 1,
"pageSize": 100,
"list": [
{
"cameraIndexCode": "1213",
"cameraName": "Simulator Channel",
139
HikCentral Professional OpenAPI Developer Guide
"capabilitySet": "ptz",
"encodeDevIndexCode": "85",
"recordType": "0",
"recordLocation": "1",
"regionIndexCode": "95",
"siteIndexCode": "0",
"status": 2,
"isSupportWakeUp": 0,
"wakeUpStatus": 0
},
{
"cameraIndexCode": "1212",
"cameraName": "Simulator Channel",
"capabilitySet": "ptz",
"encodeDevIndexCode": "85",
"recordType": "0",
"recordLocation": "1",
"regionIndexCode": "95",
"siteIndexCode": "0",
"status": 2,
"isSupportWakeUp": 0,
"wakeUpStatus": 0
}
]
}
}
Remarks
If there are multiple search conditions, they will be combined for search.
POST /artemis/api/resource/v1/org/advance/orgList
Set search conditions (e.g., organization ID, organization name, and organization status) to search
for specified organization information and fuzzy search is supported; if the search condition is not
configured, the information of all organizations will be returned by page. It is a traversing search
method and the parent node will always be included in the returned result.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/org/advance/orgList
140
HikCentral Professional OpenAPI Developer Guide
Request Parameters
Request Example
{
"orgName": "test",
"pageNo": 1,
"pageSize": 10
}
Response Parameters
141
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"total": 2,
"pageNo": 1,
"pageSize": 10,
"list": [
{
"orgIndexCode": "1",
"orgName": "root",
"parentOrgIndexCode": "0"
},
{
"orgIndexCode": "2",
"orgName": "test",
"parentOrgIndexCode": "1"
}
]
}
}
POST /artemis/api/resource/v1/org/orgIndexCode/orgInfo
Get organization information by organization ID.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/org/orgIndexCode/orgInfo
142
HikCentral Professional OpenAPI Developer Guide
Request Parameters
Request Example
{
"orgIndexCode": "3"
}
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"orgIndexCode": "3",
"orgName": " name_test ",
"parentOrgIndexCode": "1"
143
HikCentral Professional OpenAPI Developer Guide
}
}
POST /artemis/api/resource/v1/org/orgList
Get the information list of all organizations, and all information is returned by page.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/org/orgList
Request Parameters
Request Example
{
"pageNo": 1,
"pageSize": 100
}
Response Parameters
144
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"total": 3,
"pageNo": 1,
"pageSize": 100,
"list": [
{
"orgIndexCode": "1",
"orgName": "root",
"parentOrgIndexCode": "0"
},
{
"orgIndexCode": "2",
"orgName": "test",
"parentOrgIndexCode": "1"
},
{
"orgIndexCode": "3",
"orgName": " name_test ",
"parentOrgIndexCode": "1"
}
]
145
HikCentral Professional OpenAPI Developer Guide
}
}
POST /artemis/api/resource/v1/org/parentOrgIndexCode/subOrgList
Get information list of lower-level organizations by parent organization, and all information is
returned by page.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/org/parentOrgIndexCode/subOrgList
Request Parameters
Request Example
{
"parentOrgIndexCode": "1",
"pageNo": 1,
"pageSize": 10
}
146
HikCentral Professional OpenAPI Developer Guide
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"total": 2,
"pageNo": 1,
"pageSize": 10,
"list": [
{
"orgIndexCode": "2",
"orgName": "test",
"parentOrgIndexCode": "1"
},
{
"orgIndexCode": "3",
"orgName": "name_test",
"parentOrgIndexCode": "1"
}
]
147
HikCentral Professional OpenAPI Developer Guide
}
}
POST /artemis/api/resource/v1/org/rootOrg
Get the root organization information.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/org/rootOrg
Request Parameters
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": {
148
HikCentral Professional OpenAPI Developer Guide
"orgIndexCode": "1",
"orgName": "root",
"parentOrgIndexCode": "0"
}
}
POST /artemis/api/resource/v1/org/single/add
Add an organization.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/org/single/add
Request Parameters
Request Example
{
"orgName": "name",
"parentIndexCode": "1"
}
Response Parameters
149
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"orgIndexCode": "4",
"orgName": "name",
"parentOrgIndexCode": "1"
}
}
POST /artemis/api/resource/v1/org/single/delete
Delete an organization.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/org/single/delete
Request Parameters
150
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"orgIndexCode": "4"
}
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": ""
}
POST /artemis/api/resource/v1/org/single/update
Edit the information of an organization.
151
HikCentral Professional OpenAPI Developer Guide
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/org/single/update
Request Parameters
Request Example
{
"orgName": "name_test",
"orgIndexCode": "4",
"parentIndexCode": "1"
}
Response Parameters
152
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data": ""
}
POST /artemis/api/resource/v1/acsDoor/region/acsDoorList
Get the information list of access points in a specified area by area ID, and the information is
returned by page.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/acsDoor/region/acsDoorList
Request Parameters
153
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"regionIndexCode": "f182356d-8647-4fd8-96d0-cf635e9293cd",
"pageNo": 1,
"pageSize": 2
}
Response Parameters
154
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"total": 1,
"pageNo": 1,
"pageSize": 2,
"list": [
{
"doorIndexCode": "938",
"acsDevIndexCode": "46",
"regionIndexCode": "77",
"doorNo": "6",
"doorName": "Door 01",
"doorState": 4,
"doorOutState": 4
}
]
}
}
POST /artemis/api/resource/v1/acsDoor/indexCode/acsDoorInfo
Get the information of a specified access point by access point ID.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/acsDoor/indexCode/acsDoorInfo
Request Parameters
155
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"doorIndexCode": "938"
}
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"doorIndexCode": "938",
"acsDevIndexCode": "46",
"regionIndexCode": "77",
"doorNo": "6",
"doorName": "Door 01",
"doorState": 4,
"doorOutState": 4
}
}
POST /artemis/api/resource/v1/acsDoor/acsDoorList
Get the information list of all access points, and all information is returned by page.
156
HikCentral Professional OpenAPI Developer Guide
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/acsDoor/acsDoorList
Request Parameters
Request Example
{
"pageNo": 1,
"pageSize": 2
}
Response Parameters
157
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"total": 6,
"pageNo": 1,
"pageSize": 2,
"list": [
{
"doorIndexCode": "938",
"acsDevIndexCode": "46",
"regionIndexCode": "77",
"doorNo": "6",
"doorName": "Door 01",
"doorState": 4
},
{
"doorIndexCode": "920",
"acsDevIndexCode": "37",
"regionIndexCode": "75",
"doorNo": "5",
"doorName": "Door1",
"doorState": 0,
"doorOutState": 0
}
]
}
}
POST /artemis/api/resource/v1/acsDoor/advance/acsDoorList
Set search condition (i.e., access point name, access control device ID, and area ID) to search the
specified access point, and fuzzy search is supported; if the search condition is not configured, the
information of all access points will be returned by page.
158
HikCentral Professional OpenAPI Developer Guide
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/acsDoor/advance/acsDoorList
Request Parameters
Request Example
{
"pageNo": 1,
"pageSize": 2,
"doorName": "Door 01",
"acsDevIndexCode": "46",
"regionIndexCode": "77"
}
Response Parameters
159
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"total": 1,
"pageNo": 1,
"pageSize": 2,
"list": [
{
"doorIndexCode": "938",
"acsDevIndexCode": "46",
"regionIndexCode": "77",
"doorNo": "6",
"doorName": "Door 01",
"doorState": 4,
"doorOutState": 4
}
]
}
}
160
HikCentral Professional OpenAPI Developer Guide
POST /artemis/api/resource/v1/reader/search
Get card reader information.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/reader/search
Request Parameters
Request Example
{
"doorIndexCode": "938"
}
Response Parameters
161
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"total": 2,
"list": [
{
"indexCode": "5",
"name": "Cardreader 01",
"enable": 0
},
{
"indexCode": "6",
"name": "Cardreader 02",
"enable": 0
}
]
}
}
POST /artemis/api/resource/v1/vehicleGroup/vehicleGroupList
Get the information list of all vehicle groups, and all information is returned by page.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/vehicleGroup/vehicleGroupList
162
HikCentral Professional OpenAPI Developer Guide
Request Parameters
Request Example
{
"pageNo": 1,
"pageSize": 10
}
Response Parameters
163
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"total": 2,
"pageNo": 1,
"pageSize": 10,
"list": [
{
"vehicleGroupIndexCode": "3",
"vehicleGroupName": "group_one",
"description": ""
},
{
"vehicleGroupIndexCode": "2",
"vehicleGroupName": "1",
"description": ""
}
]
}
}
POST /artemis/api/resource/v1/vehicleGroup/single/add
Add a vehicle group.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/vehicleGroup/single/add
Request Parameters
164
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"vehicleGroupName": "test",
"description": "test"
}
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
165
HikCentral Professional OpenAPI Developer Guide
"data": {
"vehicleGroupIndexCode": "4",
"vehicleGroupName": "test",
"description": "test"
}
}
POST /artemis/api/resource/v1/vehicleGroup/single/update
Edit the information of a vehicle group.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/vehicleGroup/single/update
Request Parameters
Request Example
{
"vehicleGroupIndexCode": "4",
"vehicleGroupName": "test_mod",
"description": "test_mod"
}
166
HikCentral Professional OpenAPI Developer Guide
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": ""
}
POST /artemis/api/resource/v1/vehicleGroup/single/delete
Delete a vehicle group.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/vehicleGroup/single/delete
Request Parameters
167
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"vehicleGroupIndexCode": "4"
}
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": ""
}
POST /artemis/api/resource/v1/vehicle/vehicleList
Get the information list of all vehicles, and all information is returned by page.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/vehicle/vehicleList
168
HikCentral Professional OpenAPI Developer Guide
Request Parameters
Request Example
{
"pageNo": 1,
"pageSize": 10
"vehicleGroupIndexCode": “1”
}
Response Parameters
169
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"total": 1,
"pageNo": 1,
"pageSize": 10,
"list": [
{
"vehicleId": "7",
"plateNo": "888",
"plateCategory": "123",
"plateArea": 258,
"plateAreaName": "DXB",
"personName": "1 2",
"personFamilyName": "2",
"personGivenName": "1",
"phoneNo": "",
"vehicleColor": 0,
"vehicleGroupIndexCode": "1",
"effectiveDate": "2022-03-21T00:00:00+08:00",
"expiredDate": "2023-03-25T23:59:59+08:00"
}
]
}
}
POST /artemis/api/resource/v1/vehicle/indexCode/vehicleInfo
Get the information of a specified vehicle by vehicle ID.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/vehicle/indexCode/vehicleInfo
170
HikCentral Professional OpenAPI Developer Guide
Request Parameters
Request Example
{
"vehicleIndexCode": "7 "
}
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"vehicleId": "7",
"plateNo": "AB5555",
"plateCategory": "123",
"plateArea": 258,
"plateAreaName": "DXB",
"personName": "1 2",
"phoneNo": "",
"vehicleColor": 0,
171
HikCentral Professional OpenAPI Developer Guide
"vehicleGroupIndexCode": "1"
"effectiveDate": "2022-03-21T00:00:00+08:00",
"expiredDate": "2023-03-25T23:59:59+08:00"
}
POST /artemis/api/resource/v1/vehicle/advance/vehicleList
Set search condition (i.e., license plate number, vehicle owner name, and owner contact number)
to search the specified vehicles, and fuzzy search is supported; if the search condition is not
configured, the information of all vehicles will be returned by page.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/vehicle/advance/vehicleList
Request Parameters
172
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"pageNo": 1,
"pageSize": 10,
"personName": "",
"plateNo": "N746",
"phoneNo": "",
"vehicleGroupIndexCode": "1"
}
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"total": 1,
"pageNo": 1,
"pageSize": 10,
"list": [
173
HikCentral Professional OpenAPI Developer Guide
{
"vehicleId": "20",
"plateNo": "NN7464",
"plateCategory": "123",
"plateArea": 258,
"plateAreaName": "DXB",
"personName": "test test",
"personFamilyName": "test",
"personGivenName": "test",
"phoneNo": "",
"vehicleColor": 3,
"vehicleGroupIndexCode": "1",
"effectiveDate": "2022-03-21T00:00:00+08:00",
"expiredDate": "2023-03-25T23:59:59+08:00"
}
]
}
Remarks
The search conditions, i.e., license plate number, vehicle owner name, and owner contact number,
are mutually exclusive. That is, they cannot be configured for search at same time.
POST /artemis/api/resource/v1/vehicle/single/add
Add a vehicle.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/vehicle/single/add
Request Parameters
174
HikCentral Professional OpenAPI Developer Guide
175
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"plateNo": "NN7464",
"plateCategory": "123",
"plateArea": 258,
"personId": "1149",
"phoneNo": "111111",
"vehicleColor": 3,
"vehicleGroupIndexCode": "1",
"personGivenName": "ma",
"personFamilyName": "jack",
"effectiveDate": "2022-03-21T00:00:00+08:00",
"expiredDate": "2023-03-25T23:59:59+08:00"
}
Response Parameters
176
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"vehicleId": "20",
"plateNo": "NN7464",
"plateCategory": "123",
"plateArea": 258,
"plateAreaName": "DXB",
"personName": "test test",
"phoneNo": "",
"vehicleColor": 3,
"vehicleGroupIndexCode": "1",
"effectiveDate": "2022-03-21T00:00:00+08:00",
"expiredDate": "2023-03-25T23:59:59+08:00"
}
}
POST /artemis/api/resource/v1/vehicle/single/update
Edit information of a vehicle.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/vehicle/single/update
Request Parameters
177
HikCentral Professional OpenAPI Developer Guide
178
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"vehicleId": "21",
"plateNo": "74651544B",
"plateCategory": "123",
"plateArea": 258,
"plateAreaName": "DXB",
"personId": "1149",
"phoneNo": "111111111111",
"vehicleColor": 3,
"vehicleGroupIndexCode": "1",
"personFamilyName": "dong",
"personGivenName": "zhaod",
"effectiveDate": "2022-03-21T00:00:00+08:00",
"expiredDate": "2023-03-25T23:59:59+08:00"
}
179
HikCentral Professional OpenAPI Developer Guide
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": ""
}
POST /artemis/api/resource/v1/vehicle/single/delete
Delete a vehicle
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/vehicle/single/delete
Request Parameters
180
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"vehicleId": "12"
}
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": ""
}
POST /artemis/api/resource/v1/mobilevehicle/mobilevehicleList
Get the list of vehicles linked to on-board devices. The returned results will be displayed in page.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/mobilevehicle/mobilevehicleList
181
HikCentral Professional OpenAPI Developer Guide
Request Parameters
Request Example
{
"pageNo": 1,
"pageSize": 10
}
Response Parameters
182
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"total": 2,
"pageNo": 1,
"pageSize": 10,
"list": [
{
"mobilevehicleIndexCode": "3",
"mobilevehicleName": "zhe123",
"DevIndexCode": "28",
"regionIndexCode": "1",
"status": "1",
"plateNo": "zhe123",
"personName": "ljf",
"personFamilyName": "l",
"personGivenName": "jf",
"phoneNo": "2345346",
"vehicleColor": "1",
"vehicleType": "1",
"vehicleBrand": "1"
}
]
}
}
POST /artemis/api/resource/v1/mobileVehicle/indexCode/mobileVehicleInfo
Get the information of a vehicle linked to the on-board device according to the vehicle ID.
183
HikCentral Professional OpenAPI Developer Guide
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/mobileVehicle/indexCode/
mobileVehicleInfo
Request Parameters
Request Example
{
"mobilevehicleIndexCode": "1"
}
Response Parameters
Response Example
{
"code": "0",
184
HikCentral Professional OpenAPI Developer Guide
"msg": "Success",
"data": {
"mobilevehicleIndexCode": "1",
"mobilevehicleName": "zhe123",
"regionIndexCode": "1",
"status": 2,
"DevIndexCode": "1",
"plateNo": "zhe123",
"personFamilyName": "",
"personGivenName": "",
"personName": "",
"phoneNo": "",
"vehicleType": -1,
"vehicleBrand": -1,
"vehicleColor": -1
}
}
POST /artemis/api/resource/v1/mobilevehicle/advanced/mobilevehicleList
Search the list of vehicles linked to on-board devices by condition. The returned results will be
displayed in page.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/mobilevehicle/advanced/
mobilevehicleList
Request Parameters
185
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"pageNo": 1,
"pageSize": 10,
"mobilevehicleName":"10.18.68.12",
"devIndexCode":"1"
}
Response Parameters
186
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"total": 2,
"pageNo": 1,
"pageSize": 10,
"list": [
{
"mobilevehicleIndexCode": "3",
"mobilevehicleName": "zhe123",
"DevIndexCode": "28",
"regionIndexCode": "1",
"status": "1",
"plateNo": "zhe123",
"personName": "ljf",
"personFamilyName": "l",
"personGivenName": "jf",
"phoneNo": "2345346",
"vehicleColor": "1",
"vehicleType": "1",
"vehicleBrand": "1"
}
]
}
}
POST /artemis/api/resource/v1/person/personList
Get the information list of all persons, and all information is returned by page.
187
HikCentral Professional OpenAPI Developer Guide
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/person/personList
Request Parameters
Request Example
{
"pageNo": 1,
"pageSize": 2,
"appendInfo": [6, 19]
}
Response Parameters
188
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"total": 37,
"pageNo": 1,
"pageSize": 2,
"list": [
{
"personId": "1149",
"personCode": "3536895491",
"orgIndexCode": "1",
"personName": "test test",
"personFamilyName": "test",
"personGivenName": "test",
"gender": 0,
"phoneNo": "",
"personPhoto": {
"picUri": ""
},
"email": "",
"remark": "",
"beginTime": "2021-04-25T16:19:27+08:00",
"endTime": "2031-04-25T16:19:27+08:00",
"cards": [
189
HikCentral Professional OpenAPI Developer Guide
{
"cardNo": "234324"
}
],
"customFieldList": [
{
"id": "12",
"customFiledName": "Home Adrress",
"customFieldType": 0,
"customFieldValue": ""
},
{
"id": "13",
"customFiledName": "Salary",
"customFieldType": 0,
"customFieldValue": ""
},
{
"id": "14",
"customFiledName": "time",
"customFieldType": 2,
"customFieldValue": ""
}
]
},
{
"personId": "1135",
"personCode": "2357358552",
"orgIndexCode": "1",
"personName": "John",
"personFamilyName": "",
"personGivenName": "John",
"gender": 0,
"phoneNo": "",
"personPhoto": {
"picUri": "0B4E92A30AF914C1285613A4FBD9F761F"
},
"email": "",
"remark": "",
"beginTime": "2021-04-15T17:07:41+08:00",
"endTime": "2031-04-15T17:07:41+08:00",
"customFieldList": [
{
"id": "12",
"customFiledName": "Home Adrress",
"customFieldType": 0,
"customFieldValue": ""
},
{
"id": "13",
"customFiledName": "Salary",
"customFieldType": 0,
190
HikCentral Professional OpenAPI Developer Guide
"customFieldValue": ""
},
{
"id": "14",
"customFiledName": "time",
"customFieldType": 2,
"customFieldValue": ""
}
]
}
]
}
}
POST /artemis/api/resource/v1/person/personId/personInfo
Get the information of a specified person by person ID.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/person/personId/personInfo
Request Parameters
Request Example
{
"personId": "1149",
"appendInfo": [6, 19]
}
191
HikCentral Professional OpenAPI Developer Guide
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"personId": "1149",
"personCode": "3536895491",
"personName": "test test",
"gender": 0,
"orgIndexCode": "1",
"personPhoto": {
"picUri": ""
},
"phoneNo": "",
"email": "",
"remark": "",
"beginTime": "2021-04-25T16:19:27+08:00",
"endTime": "2031-04-25T16:19:27+08:00",
"personFamilyName": "test",
"personGivenName": "test",
"cards": [
{
"cardNo": "234324"
}
],
"customFieldList": [
{
"id": "12",
"customFiledName": "Home Adrress",
192
HikCentral Professional OpenAPI Developer Guide
"customFieldType": 0,
"customFieldValue": ""
},
{
"id": "13",
"customFiledName": "Salary",
"customFieldType": 0,
"customFieldValue": ""
},
{
"id": "14",
"customFiledName": "time",
"customFieldType": 2,
"customFieldValue": ""
}
]
}
}
POST /artemis/api/resource/v1/person/personCode/personInfo
Get person information according to person code.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/person/personCode/personInfo
Request Parameters
193
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"personCode": "3536895491",
"appendInfo": [6, 19]
}
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"personId": "1149",
"personCode": "3536895491",
"personName": "test test",
"personFamilyName": "test",
"personGivenName": "test",
"gender": 0,
"orgIndexCode": "1",
"personPhoto": {
"picUri": ""
},
194
HikCentral Professional OpenAPI Developer Guide
"phoneNo": "",
"email": "",
"remark": "",
"beginTime": "2021-04-25T16:19:27+08:00",
"endTime": "2031-04-25T16:19:27+08:00",
"cards": [
{
"cardNo": "234324"
}
],
"CustomField": [
{
"id": "12",
"customFiledName": "Home Adrress",
"customFieldType": 0,
"customFieldValue": ""
},
{
"id": "13",
"customFiledName": "Salary",
"customFieldType": 0,
"customFieldValue": ""
},
{
"id": "14",
"customFiledName": "time",
"customFieldType": 2,
"customFieldValue": ""
}
]
}
}
POST /artemis/api/resource/v1/person/advance/personList
Set search condition (i.e., person name) to search the specified person, and fuzzy search is
supported; if the search condition is not configured, the information of all persons will be returned
by page.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/person/advance/personList
195
HikCentral Professional OpenAPI Developer Guide
Request Parameters
Request Example
{
"pageNo": 1,
"pageSize": 10,
"personName": "test",
"appendInfo": [6, 19]
}
Response Parameters
196
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"total": 1,
"pageNo": 1,
"pageSize": 10,
"list": [
{
"personId": "1149",
"personCode": "3536895491",
"orgIndexCode": "1",
"personName": "test test",
"personFamilyName": "test",
"personGivenName": "test",
"gender": 0,
"phoneNo": "",
"personPhoto": {
"picUri": ""
},
"email": "",
"remark": "",
"beginTime": "2021-04-25T16:19:27+08:00",
"endTime": "2031-04-25T16:19:27+08:00",
"cards": [
197
HikCentral Professional OpenAPI Developer Guide
{
"cardNo": "234324"
}
],
"customFieldList": [
{
"id": "12",
"customFiledName": "Home Adrress",
"customFieldType": 0,
"customFieldValue": ""
},
{
"id": "13",
"customFiledName": "Salary",
"customFieldType": 0,
"customFieldValue": ""
},
{
"id": "14",
"customFiledName": "time",
"customFieldType": 2,
"customFieldValue": ""
}
]
}
]
}
}
POST /artemis/api/resource/v1/person/picture_data
Get the URI of profile picture uploaded when adding person, and then download the picture from
Recording Server according to the URL.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/person/picture_data
Request Parameters
198
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"personId": "1135",
"picUri": "0B4E92A30AF914C1285613A4FBD9F761F"
}
Response Parameters
Response Example
"data:image/jpeg;base64,/9j/4AAQSkzFYSEbxpSTWIl7lb2dtYSUW4zd9E/K/U+h9Ls
49L0y20yFyy29ukSs3UhVAB/SigyEjFFG5+2RioRUV0P/2Q=="
"data:image/jpeg;base64,/9j/4AAQSkzFYSEbxpSTWIl7lb2dtYSUW4zd9E/K/U+h9Ls4
9L0y20yFyy29ukSs3UhVAB/SigyEjFFG5+2RioRUV0P/2Q=="
POST /artemis/api/resource/v1/person/single/add
Add a person.
199
HikCentral Professional OpenAPI Developer Guide
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/person/single/add
Request Parameters
200
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"personCode": "123245214",
"personFamilyName": "LI",
"personGivenName": "person0",
"gender": 1,
"orgIndexCode": "1",
"remark": "description",
"phoneNo": "13000110011",
"email": "[email protected]",
"cards": [
{
"cardNo": "123456"
}
],
"beginTime": "2020-05-26T15:00:00+08:00",
"endTime": "2030-05-26T15:00:00+08:00"
}
201
HikCentral Professional OpenAPI Developer Guide
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": "1150"
}
POST /artemis/api/resource/v1/person/single/update
Edit a person's information.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/person/single/update
Request Parameters
202
HikCentral Professional OpenAPI Developer Guide
203
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"personId": "1150",
"personCode": "123245214",
"personFamilyName": "Li",
"personGivenName": "person0",
"orgIndexCode": "1",
"gender": 1,
"phoneNo": "13000110011",
"remark": "description",
"email": "[email protected]",
"cards": [
{
"cardNo": "123456"
}
],
"beginTime": "2022-05-26T15:00:00+08:00",
"endTime": "2030-05-26T15:00:00+08:00"
}
Response Parameters
204
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "ok",
"data":””
}
POST /artemis/api/resource/v1/person/single/delete
Delete a person.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/person/single/delete
Request Parameters
205
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"personId ": "1"
}
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": ""
}
POST /artemis/api/resource/v1/person/face/update
Edit the information of face linked with the person.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/person/face/update
206
HikCentral Professional OpenAPI Developer Guide
Request Parameters
Request Example
{
"personId": "1",
"faceData": " AQSkzFYSEbxpSTWIl7lb2dtYSUW4"
}
Response Parameters
207
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data":””
}
POST /artemis/api/resource/v1/person/fingerPrints/update
Edit the information of fingerprints linked with the person.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/person/fingerPrints/update
Request Parameters
Request Example
{
"personId": "1",
"fingerPrint": [
{
"fingerPrintIndexCode": "1",
"fingerPrintName": "fringe_pringt_01",
208
HikCentral Professional OpenAPI Developer Guide
"fingerPrintData": "228697F1AD0146C8D00",
"relatedCardNo": "1123"
}
]
}
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data":””
}
POST /artemis/api/resource/v1/person/customFields
Get the person's custom information list, and all the information is returned by page.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/person/customFields
209
HikCentral Professional OpenAPI Developer Guide
Request Parameters
Request Example
{
"pageNo": 1,
"pageSize": 2
}
Response Parameters
210
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"total": 3,
"pageNo": 1,
"pageSize": 2,
"list": [
{
"id": "12",
"customFiledName": "Home Adrress",
"customFieldType": 0
},
{
"id": "13",
"customFiledName": "Salary",
"customFieldType": 0
}
]
}
}
POST /artemis/api/resource/v1/person/personId/customFieldsUpdate
Edit the person's custom information.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/person/personId/
customFieldsUpdate
Request Parameters
211
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"personId": "1150",
"list": [
{
"id": "12",
"customFiledName": "ssss",
"customFieldType": 2,
"customFieldValue": "2354"
}
]
}
Response Parameters
212
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data": ""
}
POST /artemis/api/acs/v1/faceCheck
Verify the validity of face picture (a few seconds are required for verifying a picture). Currently, the
API is only supported by the MinMoe (i.e., Face Recognition Terminal). It is used for linking face
picture to the person when adding a person.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/acs/v1/faceCheck
Request Parameters
Request Example
{
"faceData": "4AAQSkzFYSEbxpSTWIl7lb2dtYSUW4zd9E/K",
"acsDevIndexCode": "1"
}
Response Parameters
213
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data":””
}
POST /artemis/api/resource/v1/person/customFields/single/add
Add a custom field.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/person/customFields/single/add
Request Parameters
Request Example
{
"customFieldList": {
214
HikCentral Professional OpenAPI Developer Guide
"customField": [
{
"customFieldName": "123",
"customFieldType": 0,
"presetValueList": {
"presetValue": [
{
"value": "0",
"ID": "1"
}
]
},
"isPublic": 0,
"isShow": 1
}
]
}
}
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data":{
"Id": "1",
"customFieldName": "wwww",
"customFieldType": 0,
"isPublic": 0
}
}
215
HikCentral Professional OpenAPI Developer Guide
POST /artemis/api/resource/v1/person/customFields/single/modify
Edit the custom field information.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/person/customFields/single/modify
Request Parameters
Request Example
{
"customFieldList": {
"customField": [
{
"customFieldId": "1",
"customFieldName": "123",
"isShow": 1,
"customFieldName": 3,
"presetValueList": {
"presetValue": [
{
"value": "0",
"ID": "1"
}
]
}
}
]
}
}
216
HikCentral Professional OpenAPI Developer Guide
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data":""
}
POST /artemis/api/resource/v1/person/customFields/single/delete
Delete a custom field. Custom fields related to person information in the AD domain cannot be
deleted.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/person/customFields/single/delete
Request Parameters
217
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"customFieldId": "1"
}
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": ""
}
POST /artemis/api/frs/v1/face/group
Set search condition (i.e., group ID and group name) to search the specified face comparison
groups, and fuzzy search is supported; if the search condition is not configured, the information of
all face comparison groups will be returned by page.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/frs/v1/face/group
218
HikCentral Professional OpenAPI Developer Guide
Request Parameters
Request Example
{
"indexCodes": [
"2"
],
"name": ""
}
Response Parameters
219
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"list": [
{
"indexCode": "2",
"name": "test_group",
"description": ""
}
]
}
}
POST /artemis/api/frs/v1/face/group/batch/deletion
Delete a face comparison group by group ID.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/frs/v1/face/group/batch/deletion
Request Parameters
220
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"indexCodes": [
"1"
]
}
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": ""
}
221
HikCentral Professional OpenAPI Developer Guide
Remarks
The validity of face comparison group ID will be checked when deleting by ID, if the ID is invalid,
error will be returned.
POST /artemis/api/frs/v1/face/group/single/addition
Add a face comparison group, and the group ID will be returned after adding.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/frs/v1/face/group/single/addition
Request Parameters
Request Example
{
"name": "name",
"description": "test"
}
222
HikCentral Professional OpenAPI Developer Guide
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"indexCode": "1",
"name": "name",
"description": "test"
}
}
POST /artemis/api/frs/v1/face/group/single/update
Edit information of a face comparison group.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/frs/v1/face/group/single/update
223
HikCentral Professional OpenAPI Developer Guide
Request Parameters
Request Example
{
"indexCode": "1",
"name": "name_mod",
"description": "test_mod"
}
Response Parameters
224
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data": ""
}
Remarks
If the face comparison group to be edited is already added to the identification schedule, after
editing, the changed information will also be applied to device.
POST /artemis/api/frs/v1/face/groupList
Get face comparison group list.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/frs/v1/face/groupList
Request Parameters
225
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"pageNo": 1,
"pageSize": 6
}
Response Parameters
226
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"total": 2,
"pageNo": 1,
"pageSize": 500,
"list": [
{
"indexCode": "2",
"name": "test_group",
"description": ""
},
{
"indexCode": "1",
"name": "1111@@@@@@@@",
"description": "erryttttttttttttttttttttttttttt###"
}
]
}
}
POST /artemis/api/frs/v1/plan/recognition/black/restart
Apply all faces' information of the face comparison group to the linked device.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/frs/v1/plan/recognition/black/restart
227
HikCentral Professional OpenAPI Developer Guide
Request Parameters
Request Example
{
"indexCodes": "1"
}
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
228
HikCentral Professional OpenAPI Developer Guide
"data": ""
}
POST /artemis/api/aiapplication/v1/face/faceMatchRecord
Search for the face comparison information by camera.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/aiapplication/v1/face/faceMatchRecord
Request Parameters
229
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"pageNo":1,
"pageSize":20,
"cameraIndexCodes":"1",
"statisticsType":0,
"startTime":"2018-07-26T15:00:00+08:00",
"endTime":"2018-07-26T16:00:00+08:00"
}
Response Parameters
230
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code":"0",
"msg":"Success",
"data":{
"completeness":1,
"pageNo":1,
"pageSize":20,
"list":[{
"time":"2018-07-26T15:00:00+08:00",
"cameraIndexCode":"1",
"exitNum":5,
"enterNum":1
}]
}
}
POST /artemis/api/frs/v1/application/picture
Download the picture according to the specified URL.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/frs/v1/application/picture
231
HikCentral Professional OpenAPI Developer Guide
Request Parameters
Request Example
{
"url": "Dev://picture/Streaming/tracks/303/?name=405812&size=405812&DEVICE=26&TYPE=0&VSM=0",
"isHumanSearchPic": 0
}
Response Parameters
232
HikCentral Professional OpenAPI Developer Guide
Response Example
"data:image/jpeg;base64,/9j/4AAQSkzFYSEbxpSTWIl7lb2dtYSUW4zd9E/K/U+h9Ls49L0y20yFyy29ukSs3UhVAB/
SigyEjFFG5+2RioRUV0P/2Q=="
"data:image/jpeg;base64,/9j/4AAQSkzFYSEbxpSTWIl7lb2dtYSUW4zd9E/K/U+h9Ls49L0y20yFyy29ukSs3UhVAB/
SigyEjFFG5+2RioRUV0P/2Q=="
POST /artemis/api/frs/v1/face
Search face information in a specified face comparison group.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/frs/v1/face
Request Parameters
233
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"faceGroupIndexCode": "1",
"pageNo": 1,
"pageSize": 20
}
Response Parameters
234
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"total": 1
"pageNo": 1,
"pageSize": 20,
"list": [
{
"indexCode": "4",
"faceInfo": {
"personGivenName": "san",
"personFamilyName": "zhang",
"sex": "1"
},
"facePic": {
"faceUrl": "/9j/4AAQSkZJRgABAQEAAAAAAAD/4QBCRXhpZgAATU"
}
}
]
}
}
POST /artemis/api/frs/v1/face/deletion
Remove the information of a face from a specified face comparison group.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/frs/v1/face/deletion
Request Parameters
235
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"indexCodes": [
"4"
],
"faceGroupIndexCode": "1",
"deleteFromOrg":"0"
}
Response Parameters
236
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data": ""
}
POST /artemis/api/frs/v1/face/single/addition
Add the information of a face.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/frs/v1/face/single/addition
Request Parameters
237
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"personIndexCode": "1",
"faceGroupIndexCode": "1",
"faceInfo": {
"personGivenName": "san",
"personFamilyName": "zhang",
"sex": "1"
},
"facePic": {
"faceBinaryData": "/9j/4AAQSkZJRgABAQEAAAAAAAD/4QBCRXhpZgAATU"
}
}
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"indexCode": "4"
}
}
238
HikCentral Professional OpenAPI Developer Guide
POST /artemis/api/resource/v1/alarmInput/advance/alarmInputList
Set search condition (input alarm name, device ID, area ID, etc.) to search for the alarm input
information; if the search condition is not configured, all alarm input information will be returned
by page.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/alarmInput/advance/alarmInputList
Request Parameters
239
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"pageNo": 1,
"pageSize": 2,
"alarmInputName": "D1_0.0.0.0",
"devIndexCode": "85",
"regionIndexCode": "95"
}
Response Parameters
240
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"total": 1,
"pageNo": 1,
"pageSize": 2,
"list": [
{
"alarmInputIndexCode": "1215",
"alarmInputName": "D1_0.0.0.0",
"regionIndexCode": "95",
"devIndexCode": "85",
"devResourceType": "encodeDevice",
"networkStatus": 2
}
]
}
}
POST /artemis/api/resource/v1/alarmInputs
Get the alarm input information list, and all the information is returned by page.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/alarmInputs
Request Parameters
241
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"pageNo": 1,
"pageSize": 2
}
Response Parameters
242
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"total": 129,
"pageNo": 1,
"pageSize": 2,
"list": [
{
"alarmInputIndexCode": "1215",
"alarmInputName": "D1_0.0.0.0",
"regionIndexCode": "95",
"devIndexCode": "85",
"devResourceType": "encodeDevice",
"networkStatus": 2
},
{
"alarmInputIndexCode": "1214",
"alarmInputName": "A1",
"regionIndexCode": "95",
"devIndexCode": "85",
"devResourceType": "encodeDevice",
"networkStatus": 2
}
]
}
}
POST /artemis/api/resource/v1/alarmInputs/indexCode
Get the alarm input information according to alarm input ID.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/alarmInputs/indexCode
243
HikCentral Professional OpenAPI Developer Guide
Request Parameters
Request Example
{
"alarmInputIndexCode": "1215"
}
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"alarmInputIndexCode": "1215",
"alarmInputName": "D1_0.0.0.0",
"regionIndexCode": "95",
244
HikCentral Professional OpenAPI Developer Guide
"devIndexCode": "85",
"devResourceType": "encodeDevice",
"networkStatus": 2
}
}
POST /artemis/api/resource/v1/alarmOutput/advance/alarmOutputList
Set search condition (output alarm name, device ID, area ID, etc.) to search for the alarm output
information; if the search condition is not configured, all alarm output information will be returned
by page.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/alarmOuput/advance/
alarmOutputList
Request Parameters
245
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"pageNo": 1,
"pageSize": 10,
"alarmOutputName": "0.0.0.0",
"devIndexCode": "85",
"regionIndexCode": "95"
}
Response Parameters
246
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"total": 2,
"pageNo": 1,
"pageSize": 10,
"list": [
{
"alarmOutputIndexCode": "1218",
"alarmOutputName": "D2_0.0.0.0",
"regionIndexCode": "95",
"devIndexCode": "85",
"devResourceType": "encodeDevice",
"status": -1
},
{
"alarmOutputIndexCode": "1217",
"alarmOutputName": "D1_0.0.0.0",
"regionIndexCode": "95",
"devIndexCode": "85",
"devResourceType": "encodeDevice",
"status": -1
}
]
}
}
POST /artemis/api/resource/v1/alarmOutput/controlling
Control alarm output.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/alarmOutput/controlling
247
HikCentral Professional OpenAPI Developer Guide
Request Parameters
Request Example
{
"alarmOutputIndexCode": "1",
"action": 1
}
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
248
HikCentral Professional OpenAPI Developer Guide
"data": ""
}
POST /artemis/api/resource/v1/alarmOutputs
Get the alarm output information list, and all the information is returned by page.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/alarmOutputs
Request Parameters
Request Example
{
"pageNo": 1,
"pageSize": 2
}
249
HikCentral Professional OpenAPI Developer Guide
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"total": 81,
"pageNo": 1,
"pageSize": 2,
"list": [
{
"alarmOutputIndexCode": "1218",
"alarmOutputName": "D2_0.0.0.0",
"regionIndexCode": "95",
"devIndexCode": "85",
"devResourceType": "encodeDevice",
"status": -1
},
{
"alarmOutputIndexCode": "1217",
"alarmOutputName": "D1_0.0.0.0",
250
HikCentral Professional OpenAPI Developer Guide
"regionIndexCode": "95",
"devIndexCode": "85",
"devResourceType": "encodeDevice",
"status": -1
}
]
}
}
POST /artemis/api/resource/v1/alarmOutputs/indexCode
Get the alarm output information according to alarm output ID.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/alarmOutputs/indexCode
Request Parameters
Request Example
{
"alarmOutputIndexCode": "1218"
}
Response Parameters
251
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"alarmOutputIndexCode": "1218",
"alarmOutputName": "D2_0.0.0.0",
"regionIndexCode": "95",
"devIndexCode": "85",
"devResourceType": "encodeDevice",
"status": -1
}
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/aiapplication/v1/people/
statisticsTotalNumByTime
252
HikCentral Professional OpenAPI Developer Guide
Request Parameters
Request Example
{
"pageNo": 1,
"pageSize": 20,
253
HikCentral Professional OpenAPI Developer Guide
"cameraIndexCodes": "1",
"statisticsType": 0,
"startTime": "2018-07-26T15:00:00+08:00",
"endTime": "2018-07-26T16:00:00+08:00"
}
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"completeness": 1,
"pageNo": 1,
"pageSize": 20,
"list": [
{
"time": "2018-07-26T15:00:00+08:00",
"cameraIndexCode": "1",
254
HikCentral Professional OpenAPI Developer Guide
"exitNum": 5,
"enterNum": 1
}
]
}
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/aiapplication/v1/people/
resourceGroupRealTimeCount
Request Parameters
Request Example
{
"resourceGroupIndexCodes":"1"
}
Response Parameters
255
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code":"0",
"msg":"Success",
"data":{
"list":[{
"time":"2018-07-26T15:00:00+08:00",
"cameraIndexCode":"1",
"exitNum":5,
"enterNum":1
}]
}
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/aiapplication/v1/people/advance/
resourceGroupList
256
HikCentral Professional OpenAPI Developer Guide
Request Parameters
Request Example
{
"pageNo": 1,
"pageSize": 10
}
Response Parameters
257
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code":"0",
"msg":"Success",
"data":{
"total":2,
"pageNo":1,
"pageSize":10,
"list":
}
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/aiapplication/v1/people/
statisticsHeatMapByTime
Request Parameters
258
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"cameraIndexCode": "1",
"statisticsType": 0,
"beginTime": "2022-02-16T15:00:00+08:00",
"endTime": "2022-02-16T16:00:00+08:00"
}
Response Parameters
259
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"maxValue": -1,
"minValue": -1,
"averageValue": -1,
"arrayLine": -1,
"arrayColum": -1,
"buffer": ""
}
}
260
HikCentral Professional OpenAPI Developer Guide
Note
● During playback by RTSP_s, RTMP or HLS, follow the following format: URL +
"&beginTime=2022-06-24T22:59:48.000-07:00&endTime=2022-06-25T00:46:36.000-07:00".
● Audio playback via HLS and RTMP only supports Advanced Audio Coding (AAC).
● Get the streaming URL for playback via the following protocols: RTSP, RTSP_S, WebSocket,
WebSocket_S, RTMP (H.264 video encoding only), and HLS (Cloud Storage 2.2.8 above and CVR
3.2.8 above; H.264 video encoding only)
● Supports searching by device time in DST in ISO 8601 format, which is represented by "yyyy-
MMddTHH: mm:ss+current time difference". When you are searching by the same time in and
out of DST, you can differentiate them by the current time difference, e.g., searching for
recordings from 2022-11-06T01:10:00-07:00 to 2022-11-06T01:10:00-08:00 means searching for
recordings from 1:10 in DST and 1:10 out of DST, i.e., the duration is an hour.
● Supports streaming from cameras on remote sites. For cascaded streaming via two streaming
media, only RTSP and RTSP_S are supported.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/video/v1/cameras/playbackURLs
Request Parameters
261
HikCentral Professional OpenAPI Developer Guide
262
HikCentral Professional OpenAPI Developer Guide
Note
The days between start time and end time should be no more than three days.
Request Example
{
"beginTime":"2021-04-26T00:00:00+08:00",
"endTime":"2021-04-26T01:00:00+08:00",
"cameraIndexCode":"19",
"recordType":"0",
"protocol":"rtsp",
"transmode":"1",
"uuid":""
"mergeSegment": 0,
"storageLocation": 0
}
Response Parameters
263
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code":"0",
"msg":"Success",
"data":{
"url":"[sms:playback]rtsp://10.41.13.178:554/file/dvr://10.41.7.143:8001/0/channels/33?tcpport=10000",
"authentication":"J3mnUxvJ4vcJ5vdN25FrX/Xru/
5fhLD7DbVcYjWNobrt6NhHuwqYwWxulqfWcFPWhRyeWPi7V4bqkbEiVj9NEuRyrx5VkgoZRF9vrR6MJAcRef96KJfnBEdfKg
VbPBOsF4nSeIxElU5oEE2dBWJMsRKETW7QAhMQXcB2e/SY6NXcHZ/QmE4v27j3H2Y3eJWvjrFwfMSITcThZJPhv1nLGYz
+BVo+zSTKaVX6VP3DeTeiDpQtX0Dvq82+zyAyNBVVehAht3QKVf5DCOsr8o65o8HEEdq+e/
mvrZ4N3EcxadJrMcJmbtIn2YKm7SAbxrCQw2hrnwwDhi0nKYSJJSzfvA==",
"uuid":"",
"recordLocation":1
}
}
Note
Supports streaming from cameras on remote sites. For cascaded streaming via two streaming
media, only RTSP and RTSP_S are supported.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/video/v1/cameras/previewURLs
264
HikCentral Professional OpenAPI Developer Guide
Request Parameters
Request Example
{
"cameraIndexCode":"1",
"streamType":0,
"protocol":"rtsp",
"transmode":1
}
265
HikCentral Professional OpenAPI Developer Guide
Response Parameters
Response Example
{
"code":"0",
"msg":"Success",
"data":{
"url":"[sms:preview]rtsp://10.41.13.178:554/hikvision://10.41.7.66:8001:0:0",
"authentication":"Fsd8eugj2+RYG6EKEgN8/EHy6o5XPdkxD8t7Dy+EH6moE4G0X9+60C7PucJ8TlZOJHpXlM0y
+DwPdkSiALHgLmcWShmtWnKnfD5lhfDSMakMUxtlqfqOalXw5AAcSxoz76LkR8qzI8lKncuhXO9RslvYiC0UJN/
b3tmwUH999oWgJbX6jd3mN/p3FPgi4NtkbADKKnmjEY8NI9cPDcHaMfV+oJCYF0aVCjI3BU9AnPY="
}
}
Note
Supports streaming from cameras on remote sites. For cascaded streaming via two streaming
media, only RTSP and RTSP_S are supported.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/video/v2/cameras/previewURLs
266
HikCentral Professional OpenAPI Developer Guide
Request Parameters
Request Example
{
"cameraIndexCode":"1",
"streamType":0,
"protocol":"rtsp",
"transmode":1,
}
267
HikCentral Professional OpenAPI Developer Guide
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"list": [
{
"url": "[sms:preview]rtsp://10.19.131.67:554/hikvision://10.14.67.204:8000:0:0?bandwidth=4",
"authentication": "Fsd8eugj2+RYG6EKEgN8/EHy6o5XPdkxD8t7Dy
+EH6n0ECvzdKuvVH5xFnTYOEuACuTyjZTCemXqQf6bzYDmvszxZmoGM2j/b2EzE
+96DduQT2+tt4jaSxWVkPcEHIi3lH6kWp/EerFa/TKSolhIuDk3nw7QoNMKLOsJpCqizP/
OIHr8Qv6L0cJoFBw8KSd9J6APaTb7I9dHVStExL/R6NHmNBH9dfJcSgKOCEQRz9A="
},
{
"url": "[sms:preview]rtsp://10.19.131.67:554/hikvision://10.41.7.98:8089:0:0?bandwidth=2",
"authentication": "J3mnUxvJ4vcJ5vdN25FrXxtO+7SQkYajdcztnn8uDbQ3XXPpnNaZjVNzzmf84oM3tO/
TzJUoEh3SEXJfcADJK0XlpPUAFNxNVbO2N5Wx1ueJwIoQ94oxWjBNqcUfgqdww/jc27BGG6U8J
+FvLPoi0GMtbn93I50+LBinpwPAn9T5M
+NyTyU7mwGUKjKcaE5auVkGQ8wSh1VJSNvEyChctp8OjU4ldY8RWMLS1WWoBSk="
}
]
}
}
268
HikCentral Professional OpenAPI Developer Guide
Note
Supports streaming from cameras on remote sites. For cascaded streaming via two streaming
media, only RTSP is supported and EHOME devices are not supported.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/video/v1/cameras/talkURLs
Request Parameters
Request Example
{
"cameraIndexCode": "1",
"transmode": 1
}
269
HikCentral Professional OpenAPI Developer Guide
Response Parameters
Response Example
{
"code":"0",
"msg":"Success",
"data":{
"url":"[sms:voicetalk]rtsp://10.41.13.178:554/voicetalk://10.41.7.66:8001:0:0",
"authentication":"Fsd8eugj2+RYG6EKEgN8/EHy6o5XPdkxD8t7Dy+EH6moE4G0X9+60C7PucJ8TlZOJHpXlM0y
+DwPdkSiALHgLmcWShmtWnKnfD5lhfDSMakMUxtlqfqOalXw5AAcSxoz76LkR8qzI8lKncuhXO9RslvYiC0UJN/
b3tmwUH999oWgJbX6jd3mN/p3FPgi4NtkbADKKnmjEY8NI9cPDcHaMfV+oJCYF0aVCjI3BU9AnPY="
}
}
Note
Streaming from cameras on remote sites is not supported.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/video/v1/device/talkURLs
270
HikCentral Professional OpenAPI Developer Guide
Request Parameters
Request Example
{
"cameraIndexCode": "1",
"transmode": 1
}
Response Parameters
271
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code":"0",
"msg":"Success",
"data":{
"url":"[sms:voicetalk]rtsp://10.41.13.178:554/voicetalk://10.41.7.66:8001:0:0",
"authentication":"Fsd8eugj2+RYG6EKEgN8/EHy6o5XPdkxD8t7Dy+EH6moE4G0X9+60C7PucJ8TlZOJHpXlM0y
+DwPdkSiALHgLmcWShmtWnKnfD5lhfDSMakMUxtlqfqOalXw5AAcSxoz76LkR8qzI8lKncuhXO9RslvYiC0UJN/
b3tmwUH999oWgJbX6jd3mN/p3FPgi4NtkbADKKnmjEY8NI9cPDcHaMfV+oJCYF0aVCjI3BU9AnPY="
}
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/video/v1/patrols/addition
Request Parameters
272
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"cameraIndexCode": "89",
"patrolIndex": 1,
"patrolName": "1",
"patrolPointInfoList": [
{
"presetIndex": 1,
"speed": 1,
"dwellTime": 15
}
]
}
Response Parameters
273
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data": ""
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/video/v1/patrols/deletion
Request Parameters
Request Example
{
"cameraIndexCode": "89",
"patrolIndex":1
}
Response Parameters
274
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data": ""
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/video/v1/patrols/patrolIndex/patrolInfo
Request Parameters
275
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"cameraIndexCode": "89",
"patrolIndex": 1
}
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"patrolIndex": 1,
"patrolName": "1"
}
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/video/v1/patrols/searches
276
HikCentral Professional OpenAPI Developer Guide
Request Parameters
Request Example
{
"cameraIndexCode": "89"
}
Response Parameters
Response Example
{
"code": "0",
277
HikCentral Professional OpenAPI Developer Guide
"msg": "Success",
"data": {
"total": 1,
"list": [
{
"patrolName": "1",
"patrolIndex": 1
}
]
}
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/video/v1/presets/addition
Request Parameters
Request Example
{
"cameraIndexCode": "89"
"presetName":"2",
"presetIndex":2
}
278
HikCentral Professional OpenAPI Developer Guide
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": ""
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/video/v1/presets/deletion
Request Parameters
279
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"cameraIndexCode": "89",
"presetIndex":1
}
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": ""
}
280
HikCentral Professional OpenAPI Developer Guide
Request URL
https://[serverAddress]:[serverPort]/artemis/api/video/v1/presets/searches
Request Parameters
Request Example
{
"cameraIndexCode": "89"
}
Response Parameters
281
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"total": 1,
"list": [
{
"presetName": "1",
"presetIndex": 1
}
]
}
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/video/v1/ptzs/controlling
Request Parameters
282
HikCentral Professional OpenAPI Developer Guide
Note
This field is Opt. only when the
control commands are
"GOTO_PRESET" and "RUN_
PATROL". For other
commands, this field is Req..
283
HikCentral Professional OpenAPI Developer Guide
Note
This field is Req. when the
control command is "GOTO_
PRESET".
Note
This field is Req. when the
control command is "RUN_
PATROL".
Request Example
{
"cameraIndexCode": "89",
"command": "GOTO_PRESET",
"presetIndex":1,
"action": 0,
"speed": 40,
"PatrolIndex": 1
}
Response Parameters
284
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data": ""
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/video/v1/camera/capture
Request Parameters
Request Example
{
"cameraIndexCode": "1"
}
Response Parameters
285
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data": “data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/
2wBDAAYEBAUEBAYFBQUHBgYHCRAKCQgICRMODgsQFxQYGBYUFhYZHCQfGRsiGxYWICsgIiYnKSkpGB4tMCwoMCQoKSf
/2wBDAQYHBwkICRIKChInGhYaJycnJycnJycnJycnJycnJycnJycnJycnJycnJycnJy”
}
Note
The length of the recording should not exceed one minute.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/video/v1/download
Request Parameters
286
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"url": "rtsp://10.18.66.12:554/sms/HCPEurl/commonvideobiz_yL3BB0IJEfmZXqcbVjpen
%2BT1uYbybvT38kqzRR6XaakK2GcRosSrw4A9o%2FFtIeHzaYm3O%2Fmn
%2FWOZwbiNhwhk9eTw1oiI8YFyIY5tLp5CJu7RnoINpei1W22NqnwyDt
%2FcnLNZEnXoejzLazu9A0oXWVwxjsV99%2FtZXqJx8K7601%2BywBbErC80PzfVyFWd5HKmEz8NVdNCVT2fqokL8868ffQ
i8uMYNLXYSE0FEsqunLs%3D",
"authentication": "Fsd8eugj2+RYG6EKEgN8/EHy6o5XPdkxD8t7Dy
+EH6moE4G0X9+60C7PucJ8TlZOdGIK3lH5W7JDFdrercIsiJb1bl9Y52PGA/K/QXIff+84XMQ=",
"beginTime": "2022-09-07T19:38:16+08:00",
"endTime": "2022-09-07T19:38:16+08:00",
287
HikCentral Professional OpenAPI Developer Guide
"videoType": 1
}
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"downloadID": "F704686D84CD4E34A2181A915862FE3F"
}
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/video/v1/downloadURL
288
HikCentral Professional OpenAPI Developer Guide
Request Parameters
Request Example
{
"downloadID": "1"
}
Response Parameters
289
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"percent": "1",
"url": "http://10.18.66.12/download/20221017204905_F704686D84CD4E34A2181A915862FE3F.avi"
}
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/video/v1/event/searchLabels
Request Parameters
290
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"pageNo": 1,
"pageSize": 2,
"cameraIndexCode": "1",
"startTime": "2022-08-06T09:58:39+08:00",
"endTime": "2022-08-06T09:58:39+08:00",
"eventLabel": 1
}
Response Parameters
291
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"totalNum": 8,
"pageNo": 1,
"pageSize": 100,
"labelList": [
"labelCode": "35",
"labelEvent": 2,
"startTime": "2022-10-20T15:56:13+08:00",
"endTime": "2022-10-20T15:56:23+08:00"
]
}
}
292
HikCentral Professional OpenAPI Developer Guide
Request URL
https://[serverAddress]:[serverPort]/artemis/api/eventService/v1/eventRecords/controlling
Request Parameters
Request Example
{
"eventIndexCodes":"1f276203e5234bdca08f7d99e1097bba",
"controlType":1
}
Response Parameters
293
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code":"0",
"msg":"Success",
"data":""
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/eventService/v1/eventRecords/page
Request Parameters
294
HikCentral Professional OpenAPI Developer Guide
295
HikCentral Professional OpenAPI Developer Guide
Note
The days between start time and end time should be no more than 31 days.
Request Example
{
"eventIndexCode": "12321432154316547",
"eventTypes": "131329",
"srcType": "camera",
"srcIndexs": "1",
"startTime": "2018-07-26T15:00:00+08:00",
"endTime": "2018-07-26T16:00:00+08:00",
"pageNo": 1,
"pageSize": 15
}
296
HikCentral Professional OpenAPI Developer Guide
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"total":1,
"pageNo":1,
"pageSize":15,
"list": [
{
"eventIndexCode": "12321432154316547",
"eventType": "131329",
"srcType": "camera",
"srcIndex": "1",
"description": "abc",
"startTime": "2018-07-26T15:00:00+08:00",
"stopTime": "2018-07-26T16:00:00+08:00",
"eventPicUri": "0B4E92A30AF914C1285613A4FBD9F761F ",
"linkCameraIndexCode": "2"
}
297
HikCentral Professional OpenAPI Developer Guide
]
}
}
Note
After the event callback is enabled, there might be exceptions in 3 circumstances.
● OpenAPI exception: Restart the OpenAPI service and the event records during the exception
period will be pushed from the HikCentral Professional platform to the partner again.
● Third party service or network exception: The pushed events (max. number: 500) will be cached
Request URL
https://[serverAddress]:[serverPort]/artemis/api/eventService/v1/eventSubscriptionByEventTypes
Request URL
Request Parameters
298
HikCentral Professional OpenAPI Developer Guide
Note
Refer to Event Message
Format for the event details
received in the address.
Request Example
{
"eventTypes":[131329,131330,131331],
"eventDest":"https://10.18.66.21:8080/eventRcv"
}
Response Parameters
299
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": 0,
"msg": "Success"
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/eventService/v1/eventSubscriptionView
Request Parameters
Request Example
uri:/api/eventService/v1/eventSubscriptionView
Response Parameters
300
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": 0,
"msg": “Success”,
"data": {
"detail":
[
{
"eventTypes":[131329,131330,131331],
"eventDest":" https://10.18.66.21:8080 /eventRcv ",
"passBack":0
}
]
}
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/eventService/v1/
eventUnSubscriptionByEventTypes
301
HikCentral Professional OpenAPI Developer Guide
Request Parameters
Request Example
{
"eventTypes":[131329,131330,131331]
}
Response Parameters
Response Example
{
"code": 0,
302
HikCentral Professional OpenAPI Developer Guide
"msg": "Success",
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/eventService/v1/generalEventRule/
generalEventRuleList
Request Parameters
Request Example
{
"pageNo": 1,
"pageSize": 1
}
Response Parameters
303
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"total": 3,
"pageNo": 1,
"pageSize": 1,
"list": [
{
"generalEventRuleIndexCode": "1",
"generalEventRuleName": "1",
"transportType": 0,
"matchType": 0,
"expression": "\"1\" AND \"1\"",
"regularExpression": "(1.*1|1.*1)"
}
]
}
}
304
HikCentral Professional OpenAPI Developer Guide
Request URL
https://[serverAddress]:[serverPort]/artemis/api/eventService/v1/generalEventRule/single/add
Request Parameters
305
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"generalEventRuleName": "name1",
"transportType": 0,
"matchType": 0,
"expression": "\'1\' AND \'2\'",
"regularExpression": "(1.*2|2.*1)"
}
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": ""
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/eventService/v1/generalEventRule/single/delete
306
HikCentral Professional OpenAPI Developer Guide
Request Parameters
Request Example
{
"generalEventRuleIndexCode": "1"
}
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": ""
}
307
HikCentral Professional OpenAPI Developer Guide
Request URL
https://[serverAddress]:[serverPort]/artemis/api/eventService/v1/generalEventRule/single/update
Request Parameters
308
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"generalEventRuleIndexCode": "1",
"generalEventRuleName": "name2",
"transportType": 0,
"matchType": 0,
"expression": "\"1\" AND \"2\"",
"regularExpression": "(1.*2|2.*1)"
}
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": ""
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/eventService/v1/generalEventRule/triggerAlarm
309
HikCentral Professional OpenAPI Developer Guide
Request Parameters
Request Example
{
"generalEventRuleIndexCodes": "1",
"description": "descriptioninfo",
"alarmPriority": 1,
310
HikCentral Professional OpenAPI Developer Guide
"triggerPopupWindows": 0,
"linkCameraList": [
{
"cameraIndexCode": "1",
"recordType": 0
}
],
"defaultPlayType": 0
}
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": ""
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/eventService/v1/image_data
311
HikCentral Professional OpenAPI Developer Guide
Request Parameters
Request Example
{
"picUri": "/pic?=d7ei703i10cd*73a-d5108a--22cd0c9d6592aiid="
}
Response Parameters
312
HikCentral Professional OpenAPI Developer Guide
Response Example
"data:image/jpeg;base64,/9j/4AAQSkzFYSEbxpSTWIl7lb2dtYSUW4zd9E/K/U+h9Ls49L0y20yFyy29ukSs3UhVAB/
SigyEjFFG5+2RioRUV0P/2Q=="
Request URL
https://[serverAddress]:[serverPort]/artemis/api/eventService/v1/deviceApplicationEvent
Request Parameters
313
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"pageIndex": 1,
"pageSize": 10,
"criteria": {
"eventCategory": 100652,
"eventName": "name"
},
"sort": {
"sortField": "EventName",
"orderType": 0
}
}
Response Parameters
314
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"totalNum": 1,
"pageIndex": 1,
"pageSize": 10,
"event": [
{
"eventCode": 1,
"eventType": 1,
"eventName": "name",
"rawEventName": "rawname",
"description": "test",
"eventCategory": 100652
}
]
}
}
Remark
We recommend that you use the API ( POST /artemis/api/visitor/v1/registerment ), which will
take the place of the old one ( POST /artemis/api/visitor/v1/appointment ).
315
HikCentral Professional OpenAPI Developer Guide
Request URL
https://[serverAddress]:[serverPort]/artemis/api/visitor/v1/appointment
Request Parameters
316
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"receptionistId": "",
"visitStartTime": "2018-07-26T15:00:00+08:00",
"visitEndTime": "2018-07-26T16:00:00+08:00",
"visitPurposeType": 0,
"visitPurpose": "visitor",
"visitorInfoList": [
{
"VisitorInfo": {
"visitorFamilyName": "san",
"visitorGivenName": "zhang",
"gender": 1,
"email": "[email protected]",
"phoneNo": "13600000000",
"plateNo": "A666",
"companyName": "AAA",
"certificateType": 111,
"certificateNo": "null",
"remark": "visitor",
"accessInfo": {
"electrostaticDetectionType": 0,
"qrCodeValidNum": 0
},
"watchListInfo": [
{
"enableRegister": 1,
"ID": “0”,
"Type": "1"
}
],
"faces": [
{
"faceData": "/9j/4AAQSkZRgABAQEAAAAAAAD/4QBCRXhpZgAATU.."
}
],
"fingerPrint": [
{
317
HikCentral Professional OpenAPI Developer Guide
"fingerPrintIndexCode": "1",
"fingerPrintName": "fringe_pringt_01",
"fingerPrintData": "46504D228697F1AD0146C8D00",
"relatedCardNo": "123456"
}
],
"cards": [
{
"cardNo": "123456"
}
]
}
}
]
}
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": {
318
HikCentral Professional OpenAPI Developer Guide
"appointRecordId": "1",
"visitorId":”"2"
}
}
Remark
We recommend that you use the API ( POST /artemis/api/visitor/v1/registerment/update ),
which will take the place of the old one ( POST /artemis/api/visitor/v1/appointment/update ).
Request URL
https://[serverAddress]:[serverPort]/artemis/api/visitor/v1/appointment/update
Request Parameters
319
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"appointRecordId": "1",
"receptionistId": "1",
"visitStartTime": "2018-07-26T15:00:00+08:00",
"visitEndTime": "2018-07-26T16:00:00+08:00",
"visitPurposeType": 0,
"visitPurpose": "visitor",
"visitorInfoList": [
{
"VisitorInfo": {
"visitorFamilyName": "san",
"visitorGivenName": "zhang",
"gender": 1,
"email": "null",
"phoneNo": "13600000000",
"plateNo": "BBBA",
"companyName": "AAA",
"certificateType": 111,
"certificateNo": "null",
"remark": "null",
"accessInfo": {
"electrostaticDetectionType": 0,
"qrCodeValidNum": 0
},
320
HikCentral Professional OpenAPI Developer Guide
"faces": [
{
"faceData": "/9j/4AAQSkZJRgABAQEAAAAAAAD/4QBCRXhpZgAATU.."
}
],
"fingerPrint": [
{
"fingerPrintIndexCode": "1",
"fingerPrintName": "fringe_pringt_01",
"fingerPrintData": "46504D228697F1AD0146C8D00",
"relatedCardNo": "123456"
}
],
"cards": [
{
"cardNo": "123456"
}
]
}
}
]
}
Response Parameters
321
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data":
}
Remark
We recommend that you use the API ( POST /artemis/api/visitor/v1/registerment ), which will
take the place of the old one ( POST /artemis/api/visitor/v1/appointment ), for checking in a
visitor.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/visitor/v1/registerment
Request Parameters
322
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"receptionistId": "",
"visitStartTime": "2018-07-26T15:00:00+08:00",
"visitEndTime": "2018-07-26T16:00:00+08:00",
"visitPurposeType": 0,
"visitPurpose": "visitor",
"visitorInfoList": [{
"VisitorInfo": {
"visitorFamilyName": "san",
323
HikCentral Professional OpenAPI Developer Guide
"visitorGivenName": "zhang",
"gender": 1,
"email": "[email protected]",
"phoneNo": "13600000000",
"plateNo": "A666",
"companyName": "AAA",
"certificateType": 111,
"certificateNo": "null",
"remark": "visitor",
"accessInfo": {
"electrostaticDetectionType": 0,
"qrCodeValidNum": 0
},
"watchListInfo": [
{
"enableRegister": 1,
"ID": “0”,
"Type": "1" }
],
"faces": [{
"faceData": "/9j/4AAQSkZRgABAQEAAAAAAAD/4QBCRXhpZgAATU.."
}],
"fingerPrint": [{
"fingerPrintIndexCode": "1",
"fingerPrintName": "fringe_pringt_01",
"fingerPrintData": "46504D228697F1AD0146C8D00",
"relatedCardNo": "123456"
}],
"cards": [{
"cardNo": "123456"
}]
}
}]
}
Response Parameters
324
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"code": "0",
"msg": "Success",
"data": {
"appointRecordId": "1",
"visitorId":"2"
"qrCodeImage": "iVBORw0KGgoAAAANSUhEUg”
}
}
Remark
We recommend that you use the API ( POST /artemis/api/visitor/v1/registerment/update ),
which will take the place of the old one ( POST /artemis/api/visitor/v1/appointment/update ).
Request URL
https://[serverAddress]:[serverPort]/artemis/api/visitor/v1/registerment/update
325
HikCentral Professional OpenAPI Developer Guide
Request Parameters
326
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"appointRecordId": "1",
"receptionistId": "1",
"visitStartTime": "2018-07-26T15:00:00+08:00",
"visitEndTime": "2018-07-26T16:00:00+08:00",
"visitPurposeType": 0,
"visitPurpose": "visitor",
"visitorInfoList": [
{
"VisitorInfo": {
"visitorFamilyName": "san",
"visitorGivenName": "zhang",
"gender": 1,
"email": "null",
"phoneNo": "13600000000",
"plateNo": "BBBA",
"companyName": "AAA",
"certificateType": 111,
"certificateNo": "null",
"remark": "null",
"accessInfo": {
"electrostaticDetectionType": 0,
"qrCodeValidNum": 0
},
"faces": [
{
"faceData": "/9j/4AAQSkZJRgABAQEAAAAAAAD/4QBCRXhpZgAATU.."
}
],
"fingerPrint": [
{
"fingerPrintIndexCode": "1",
"fingerPrintName": "fringe_pringt_01",
"fingerPrintData": "46504D228697F1AD0146C8D00",
"relatedCardNo": "123456"
}
327
HikCentral Professional OpenAPI Developer Guide
],
"cards": [
{
"cardNo": "123456"
}
]
}
}
]
}
Response Parameters
Request Example
{
"code": "0",
"msg": "Success",
"data":
}
328
HikCentral Professional OpenAPI Developer Guide
Request URL
https://[serverAddress]:[serverPort]/artemis/api/visitor/v2/appointment
Request Parameters
329
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"receptionistId":"2",
"appointStartTime":"2021-05-09T15:00:00+08:00",
"appointEndTime":"2021-05-14T15:00:00+08:00",
"visitReasonType":0,
"visitReasonDetail":"null",
"visitorInfoList":[
{
"VisitorInfo":{
"visitorFamilyName":"mmm",
"visitorGivenName":"yyyy",
"gender":1,
"email":"[email protected]",
"phoneNo":"13600000000",
"plateNo":"Zhe A",
"companyName":"hik",
"certificateType":111,
330
HikCentral Professional OpenAPI Developer Guide
"certificateNo":"dddd2234",
"remark":"null",
"accessInfo": {
"electrostaticDetectionType": 0,
"qrCodeValidNum": 0,
"accessLevelList": [
{
"accessLevel": {
"id": 1,
"baseInfo": {
"name": "1"
}
}
}
]
},
"watchListInfo": [
{
"enableRegister": 1,
"ID": "0",
"Type": "1" }
],
"faces":[
{
"faceData":"/9j/4AAQSkZRgABAQEAAAAAAAD/4QBCRXhpZgAATU.."
}
],
"identiPhoto":[
{
"identiPhotoData":"/9j/4AAQSkZRgABAQEAAAAAAAD/4QBCRXhpZgAATU.."
}
],
"customField":[
{
"customID":"1",
"customFieldName":"",
"customFieldType":0,
"customFieldValue":""
}
]
}
}
],
"accessInfo": {
"accessLevelList": [
{
"accessLevel": {
"id": 1,
"baseInfo": {
"name": "1"
}
}
331
HikCentral Professional OpenAPI Developer Guide
}
]
}
}
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"appointRecordId": "1",
"visitorId": "2",
"qrCodeImage": "iVBORw0KGgoAANIAAADSAQMAAAAFVwwBAAA",
"AppointCode": "5080",
"watchListInfo": [
{
332
HikCentral Professional OpenAPI Developer Guide
"enableRegister": true,
"id": 0,
"type": "1",
"visitorType": "",
"type": "",
"remark": "",
"visitorTypeName": "",
"identiFicationType": "",
"identiFiyCode": "",
"haveVisitorHeadPic": 0,
"haveVisitorIdentiPic": 0,
}
]
}
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/visitor/v1/appointment/single/delete
Request Parameters
Request Example
{
"appointRecordId ": "5"
}
333
HikCentral Professional OpenAPI Developer Guide
Response Parameters
Request Example
{
"code": "0",
"msg": "Success",
"data":""
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/visitor/v2/appointment/update
Request Parameters
334
HikCentral Professional OpenAPI Developer Guide
335
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"receptionistId":"",
"appointStartTime":"2020-10-26T15:00:00+08:00",
"appointEndTime":"2020-10-29T15:00:00+08:00",
"visitReasonType":0,
"visitReasonDetail":"null",
"visitorInfoList":[{
"VisitorInfo":{
"visitorFamilyName":"null",
"visitorGivenName":"null",
"gender":1,
"email":"",
"phoneNo":"13600000000",
"plateNo":"A",
"companyName":"hik",
"certificateType":111,
"certificateNo":"null",
"remark":"null",
"accessInfo": {
"electrostaticDetectionType": 0,
"qrCodeValidNum": 0,
"accessLevelList": [
{
"accessLevel": {
"id": 1,
"baseInfo": {
"name": "1"
}
}
}
]
},
"faces": "null",
"customField":[
{
"customID":"1",
"customFieldName":"",
"customFieldType":0,
336
HikCentral Professional OpenAPI Developer Guide
"customFieldValue":""
}
]
}
}
]
}
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"appointRecordId": "6",
"visitorId": "5",
"appointCode": "6582"
}
}
337
HikCentral Professional OpenAPI Developer Guide
Request URL
https://[serverAddress]:[serverPort]/artemis/api/visitor/v1/visitor/out
Request Parameters
Request Example
{
"appointRecordId": "1"
}
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
338
HikCentral Professional OpenAPI Developer Guide
"data":
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/visitor/v1/appointment/appointmentlist
Request Parameters
339
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"pageNo": 1,
"pageSize": 100,
"appointStartTime": "2021-04-09T15:00:00+08:00",
"appointEndTime": "2021-05-19T15:00:00+08:00",
"visitorName": "sad",
"companyName": "AAA",
"interviewName": "",
"appointCode": "",
"identiCode": "111",
"phoneNo": "",
"appointState": "",
340
HikCentral Professional OpenAPI Developer Guide
"visitorReason": 4
}
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"total": 1,
"pageNo": 1,
"pageSize": 100,
"list": [{
"appointStartTime": "2021-05-06T17:00:39+08:00",
"appointEndTime": "2021-05-06T23:59:59+08:00",
"appointCode": "5905",
"appointID": "5",
"visitReasonType": 4,
341
HikCentral Professional OpenAPI Developer Guide
"visitorReasonName": "other",
"visitReasonDetail": "123",
"appointStatus": 0,
"visitorInfo": {
"visitorId": "4",
"email": "",
"remark": "",
"visitorFamilyName": "sdasd",
"visitorGivenName": "sad",
"visitorName": "sad sdasd",
"gender": 1,
"plateNo": "",
"phoneNo": "",
"companyName": "hik",
"certificateType": 111,
"certificateNo": "1234567",
"visitorPhoto": {
"haveVisitorPhoto": 0,
"haveIdentiPhoto": 0
},
"customField":[
{
"customID":"1",
"customFieldName":"",
"customFieldType":0,
"customFieldValue":""
}
]
"accessInfo": {
“electrostaticDetectionType”:1,
"qrCodeValidNum":1,
"accessLevelList": [
{
"accessLevel": {
"id": 1,
"baseInfo": {
"name": "1"
}
}
}
]
}
}
}
]
}
}
342
HikCentral Professional OpenAPI Developer Guide
Request URL
https://[serverAddress]:[serverPort]/artemis/api/visitor/v1/appointment/downloadpicture
Request Parameters
Request Example
{
"visitorId": "1",
"picType": "0"
}
Response Parameters
343
HikCentral Professional OpenAPI Developer Guide
Request Example
"data:image/jpeg;base64,/9j/4AAQSkzFYSEbxpSTWIl7lb2dtYSUW4zd9E/K/U+h9Ls49L0y20yFyy29ukSs3UhVAB/
SigyEjFFG5+2RioRUV0P/2Q=="
"data:image/jpeg;base64,/9j/4AAQSkzFYSEbxpSTWIl7lb2dtYSUW4zd9E/K/U+h9Ls49L0y20yFyy29ukSs3UhVAB/
SigyEjFFG5+2RioRUV0P/2Q=="
Request URL
https://[serverAddress]:[serverPort]/artemis/api/visitor/v1/visitorconfig/customfields
Request Parameters
344
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"pageIndex":0,
"pageSize":0,
"customFieldName":""
}
Response Parameters
345
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code":"0",
"msg":"Success",
"data":{
"CustomFieldList":{
"TotalNum":0,
"pageIndex":0,
"pageSize":0,
"CustomField":[
{
"indexCode":0,
"customFieldType": 0,
"customFieldName":"",
"PresetValueList":{
"PresetValue":[
{
"indexCode":0,
"value":""
}
]
}
}
]
}
}
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/visitor/v1/visitorgroups
346
HikCentral Professional OpenAPI Developer Guide
Request Parameters
Request Example
{
"SearchCriteria": {
"visitorGroupName": ""
}
}
Response Parameters
347
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code":"0",
"msg":"Success",
"data":{
"VisitorGroupList":{
"VisitorGroup":[{
" indexCode":0,
"baseInfo":{
"name":""
}
}]
}
}
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/visitor/v1/visitorgroups/groupinfo
Request Parameters
348
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"VisitorListRequest":{
"indexCode":"1",
"pageIndex":0,
"pageSize":0,
"searchCriteria":{
"identifiyCode":"",
"personName":"",
"phoneNum":"",
"companyName":"",
"remperatureStatus":0,
"blackLisitStatus":0
}
}
}
Response Parameters
349
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code":"0",
"msg":"Success",
"data":{
"pageSize":1,
"pageIndex ":10,
"total":10,
"VisitorList":{
"Visitor":[{
"ID":0,
"BaseInfo":{
"fullName":""
}
}]
}
}
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/visitor/v1/visitor/visitorInfo
350
HikCentral Professional OpenAPI Developer Guide
Request Parameters
Request Example
{
"pageNo ":"0",
" pageSize":"20",
"searchCriteria":{
"visitorGroupID":"1,2,3"
}
}
351
HikCentral Professional OpenAPI Developer Guide
Response Parameters
Request URL
https://[serverAddress]:[serverPort]/artemis/api/visitor/v1/visitor/single/visitorinfo
Request Parameters
Request Example
{
"visitorId": "125"
}
352
HikCentral Professional OpenAPI Developer Guide
Response Parameters
Request URL
https://[serverAddress]:[serverPort]/artemis/api/visitor/v1/auth/reapplication
Request Parameters
353
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"ImmediateDownload": 0,
"personIds": "1",
"doorIndexCodes": "2"
}
Response Parameters
Response Example
{
"code": "0",
"msg": "ok",
"data": ""
}
354
HikCentral Professional OpenAPI Developer Guide
Request URL
https://[serverAddress]:[serverPort]/api/visitor/v1/visitorapprovalflow/status
Request Parameters
Request Example
{
"Visitor": {
"operateType": 0,
"approvalOpinion": "null",
"ApprovalFlowInfo": [
{
"approvalFlowCode": "null",
"watchlistInfo": {
"id": 0
}
}
]
}
}
Response Parameters
355
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "success",
"data":[
{
"errorCode": 0,
"visitorID": 0,
"approvalFlowCode": "null",
"visitorName": "null"
}
]
}
Request URL
https://[serverAddress]:[serverPort]/api/visitor/v1/visitorConfig/automaticApproval
Request Parameters
None.
Request Example
None.
Response Parameters
356
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "success",
"data":{
"automaticApproval": 1
}
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/pms/v1/image
357
HikCentral Professional OpenAPI Developer Guide
Request Parameters
Request Example
{
"picUri": "0B4E92A30AF914C1285613A4FBD9F761F"
}
Response Parameters
Response Example
HTTP/1.1
Content-Type:image/jpeg;charset=utf-8
358
HikCentral Professional OpenAPI Developer Guide
Date:YourDate
Content-Length:image_length
[Picture Data]
Request URL
https://[serverAddress]:[serverPort]/artemis/api/pms/v1/crossRecords/page
Request Parameters
359
HikCentral Professional OpenAPI Developer Guide
Note
The days between start time and end time should be no more than 31 days.
Request Example
{
"cameraIndexCode": "1",
"plateNo": "a123456",
"ownerName": "aaa",
"contact": "123",
"startTime": "2018-07-26T15:00:00+08:00",
"endTime": "2018-07-26T16:00:00+08:00",
"pageNo": 1,
"pageSize": 10"
}
Response Parameters
360
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"total":1,
"pageNo":1,
"pageSize":15,
"list": [
{
"crossRecordSyscode": "74554754035654645",
"cameraIndexCode": "1",
"plateNo": "a123456",
"ownerName": "aaa",
"contact": 123,
"vehicleType": 1,
"vehiclePicUri": "/pic?=d7ei703i10cd*73a-d5108a--22cd0c9d6592aiid=",
"crossTime": "2018-07-26T15:00:00+08:00",
"createTime": "2018-07-26T15:00:00+08:00"
}
]
}
}
361
HikCentral Professional OpenAPI Developer Guide
Request URL
https://[serverAddress]:[serverPort]/artemis/api/vehicle/v1/parkinglot/list
Request Parameters
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"total": 3,
"list": [
{
362
HikCentral Professional OpenAPI Developer Guide
"parkingLotIndexCode": "1",
"parkingLotName": "parkinglot",
"parentParkingLotIndexCode": "-1",
"totalSpaceNum": 1000,
"freeSpaceNum": 0,
"totalPermanentSpaceNum": 500,
"freePermanentSpaceNum": 202,
"maxParkingTime": 9
},
{
"parkingLotIndexCode": "2",
"parkingLotName": "parking lot 2",
"parentParkingLotIndexCode": "-1",
"totalSpaceNum": 600,
"freeSpaceNum": 600,
"totalPermanentSpaceNum": 500,
"freePermanentSpaceNum": 500,
"maxParkingTime": 7
},
{
"parkingLotIndexCode": "4",
"parkingLotName": "parking lot 3",
"parentParkingLotIndexCode": "2",
"totalSpaceNum": 2,
"freeSpaceNum": 2,
"totalPermanentSpaceNum": -1,
"freePermanentSpaceNum": -1,
"maxParkingTime": -1
}
]
}
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/vehicle/v1/floor/list
Request Parameters
363
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"parkingLotIndexCode": "1"
}
Response Parameters
Response Example
{
"code":"0",
"msg":"Success",
364
HikCentral Professional OpenAPI Developer Guide
"data":{
"total":3,
"list":[{
"floorIndexCode":"12",
"floorName":"666",
"parkingLotIndexCode":"1",
"parkingLotName":" xxxx"
},
{
"floorIndexCode":"13",
"floorName":"111",
"parkingLotIndexCode":"1",
"parkingLotName":"xxxx"
},
{
"floorIndexCode":"14",
"floorName":"122",
"parkingLotIndexCode":"1",
"parkingLotName":"xxxx"
}]
}
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/vehicle/v1/floor/overview
Request Parameters
365
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"parkingLotIndexCode" : "1",
"floorIndexCode" : "14"
}
Response Parameters
366
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code":"0",
"msg":"Success",
"data":{
"total":1,
"totalSpaceNum":50,
"freeSpaceNum":48,
"list":[{
"floorIndexCode":"14",
"floorName":"122",
"parkingLotIndexCode":1,
"totalSpaceNum":50,
"freeSpaceNum":48,
"spaceTypeOverView":[{
"typeIndexCode":"1",
"typeName":"general",
"typeColor":"#FFFF00",
"totalSpaceNum":6,
"freeSpaceNum":4
},
{
"typeIndexCode":"2",
"typeName":"allow",
"typeColor":"#00FF00",
"totalSpaceNum":6,
"freeSpaceNum":6
},
{
"typeIndexCode":"3",
"typeName":"forbid",
"typeColor":"#0000FF",
"totalSpaceNum":8,
"freeSpaceNum":8
}]
}]
}
}
367
HikCentral Professional OpenAPI Developer Guide
Request URL
https://[serverAddress]:[serverPort]/artemis/api/vehicle/v1/floor/parkingspace/status
Request Parameters
Request Example
{
"floorIndexCode": "1"
}
Response Parameters
368
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code":"0",
"msg":"Success",
"data":{
"total":3,
"list":[{
"spaceIndexCode":"1",
"floorIndexCode":"1",
"spaceType":3,
"serial":"1",
"status":1,
"plateNumber":"",
"creatTime":"2021-07-26T19:58:12+08:00",
"duration":16,
"parkingImageUrl":"Vsm://PHQG#20210726#20210726_193035917.d:104558170:490700",
"platenumberImageUrl":""
},
{
"spaceIndexCode":"2",
"floorIndexCode":"1",
"spaceType":3,
"serial":"2",
"status":1,
"plateNumber":"",
"creatTime":"2021-07-26T11:23:36+08:00",
"duration":30892,
"parkingImageUrl":"Vsm://PHQG#20210726#20210726_112325847.d:1941072:537216",
"platenumberImageUrl":""
},
{
"spaceIndexCode":"3",
"floorIndexCode":"1",
"spaceType":3,
"serial":"3",
"status":1,
"plateNumber":"",
"creatTime":"2021-07-26T13:41:15+08:00",
"duration":22633,
"parkingImageUrl":"Vsm://PHQG#20210726#20210726_131648673.d:129672100:456972",
"platenumberImageUrl":""
}]
369
HikCentral Professional OpenAPI Developer Guide
}
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/vehicle/v1/parkinglot/passageway/record
Request Parameters
370
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"pageIndex": 1,
"pageSize": 3,
"queryInfo": {
"parkingLotIndexCode": "1",
"beginTime": "2021-07-21T00:00:00+08:00",
"endTime": "2021-07-21T23:59:59+08:00",
"ownerName": "",
"plateLicense": "",
"directionType": -1,
"allowResult": -1
}
}
Response Parameters
371
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code":"0",
"msg":"Success",
"data":{
"total":3,
"pageIndex":1,
"pageSize":3,
"list":[{
"guid":"0F388D71AFA346CABCBA4FB91312861B",
"parkingLotInfo":{
"parkingLotIndexCode":"1",
"parkingLotName":"parking lot33"
},
"passagewayInfo":{
"passagewayIndexCode":"1",
"passagewayName":"Default Entrance & Exit01"
},
"laneInfo":{
"laneIndexCode":"1",
"laneName":"entrance 1",
"direction":1
},
372
HikCentral Professional OpenAPI Developer Guide
"personInfo":{
"cardNum":"",
"ownerName":"",
"ownerPhoneNum":""
},
"carInfo":{
"plateLicense":"BJ08FNV",
"carType":3,
"ImageUrl":"Vsm://PHQG#20210721#20210721_232955105.d:198227798:102096",
"EnterTime":"2021-07-21T23:59:57+08:00",
"ExitTime":""
},
"allowType":3,
"allowResult":2
},
{
"guid":"31775DB5BF1940F681D03FD7DBDA623E",
"parkingLotInfo":{
"parkingLotIndexCode":"1",
"parkingLotName":"parking lot33"
},
"passagewayInfo":{
"passagewayIndexCode":"1",
"passagewayName":"Default Entrance & Exit01"
},
"laneInfo":{
"laneIndexCode":"1",
"laneName":"entrance 1",
"direction":1
},
"personInfo":{
"cardNum":"",
"ownerName":"",
"ownerPhoneNum":""
},
"carInfo":{
"plateLicense":"N500GES",
"carType":3,
"ImageUrl":"Vsm://PHQG#20210721#20210721_232955105.d:198025042:100636",
"EnterTime":"2021-07-21T23:59:50+08:00",
"ExitTime":""
},
"allowType":3,
"allowResult":2
},
{
"guid":"4EE0D343B9D94DA58FA335D2506DC290",
"parkingLotInfo":{
"parkingLotIndexCode":"1",
"parkingLotName":"parking lot33"
},
"passagewayInfo":{
373
HikCentral Professional OpenAPI Developer Guide
"passagewayIndexCode":"1",
"passagewayName":"Default Entrance & Exit01"
},
"laneInfo":{
"laneIndexCode":"1",
"laneName":"entrance 1",
"direction":1
},
"personInfo":{
"cardNum":"",
"ownerName":"",
"ownerPhoneNum":""
},
"carInfo":{
"plateLicense":"VE54CTY",
"carType":3,
"ImageUrl":"Vsm://PHQG#20210721#20210721_232955105.d:197822794:101588",
"EnterTime":"2021-07-21T23:59:44+08:00",
"ExitTime":""
},
"allowType":3,
"allowResult":2
}]
}
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/vehicle/v1/parkingspace/record
Request Parameters
374
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"pageIndex":1,
"pageSize":3,
"queryInfo":{
375
HikCentral Professional OpenAPI Developer Guide
"parkingLotIndexCode":"1",
"floorIndexCode":"1",
"beginTime":"2021-07-22T00:00:00+08:00",
"endTime":"2021-07-22T23:59:59+08:00",
"spaceSerial":"1",
"plateLicense":"",
"statusType":0
}
}
Response Parameters
Response Example
{
"code":"0",
"msg":"Success",
"data":{
"total":3,
"pageIndex":1,
376
HikCentral Professional OpenAPI Developer Guide
"pageSize":3,
"list":[{
"guid":30726,
"parkingLotIndexCode":"1",
"parkingLotName":"parkinglot",
"floorIndexCode":"1",
"floorName":"F3",
"parkingSpaceSerial":"11",
"plateLicense":"ARB209KE",
"parkingStatusType":0,
"occurTime":"2021-07-22T23:59:51+08:00"
},
{
"guid":30725,
"parkingLotIndexCode":"1",
"parkingLotName":"parkinglot",
"floorIndexCode":"1",
"floorName":"F3",
"parkingSpaceSerial":"11",
"plateLicense":"unknown",
"parkingStatusType":0,
"occurTime":"2021-07-22T23:59:41+08:00"
},
{
"guid":30721,
"parkingLotIndexCode":"1",
"parkingLotName":"parkinglot",
"floorIndexCode":"1",
"floorName":"F3",
"parkingSpaceSerial":"11",
"plateLicense":"unknown",
"parkingStatusType":0,
"occurTime":"2021-07-22T23:59:18+08:00"
}]
}
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/vehicle/v1/parkingfee/calculate
377
HikCentral Professional OpenAPI Developer Guide
Request Parameters
Request Example
{
"plateLicense" : "2700H"
}
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"plateLicense": "2700H",
"parkingInTime": "2022-03-30T11:39:35+08:00",
"parkingDuration": 1134404,
"feeRuleType": 1,
"feeRuleIndexCode": "1",
"feeRuleName": "rule1",
"fee": "10.00"
378
HikCentral Professional OpenAPI Developer Guide
}
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/vehicle/v1/parkingfee/confirm
Request Parameters
Request Example
{
"plateLicense" : "2700H",
"immediatelyLeave" : 0,
"fee" : "200"
}
379
HikCentral Professional OpenAPI Developer Guide
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"fee": "200.00",
"feeTime": "2022-04-12T14:48:11+08:00"
}
}
Request URL
https://[serverAddress]:[serverPort]/api/vehicle/v1/vehicle/blocklist/add
Request Parameters
380
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"plateLicense":"123",
"personGivenName":"KaiRui",
"personFamilyName":"Jin",
"phoneNo":"1-1807894561",
381
HikCentral Professional OpenAPI Developer Guide
"description":"xxxxxx",
"effectiveDate":"2022-03-21T00:00:00+08:00",
"expiredDate":"2023-03-25T23:59:59+08:00"
}
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": ""
}
Request URL
https://[serverAddress]:[serverPort]/api/vehicle/v1/vehicle/blocklist/get
Request Parameters
382
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"pageIndex": 1,
"pageSize" : 10,
"keyWords" : ""
}
Response Parameters
383
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"total": 1,
"pageIndex": 1,
"pageSize": 10,
"list": [
{
"vehicleIndexCode": "1",
"plateLicense": "123",
"personGivenName": "KaiRui",
"personFamilyName": "Jin",
"phoneNo": "1-1807894561",
"description": "xxxxxx",
"effectiveDate": "2022-03-21T00:00:00+08:00",
"expiredDate": "2023-03-25T23:59:59+08:00"
}
]
}
}
384
HikCentral Professional OpenAPI Developer Guide
Request URL
https://[serverAddress]:[serverPort]/api/vehicle/v1/vehicle/blocklist/modify
Request Parameters
385
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"vehicleIndexCode" : "1",
"plateLicense":"9999",
"personGivenName":"KaiRui",
"personFamilyName":"Jin",
"phoneNo":"1-1807894561",
"description":"xxxxxx",
"effectiveDate":"2022-03-21T00:00:00+08:00",
"expiredDate":"2023-03-25T23:59:59+08:00"
}
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": ""
}
386
HikCentral Professional OpenAPI Developer Guide
Request URL
https://[serverAddress]:[serverPort]/api/vehicle/v1/vehicle/blocklist/delete
Request Parameters
Request Example
{
"vehicleIndexCodes" : "1,2,3"
}
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
387
HikCentral Professional OpenAPI Developer Guide
"data": ""
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/acs/v1/auth/applicationResult
Request Parameters
388
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"applicationResultType": 1,
"pageNo": 1,
"pageSize": 2,
"type": 1
}
Response Parameters
389
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"statisticResult": {
"unApplicationCount": 3,
"applicationFailCount": 2,
"editAndUnApplicationCount": 1
}
}
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/acs/v1/door/doControl
Request Parameters
Request Example
{
"doorIndexCodes":["1","2"],
390
HikCentral Professional OpenAPI Developer Guide
"controlType":3,
"controlDirection":0,
}
Response Parameters
Response Example
{
"code":"0",
"msg":"Success",
"data":[
[
{
"doorIndexCode":"1",
"controlResultCode":0,
"controlResultDesc":"Success"
},
{
"doorIndexCode":"2",
"controlResultCode":0,
"controlResultDesc":" Success "
}
]
]
}
391
HikCentral Professional OpenAPI Developer Guide
Request URL
https://[serverAddress]:[serverPort]/artemis/api/acs/v1/door/events
Request Parameters
392
HikCentral Professional OpenAPI Developer Guide
Note
● The days between start time and end time should be no more than 31 days.
● At least one of the parameters eventType and personName must be configured.
Request Example
{
"startTime":"2018-08-10T12:00:00.000+08:00",
"endTime":"2018-08-11 12:00:00.000+08:00",
"eventType": 197151,
"personName": "a",
"doorIndexCodes":["1","2"],
"pageNo":1,
"pageSize":100
}
Response Parameters
393
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code":"0",
"msg":"Success",
"data":{
"pageSize":100,
"pageNo":1,
"total":1,
"list":[
{
"eventId":"58689546546576576215475",
"eventType":"197151",
"eventTime":"2018-08-10 20:00:00",
"personId":"1",
"personName":"a",
"doorName":"xxxDoor",
"doorIndexCode":"1"
}
]
}
}
394
HikCentral Professional OpenAPI Developer Guide
Request URL
https://[serverAddress]:[serverPort]/artemis/api/acs/v1/event/pictures
Request Parameters
Request Example
{
"picUri":"0B4E92A30AF914C1285613A4FBD9F761F"
}
Response Example
"data:image/jpeg;base64,/9j/4AAQSkzFYSEbxpSTWIl7lb2dtYSUW4zd9E/K/U+h9Ls49L0y20yFyy29ukSs3UhVAB/
SigyEjFFG5+2RioRUV0P/2Q=="
"data:image/jpeg;base64,/9j/4AAQSkzFYSEbxpSTWIl7lb2dtYSUW4zd9E/K/U+h9Ls49L0y20yFyy29ukSs3UhVAB/
SigyEjFFG5+2RioRUV0P/2Q=="
Request URL
https://[serverAddress]:[serverPort]/artemis/api/acs/v1/privilege/group
395
HikCentral Professional OpenAPI Developer Guide
Request Parameters
Request Example
{
"pageNo": 1,
"pageSize": 10,
"type": 1
}
Response Parameters
396
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"total": 2,
"pageNo": 1,
"pageSize": 10,
"list": [
{
"privilegeGroupId": "2",
"privilegeGroupName": "234",
"description": "",
"timeSchedule": {
"indexCode": "1",
"name": ""
}
},
{
"privilegeGroupId": "1",
"privilegeGroupName": "123",
"description": "",
"timeSchedule": {
"indexCode": "1",
"name": ""
}
}
]
}
}
397
HikCentral Professional OpenAPI Developer Guide
Request URL
https://[serverAddress]:[serverPort]/artemis/api/acs/v1/privilege/group/single/addPersons
Request Parameters
Request Example
{
"privilegeGroupId": "1",
"type": 1,
"list": [
{
"id": "1"
}
]
}
Response Parameters
398
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data": ""
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/acs/v1/privilege/group/single/deletePersons
Request Parameters
399
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"privilegeGroupId": "1",
"type": 1,
"list": [
{
"id": "1"
}
]
}
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": ""
}
400
HikCentral Professional OpenAPI Developer Guide
Request URL
https://[serverAddress]:[serverPort]/artemis/api/acs/v1/privilege/group/single/personList
Request Parameters
Request Example
{
"pageNo": 1,
"pageSize": 2,
"type": 1,
"privilegeGroupId": "1"
}
Response Parameters
401
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"total": 1,
"pageNo": 1,
"pageSize": 2,
"list": [
{
"id": "1"
}
]
}
}
402
HikCentral Professional OpenAPI Developer Guide
Request URL
https://[serverAddress]:[serverPort]/artemis/api/visitor/v1/auth/reapplication
Request Parameters
Response Example
{
"ImmediateDownload": 0,
"personIds": "1",
"doorIndexCodes": "2"
}
403
HikCentral Professional OpenAPI Developer Guide
Response Parameters
Response Example
{
"code": "0",
"msg": "ok",
"data": ""
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/visitor/v1/person/ID/elementDownloadDetail
Request Parameters
404
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"visitorId": "125"
}
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"ElementDetailList": {
"ElementDetail": [
{
"BaseInfo": {
"Name": "undefined",
"ElementType": 0,
"Network": 0
},
"ElementStatus": {
"Status": "-1",
"ErrorModule": "0",
"ErrorCode": "0"
},
"CertificateStatusList": {
"CertificateStatus": [
405
HikCentral Professional OpenAPI Developer Guide
{
"Type": "0",
"ID": "0",
"Status": "-1",
"ErrorModule": "0",
"ErrorCode": "0"
}
]
},
"ID": "0"
}
]
}
}
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/mobilesurveillance/v1/gpsdetails
Request Parameters
406
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"pageNo": 1,
"pageSize": 15
"mobilevehicleIndexCodes":"1,2"
"startTime": "2022-02-10T15:00:00+08:00",
"endTime": "2022-02-11T16:00:00+08:00"
}
Response Parameters
407
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"total": 1,
"pageIndex": 1,
"pageSize": 10,
408
HikCentral Professional OpenAPI Developer Guide
"list": [
{
"mobilevehicleIndexCode": "1",
"plateNo": "zhe123",
"regionIndexCode": "1",
"gps_info_list": [
{
"occurTime": "2022-02-16 11:20:08",
"longitude": -1,
"latitude": -1,
"direction": 0,
"gpsDisplay": "E120,13,42;N30,12,1",
"directionDisplay": "North",
"speed": 10
}
]
}
]
}
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/mobilesurveillance/v1/recordOverview
Request Parameters
409
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"pageIndex": 1,
"pageSize": 10,
"mobilevehicleIndexCodes": "1,2",
410
HikCentral Professional OpenAPI Developer Guide
"eventTypes": "330203,330003",
"beginTime": "2022-02-14T15:00:00+08:00",
"endTime": "2022-02-15T15:00:00+08:00",
"centerLongitude": "0.0",
"centerLatitude": "0.0",
"radius": 0
}
Response Parameters
Response Example
{
"code": "0",
"msg": "success",
"data": {
"total": "1",
"pageNo": "1",
411
HikCentral Professional OpenAPI Developer Guide
"pageSize": "10",
"list": [
{
"eventIndexCode": "BF1A2B849C5E4EDC858EF295A4E7DD2D",
"eventType": "330406",
"mobilevehicleIndexCode": "1",
"plateNo": "zhe123",
"ownerName": "ll",
"regionName": "area1",
"occurTime": "2022-02-12T15:46:58+08:00",
"longitude": "0.0",
"latitude": "0.0",
"direction": "0",
"speed": 0,
"displayInfo": "E0,0,0;N0,0,0",
"directionInfo": "North"
}
]
}
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/mobilesurveillance/v1/single/record
Request Parameters
412
HikCentral Professional OpenAPI Developer Guide
Request Example
{
“mobilevehicleIndexCode":"1",
" eventIndexCode ": "BF1A2B849C5E4EDC858EF295A4E7DD2D"
}
Response Parameters
413
HikCentral Professional OpenAPI Developer Guide
414
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"eventType": 330203,
"mobilevehicleIndexCode": "1",
"plateNo": "zhe123",
"regionName": "车车",
"ownerName": "",
"phoneNo": "",
"occurTime": "2022-02-16T14:39:36-08:00",
"longitude": "120.204",
"latitude": "30.1894",
"direction": 5628,
"speed": 30,
"speedLimit": "80",
"displayInfo": "E120,12,13;N30,11,21",
"directionInfo": "Northeast",
"image_url_list": [
{
"image_url": "Vsm://PHQG#20220216#20220216_134335874.d:12:62692"
}
]
}
}
Request URL
https://[serverAddress]:[serverPort]/api/mobilesurveillance/v1/picture_download
415
HikCentral Professional OpenAPI Developer Guide
Request Parameters
Request Example
{
"url":
"Dev://picture/Streaming/tracks/303/?name=405812&size=405812&DEVICE=26&TYPE=0&VSM=0",
"picType": 0
}
Response Parameters
416
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"pic_data": "FGde2GG3438F934U324aF0DG…"
}
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/body/v1/application/pictureRecognition
Request Parameters
417
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"protocolType": 1,
"intelligentServerIndexCode": "3",
"encodeDeviceIndexCode": "1",
"pictureData": "base64"
}
Response Parameters
418
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"Rect": [
{
"height": "0.81",
"width": "0.15",
"x": "0.12",
"y": "0.21"
}
]
}
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/body/v1/application/pictureModel
Request Parameters
419
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"protocolType": 1,
"intelligentServerIndexCode": "1",
"encodeDeviceIndexCode": "1",
420
HikCentral Professional OpenAPI Developer Guide
"pictureData": "test",
"data": {
"Rect": {
"height": "0.81",
"width": "0.15",
"x": "0.21",
"y": "0.12"
}
}
}
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"ModelData": "test"
}
}
421
HikCentral Professional OpenAPI Developer Guide
Request URL
https://[serverAddress]:[serverPort]/artemis/api/body/v1/application/captureSearch
Request Parameters
422
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"protocolType": 1,
"intelligentServerIndexCode": "1",
"encodeDeviceIndexCode": "1",
"cameraIndexCodes": "1,2,3",
"modelData": "test",
"startTime": "2022-08-13T17:30:08+08:00",
"endTime": "2022-08-13T17:30:08+08:00",
"similarity": "0.89",
"sortType": "time",
423
HikCentral Professional OpenAPI Developer Guide
"maxResults": 100,
"searchResultPosition": 0,
"modelMaxNum": 100
}
Response Parameters
Response Example
{
"data": {
"totalNum": 1,
"targetInfo": [
{
"monitorPointIndexCode": "1",
"captureTime": "2022-05-03T17:30:08+08:00",
"cameraIndexCode": "1",
"similarity": "0.89",
"picUrl": "test",
"subPicUrl": "test",
"targetRect": {
"height": "0.89",
"width": "0.2",
"x": "0.15",
424
HikCentral Professional OpenAPI Developer Guide
"y": "0.21"
},
"gender": 0,
"bag": 0,
"jacketType": 0,
"trousersType": 0,
"ageGroup": 0,
"hairStyle": 0,
"jacketColor": 0,
"trousersColor": 0,
"things": 0,
"mask": 0
}
]
}
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/frs/v1/application/pictureRecognitionModel
Request Parameters
425
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"protocolType": 1,
"intelligentServerIndexCode": "3",
"encodeDeviceIndexCode": "1",
"pictureData": "base64"
}
Response Parameters
426
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "success",
"data": {
"targets": [
{
"targetModelData": "test",
"faceRect": {
"height": "0.89",
"width": "0.15",
"x": "0.12",
"y": "0.21"
}
}
]
}
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/frs/v1/application/captureSearch
Request Parameters
427
HikCentral Professional OpenAPI Developer Guide
428
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"intelligentServerIndexCode": "3",
"cameraIndexCodes": "1,2,3",
"targetModelData": "test",
"maxResults": 100,
"startTime": "2022-08-15T17:30:08+08:00",
"endTime": "2022-08-18T17:30:08+08:00",
"similarityMin": "0.01",
"similarityMax": "0.98",
"sortType": "time",
"searchResultPosition": 0,
"modelMaxNum": 100
}
Response Parameters
429
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"totalNum": 1,
"targets": [
{
"code": 1,
"captureTime": "2022-05-03T17:30:08+08:00",
"monitorPointIndexCode": "1",
"picUrl": "test",
"subpicUrl": "test",
"similarity": 1,
"faceRect": {
"height": "0.8",
"width": "0.3",
"x": "0.21",
"y": "0.12"
},
"currTemperature": "36.7",
"thermometryUnit": 0,
"mask": 1,
"gender": 1,
"glasses": 1,
"smile": 1,
430
HikCentral Professional OpenAPI Developer Guide
"ageGroup": 1
}
]
}
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/focsign/v1/material/dataSource/search
Request Parameters
Request Example
{
"sourceType": "push",
"dataType": "character",
"sourceFrom": "all"
}
431
HikCentral Professional OpenAPI Developer Guide
Response Parameters
Response Example
{
"code": "0x0190020f",
"msg": "Success",
"data": {
"total": 1,
"list": [
{
"materialNo": 238,
"sourceName": "test_text",
"sourceID": "991D5E0041974A6BAE3D94C2178FCDF8",
"sourceType": "push",
"dataType": "character",
"sourceFrom": "custom"
}
]
}
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/focsign/v1/material/dataSource/update
432
HikCentral Professional OpenAPI Developer Guide
Request Parameters
Request Example
{
"dataType": "character",
"dataUpdateType": "cover",
"maxMaterialNum": 2,
"characterInfo": {
"contentList": [
{
"id": 1,
"content": "1111",
"playTime": 1
}
]
}
}
Response Parameters
433
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0x0190020f",
"msg": "Success"
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/focsign/v1/material/dataSource/update/batch
Request Parameters
Request Example
{
"dataSourceBatchUpdateList": [
{
"dataSourceUUID": "1",
"dataType": "character",
"dataUpdateType": "cover",
"maxMaterialNum": 2,
"characterInfo": {
"contentList": [
{
"id": 1,
434
HikCentral Professional OpenAPI Developer Guide
"content": "1111",
"playTime": 1
}
]
}
}
]
}
Response Parameters
Response Example
{
"code": "0x0190020f",
"msg": "Success"
}
435
HikCentral Professional OpenAPI Developer Guide
Appendix A. Appendixes
A.1.1 accessInfo
The table here shows the visitor's access permission.
A.1.2 AccessLevel
The table here shows the visitor's access permission.
A.1.3 AcsDevInfo
The table here shows the information of an access control device.
436
HikCentral Professional OpenAPI Developer Guide
A.1.4 AlarmInputInfo
The table here shows the alarm input information.
437
HikCentral Professional OpenAPI Developer Guide
A.1.5 AlarmOutputInfo
The table here shows the alarm output information.
438
HikCentral Professional OpenAPI Developer Guide
A.1.6 appendInfo
The table here shows the extra information of person.
A.1.7 ApplicationErrorResult
The table here shows the applying failure information.
A.1.8 ApprovalFlowInfo
The table here shows the visitor reservation review information.
439
HikCentral Professional OpenAPI Developer Guide
A.1.9 BaseInfo
The table here shows the basic information.
A.1.10 bodyRect
The table here shows information of the detected human body.
A.1.11 bodyTargetInfo
The table here shows information of target human body.
440
HikCentral Professional OpenAPI Developer Guide
441
HikCentral Professional OpenAPI Developer Guide
A.1.12 CameraInfo
The table here shows the information of a camera.
442
HikCentral Professional OpenAPI Developer Guide
443
HikCentral Professional OpenAPI Developer Guide
A.1.13 CameraRecordStatus
The table shows the storage status of a camera linked to the specific Storage Server.
444
HikCentral Professional OpenAPI Developer Guide
A.1.14 Card
The table here shows the information of a card .
A.1.15 CertificateStatus
The table here shows the status information of applying visitor's credential to device.
445
HikCentral Professional OpenAPI Developer Guide
A.1.16 characterInfo
The table here shows the text content information.
A.1.17 CustomField
The table here shows the custom information about a person.
446
HikCentral Professional OpenAPI Developer Guide
A.1.18 dataSourceBatchUpdateList
The table here shows the information of data resource update in a batch.
447
HikCentral Professional OpenAPI Developer Guide
A.1.19 dataSourceData
The table here shows the information of data resource update.
A.1.20 DeviceError
The table here shows the error information of a device.
448
HikCentral Professional OpenAPI Developer Guide
A.1.21 DoorControlResult
The table here shows the information of an access point control result.
A.1.22 DoorInfo
The table here shows the information of an access point.
449
HikCentral Professional OpenAPI Developer Guide
A.1.23 ElementDetail
The table here shows the information of access level application information.
450
HikCentral Professional OpenAPI Developer Guide
A.1.24 ElementDetailBaseInfo
The table here shows the information of the device which the access level is applied to.
A.1.25 ElementStatus
The table here shows the status information of the device which the access level is applied to.
A.1.26 EncodeDevInfo
The table here shows the information of an encoding device.
451
HikCentral Professional OpenAPI Developer Guide
A.1.27 ErrorcodeApprovalReviewInfo
452
HikCentral Professional OpenAPI Developer Guide
A.1.28 eventLabelList
The table here shows information of event tags.
A.1.29 eventList
The table here shows information of the event.
453
HikCentral Professional OpenAPI Developer Guide
A.1.30 EventPic
The table here shows the event picture information.
A.1.31 EventRecord
The table here shows the information of an event record.
454
HikCentral Professional OpenAPI Developer Guide
455
HikCentral Professional OpenAPI Developer Guide
A.1.32 face
The table here shows the information of a face.
A.1.33 FaceGroupInfo
The table here shows the information of a face comparison group.
A.1.34 FaceInfo
The table here shows the information of a face.
456
HikCentral Professional OpenAPI Developer Guide
A.1.35 facePic
The table here shows the information of a face picture.
A.1.36 FaceMatchRecord
The table here shows the face comparison information.
457
HikCentral Professional OpenAPI Developer Guide
458
HikCentral Professional OpenAPI Developer Guide
A.1.37 faceTargetInfo
The table here shows the information of the target face.
459
HikCentral Professional OpenAPI Developer Guide
A.1.38 faceTargets
The table here shows the information of face modeling.
460
HikCentral Professional OpenAPI Developer Guide
A.1.39 FingerPrint
The table here shows the information of a fingerprint.
461
HikCentral Professional OpenAPI Developer Guide
A.1.40 fingerPrintUpdateResult
This table shows the a fingerprint updating result.
A.1.41 FloorInfo
The table here shows the floor information.
A.1.42 FloorOverViewInfo
The table here shows the floor overview.
462
HikCentral Professional OpenAPI Developer Guide
A.1.43 ForbiddenVehicleInfo
The table here shows information of the vehicle in the blocklist.
463
HikCentral Professional OpenAPI Developer Guide
A.1.44 GeneralEventRule
The table here shows information of generic event rule.
464
HikCentral Professional OpenAPI Developer Guide
A.1.45 gpsInfo
The table here shows the GPS information.
465
HikCentral Professional OpenAPI Developer Guide
A.1.46 HDDInfo
The table shows the information of a HDD.
A.1.47 IntelligentServerInfo
The table shows the information of an Intelligent Server.
A.1.48 MobileDeviceInfo
The table here shows the on-board device information.
466
HikCentral Professional OpenAPI Developer Guide
A.1.49 MobilevehivleInfo
The table here shows the information of vehicles linked to on-board devices.
467
HikCentral Professional OpenAPI Developer Guide
A.1.50 OrgInfo
The table here shows the information of an organization.
468
HikCentral Professional OpenAPI Developer Guide
A.1.51 ParkingFeeCalculate
The table here shows the information for parking fee calculation.
A.1.52 ParkingFeeConfirm
The table here shows the information for parking fee confirmation.
469
HikCentral Professional OpenAPI Developer Guide
A.1.53 ParkingLotInfo
The table here shows the information about a parking lot.
A.1.54 ParkingRecordInfo
The table here shows the information about a vehicle parking record.
470
HikCentral Professional OpenAPI Developer Guide
A.1.55 ParkingSpaceInfo
The table here shows the information about a parking space.
471
HikCentral Professional OpenAPI Developer Guide
A.1.56 PassingRecordInfo
The table here shows the information about a vehicle passing record.
472
HikCentral Professional OpenAPI Developer Guide
A.1.57 PassVehicleRecord
The table here shows the information of a vehicle passing record.
473
HikCentral Professional OpenAPI Developer Guide
A.1.58 PatrolInfo
The table here shows the patrol information.
474
HikCentral Professional OpenAPI Developer Guide
A.1.59 PatrolPointInfo
The table here shows the information of a preset in the patrol.
475
HikCentral Professional OpenAPI Developer Guide
A.1.60 PeopleCountInfo
This table shows people counting statistics information of an item.
A.1.61 PeopleCountingParam
The table here shows people counting parameters.
A.1.62 PersonInfo
The table here shows the information of a person.
476
HikCentral Professional OpenAPI Developer Guide
477
HikCentral Professional OpenAPI Developer Guide
A.1.63 PersonInOutEvents
The table here shows the information of an access point event.
478
HikCentral Professional OpenAPI Developer Guide
A.1.64 PersonPhoto
The table here shows the information of a person picture.
479
HikCentral Professional OpenAPI Developer Guide
A.1.65 picInfo
The table here shows the picture information.
A.1.66 PlaybackUrlVideoInfo
The table shows the information of playback URL and video segment.
480
HikCentral Professional OpenAPI Developer Guide
A.1.67 PresetInfo
This table shows the information of a preset.
A.1.68 PresetValue
The table here shows the information about a preset value.
481
HikCentral Professional OpenAPI Developer Guide
A.1.69 PrivilegeGroupInfo
The table here shows access group information.
A.1.70 ReaderInfo
The table here shows card reader information.
482
HikCentral Professional OpenAPI Developer Guide
A.1.71 RealPeopleCountInfo
The table here shows the real-time statistics of a group.
A.1.72 RecordOverview
The table here shows the record overview.
483
HikCentral Professional OpenAPI Developer Guide
484
HikCentral Professional OpenAPI Developer Guide
A.1.73 RelatedResourceInfo
The table here shows related resources.
A.1.74 RecordServerInfo
The table shows the information of a Storage Server.
485
HikCentral Professional OpenAPI Developer Guide
A.1.75 RegionInfo
The table here shows the information of an area.
A.1.76 RelatedErrorInfo
The table here shows the details of an error.
486
HikCentral Professional OpenAPI Developer Guide
A.1.77 ResourceGroupInfo
The table here shows information about a resource group.
A.1.78 SiteInfo
The table here shows the information of a site.
487
HikCentral Professional OpenAPI Developer Guide
A.1.79 SpaceTypeOverViewInfo
The table here shows the information about a parking space type.
A.1.80 StatisticResult
The table here shows the statistics result.
488
HikCentral Professional OpenAPI Developer Guide
A.1.81 StreamServerInfo
The table shows the information of a Stream Media Server.
A.1.82 SubscriptionInfo
The table here shows the details of a subscribed event.
489
HikCentral Professional OpenAPI Developer Guide
Note
Refer to Event Message Format for
the event details received in the
address.
A.1.83 tableInfo
The table here shows the table information.
A.1.84 TimeSchedule
The table here shows the information of time schedule template.
490
HikCentral Professional OpenAPI Developer Guide
A.1.85 TimeZoneInfo
The table shows the time zone information.
491
HikCentral Professional OpenAPI Developer Guide
A.1.86 UrlInfo
The table shows the information of streaming URL.
A.1.87 VehicleGroupInfo
The table here shows the vehicle group information.
A.1.88 VehicleInfo
The table here shows the information of a vehicle.
492
HikCentral Professional OpenAPI Developer Guide
493
HikCentral Professional OpenAPI Developer Guide
A.1.89 Version
The table here shows the product version information.
A.1.90 VideoInfo
This table shows the information of a video segment for playback.
494
HikCentral Professional OpenAPI Developer Guide
A.1.91 Visitor
The table here shows the visitor information.
A.1.92 VisitorappointInfo
The table here shows the information of a reservation record.
495
HikCentral Professional OpenAPI Developer Guide
496
HikCentral Professional OpenAPI Developer Guide
A.1.93 VisitorInfo
The table here shows visitor information.
497
HikCentral Professional OpenAPI Developer Guide
A.1.94 VisitorPhoto
The table here shows visitor's photo information.
498
HikCentral Professional OpenAPI Developer Guide
A.1.95 watchListInfo
499
HikCentral Professional OpenAPI Developer Guide
500
HikCentral Professional OpenAPI Developer Guide
Example
Event Message Example
{
"method": "OnEventNotify",
"params":{
"sendTime": "2017-07-01T15:34:01.000+08:00",
"ability":"event_vss",
"events":[{
"eventId":"c929d9f873eb48439bd2c59df358bbeb",
"srcIndex":"21000000001130001013",
"srcType":"camera",
"srcName":"optional_src_name",
"eventType":130001,
"status":1,
"timeout":30,
"happenTime":"2017-07-01T15:34:01.000+08:00",
"srcParentIdex":"optional-parent",
"data":{"extral event data info":""}
}
]
}
501
HikCentral Professional OpenAPI Developer Guide
"isHistory":0
}
Example
Message Example of Access Control Event
{
"personId": "",
"cardNo": "",
"checkInAndOutType": ,
"picUri": "",
"temperatureData": ,
"temperatureStatus": ,
"wearMaskStatus": ,
"readerIndexCode": ,
502
HikCentral Professional OpenAPI Developer Guide
"readerName":
}
Example
Message Example of ANPR Event
{
"plateNo":""
}
Example
Message Example of License Plate Matched or Mismatched Event
{
"plateNo":"",
"vehicleGroupIndexCode":""
}
503
HikCentral Professional OpenAPI Developer Guide
504
HikCentral Professional OpenAPI Developer Guide
Example
Message Example of Face Comparison Event
{
"alarmResult":{
"faces":[{
"URL": "",
"snap_pic_data": "",
"age":{
"ageGroup":"CHILD"
},
"faceRect":[{
"height": ,
"width": ,
"x": ,
"y":
}],
"temperature":{
"temperatureData": ,
"temperatureStatus":
505
HikCentral Professional OpenAPI Developer Guide
},
"mask":{
"wearMaskStatus":
},
"gender":{
"value":"1",
},
"identify":{
"candidate":{
"blacklist_id": "",
"human_data":{
"face_picurl": "",
"face_pic_data": ""
},
"human_id":"",
"reserve_field":{
"name":""
},
"similarity":
}
}
}],
"targetAttrs":{
"cameraIndexCode":"",
"faceTime": ""
}
}
dataType:""
}
506
HikCentral Professional OpenAPI Developer Guide
507
HikCentral Professional OpenAPI Developer Guide
Example
Message Example of On-Board Monitoring Event
{
"urlList": [
{
"format": 0,
"url": "Vsm://PHQG#20220622#20220622_112325847.d:1941072:537216",
"expand": {
"suffixName": "jpeg",
"mediaType": "Image"
}
}
],
"gps": {
"occurTime": "2022-06-22T16:48:06+08:00",
"longitude": 120.21746826171875,
"latitude": 30.210418701171876,
"direction": 12000,
"speed": 0.0,
"speedUnit": 0,
"displayInfo": "E120,13,2;N30,12,37",
"directionInfo": "North"
},
"vehicle": {
"plateNo": "zhe123",
"ownerName": "",
"phoneNo": "",
"vehicleBrand": 0,
508
HikCentral Professional OpenAPI Developer Guide
"vehicleColor": 0,
"vehicleTpe": 0
}
}
509
HikCentral Professional OpenAPI Developer Guide
Gender Type
Vehicle Color
510
HikCentral Professional OpenAPI Developer Guide
Video Type
511
HikCentral Professional OpenAPI Developer Guide
512
HikCentral Professional OpenAPI Developer Guide
Capability Set
Transmission Protocol
Recording Type
513
HikCentral Professional OpenAPI Developer Guide
Age Group
Camera Alarms
514
HikCentral Professional OpenAPI Developer Guide
515
HikCentral Professional OpenAPI Developer Guide
516
HikCentral Professional OpenAPI Developer Guide
Door Alarms
517
HikCentral Professional OpenAPI Developer Guide
Person Alarms
518
HikCentral Professional OpenAPI Developer Guide
519
HikCentral Professional OpenAPI Developer Guide
520
HikCentral Professional OpenAPI Developer Guide
521
HikCentral Professional OpenAPI Developer Guide
ANPR Events
Facial Events
522
HikCentral Professional OpenAPI Developer Guide
523
HikCentral Professional OpenAPI Developer Guide
524
HikCentral Professional OpenAPI Developer Guide
525
HikCentral Professional OpenAPI Developer Guide
526
HikCentral Professional OpenAPI Developer Guide
527
UD36307B