HikCentral Professional OpenAPI - Developer Guide - V2.4
HikCentral Professional OpenAPI - Developer Guide - V2.4
HikCentral Professional OpenAPI - Developer Guide - V2.4
Developer Guide
HikCentral Professional OpenAPI Developer Guide
Legal Information
© 2023 Hangzhou Hikvision Digital Technology Co., Ltd. All rights reserved.
This Document (hereinafter referred to be "the Document") is the property of Hangzhou Hikvision
Digital Technology Co., Ltd. or its affiliates (hereinafter referred to as "Hikvision"), and it cannot be
reproduced, changed, translated, or distributed, partially or wholly, by any means, without the
prior written permission of Hikvision. Unless otherwise expressly stated herein, Hikvision does not
make any warranties, guarantees or representations, express or implied, regarding to the
Document, any information contained herein.
LEGAL DISCLAIMER
TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, THE DOCUMENT IS PROVIDED "AS IS"
AND "WITH ALL FAULTS AND ERRORS". HIKVISION MAKES NO REPRESENTATIONS OR WARRANTIES,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. IN NO EVENT WILL HIKVISION BE
LIABLE 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), OR OTHERWISE, IN CONNECTION WITH THE USE
OF THE DOCUMENT, EVEN IF HIKVISION HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
DAMAGES OR LOSS.
i
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.3.1 Resource Capability ....................................................................................................... 2
1.3.2 Video Capability ............................................................................................................ 3
1.3.3 Event and Alarm Capability ........................................................................................... 4
1.3.4 Vehicle and Parking Management Capability ................................................................ 5
1.3.5 Access Control Capability .............................................................................................. 5
1.3.6 Visitor Management Capability .................................................................................... 6
1.3.7 On-Board Monitoring Capability ................................................................................... 7
1.3.8 Digital Signage Capability .............................................................................................. 7
1.4 Terms and Definitions ............................................................................................................ 8
1.5 Update History ....................................................................................................................... 9
Chapter 2 Getting Started ......................................................................................................... 20
2.1 Installation ........................................................................................................................... 20
2.2 Configuration ....................................................................................................................... 23
2.2.1 Authenticate Service Certificate ................................................................................. 23
2.2.2 Enable Open Platform ................................................................................................. 24
2.3 Run Open Platform .............................................................................................................. 25
Chapter 3 Protocol Summary .................................................................................................... 28
3.1 Request and Response Rule ................................................................................................. 28
3.1.1 Request ....................................................................................................................... 28
3.1.2 Response ..................................................................................................................... 29
3.2 Signature and Authentication .............................................................................................. 31
Chapter 4 Typical Applications .................................................................................................. 35
ii
HikCentral Professional OpenAPI Developer Guide
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
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
2
HikCentral Professional OpenAPI Developer Guide
Note
The OpenAPI only helps to get the real-time or recorded stream, so the implementations of live
view and playback depend on the player developed by the APIs of C++ or C# language SDK or the
video plug-in developed via web browser. For details, refer to the HikCentral Professional Video
SDK (C++) Developer Guide and HikCentral Professional Video Web SDK Developer Guide.
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
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
8
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.
9
HikCentral Professional OpenAPI Developer Guide
10
HikCentral Professional OpenAPI Developer Guide
11
HikCentral Professional OpenAPI Developer Guide
12
HikCentral Professional OpenAPI Developer Guide
13
HikCentral Professional OpenAPI Developer Guide
14
HikCentral Professional OpenAPI Developer Guide
15. Added an API to revoke visitor's permission after he/she checks out: POST /artemis/api/
visitor/v1/visitor/out .
16. Added APIs to assign access levels to persons and apply persons' access level settings to
device. Refer to Manage Person's Access Level for details.
17. Added APIs to configure generic events. Refer to Configure Generic Event for details.
18. Extended the object about information of an access control device ( AcsDevInfo ):
added one parameter: status (status of the access control device).
19. Extended the person information object ( PersonInfo ):
added three parameters, i.e., personFamilyName (family name of the person),
personGivenName (given name of the person), and customFieldList (custom information).
20. Extended the vehicle information object ( VehicleInfo ):
added two parameters, i.e., personFamilyName (family name of the vehicle owner) and
personGivenName (given name of the vehicle owner).
21. Extended the object about information of a vehicle passing record ( PassVehicleRecord ):
added three parameters, i.e., vehicleColor (vehicle color), vehicleType (vehicle type), and
country (country of the vehicle).
22. Extended the object about information of an access point event ( PersonInOutEvents ):
added four parameters, i.e., personFamilyName (family name of the person),
personGivenName (given name of the person), readerIndexCode (card reader ID), and
readerName (card reader name).
23. Extended the object about information of an encoding device ( EncodeDevInfo ):
added one parameter: status (status of the encoding device).
24. Extended the event types or alarm categories ( Event Types or Alarm Categories ):
added one alarm input alarm category code: 589825 (Alarm Input Alarm);
added one generic event type code: 195 (Generic Event).
25. Extended the face comparison event message Face Comparison Event Message :
added four parameters, i.e., age (age information), ageGroup (age group), gender (gender
information), and value (gender).
15
HikCentral Professional OpenAPI Developer Guide
16
HikCentral Professional OpenAPI Developer Guide
17
HikCentral Professional OpenAPI Developer Guide
16. Extended the storage location types of videos (related data types: PlaybackUrlVideoInfo and
CameraInfo ):
added a value "2" (central cluster storage) the parameter "recordLocation".
17. Extended the data type of video segment information ( VideoInfo , related API: POST /
artemis/api/video/v1/cameras/playbackURLs ):
added two parameters "url" (streaming URL) and "authentication" (authentication
information).
18. Extended the request parameters of adding or editing person (related APIs: POST /
artemis/api/resource/v1/person/single/add and POST /artemis/api/resource/v1/person/
single/update ):
added a parameter "cards" (card information).
19. Extended the data type of person information ( PersonInfo ; related APIs: POST /artemis/api/
resource/v1/person/personList , POST /artemis/api/resource/v1/person/personId/
personInfo , and POST /artemis/api/resource/v1/person/advance/personList ):
added a parameter "cards" (card information).
20. Extended the data type of access point event information ( PersonInOutEvents , related API:
POST /artemis/api/acs/v1/door/events ):
added a parameter "checkInAndOutType" (attendance type).
21. Added a event type code "131659" (Face Picture Comparison) to Event Types or Alarm
Categories .
22. Added three event message examples, i.e., Access Control Event Message , ANPR Event
Message , and Face Comparison Event Message to the "data" parameter of Event Message
Format .
23. Extended the resource capability ( Resource Capability ):
added the capability of managing organizations, face comparison groups, and faces.
18
HikCentral Professional OpenAPI Developer Guide
11. Extended the data type of person information ( PersonInfo ; related APIs: POST /artemis/api/
resource/v1/person/personList , POST /artemis/api/resource/v1/person/personId/
personInfo , and POST /artemis/api/resource/v1/person/advance/personList ):
added a parameter "orgIndexCode" (organization ID).
12. Extended the resource capability Resource Capability :
added the following capabilities: get or search organizations, manage persons, get and search
face comparison groups, and apply person information to device.
19
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.
20
HikCentral Professional OpenAPI Developer Guide
21
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.
22
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.
23
HikCentral Professional OpenAPI Developer Guide
24
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.
25
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.
26
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.
27
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.
28
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
29
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,
30
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
31
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.
32
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.
33
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
34
HikCentral Professional OpenAPI Developer Guide
35
HikCentral Professional OpenAPI Developer Guide
36
HikCentral Professional OpenAPI Developer Guide
37
HikCentral Professional OpenAPI Developer Guide
38
HikCentral Professional OpenAPI Developer Guide
Function Description
Edit an organization's POST /artemis/api/resource/v1/org/single/update
information
Delete an organization POST /artemis/api/resource/v1/org/single/delete
39
HikCentral Professional OpenAPI Developer Guide
40
HikCentral Professional OpenAPI Developer Guide
41
HikCentral Professional OpenAPI Developer Guide
Function Description
Get alarm output information POST /artemis/api/resource/v1/alarmOutputs/indexCode
according to alarm output ID
Get all the alarm output POST /artemis/api/resource/v1/alarmOutputs
information
Search for alarm output POST /artemis/api/resource/v1/alarmOutput/advance/
information alarmOutputList
Control alarm output POST /artemis/api/resource/v1/alarmOutput/controlling
42
HikCentral Professional OpenAPI Developer Guide
Function Description
Search for the information POST /artemis/api/visitor/v1/visitorgroups
about visitor groups by group
name
Search for visitors' information POST /artemis/api/visitor/v1/visitorgroups/groupinfo
by visitor group ID
Get the visitor's information by POST /artemis/api/visitor/v1/visitor/visitorInfo
condition
Get the information about a POST /artemis/api/visitor/v1/visitor/single/visitorinfo
single visitor
43
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.
44
HikCentral Professional OpenAPI Developer Guide
Live View
Note
Refer to POST /artemis/api/video/v1/cameras/previewURLs and POST /artemis/api/video/v2/
cameras/previewURLs for details.
Playback
45
HikCentral Professional OpenAPI Developer Guide
Note
Refer to POST /artemis/api/video/v1/cameras/playbackURLs for details.
Two-Way Audio
Note
Refer to POST /artemis/api/video/v1/cameras/talkURLs and POST /artemis/api/video/v1/
device/talkURLs for details.
46
HikCentral Professional OpenAPI Developer Guide
47
HikCentral Professional OpenAPI Developer Guide
PTZ Control
Call API POST /artemis/api/video/v1/ptzs/controlling .
Preset
Function API
Search for presets POST /artemis/api/video/v1/presets/searches
Add presets POST /artemis/api/video/v1/presets/addition
Delete presets POST /artemis/api/video/v1/presets/deletion
Patrol
Function API
Search for patrols POST /artemis/api/video/v1/patrols/searches
Add patrols POST /artemis/api/video/v1/patrols/addition
Delete patrols POST /artemis/api/video/v1/patrols/deletion
Get presets' information of a POST /artemis/api/video/v1/patrols/patrolIndex/patrolInfo
patrol by patrol No.
48
HikCentral Professional OpenAPI Developer Guide
Steps
49
HikCentral Professional OpenAPI Developer Guide
Steps
Note
Multiple event types or alarm categories are available to be subscribed, refer to Event Types or
Alarm Categories for details.
3. Optional: Call POST /artemis/api/eventService/v1/eventSubscriptionView to search for the
subscription details of a user.
4. Optional: Call POST /artemis/api/eventService/v1/eventUnSubscriptionByEventTypes to
specify the event types or alarm categories to cancel subscribing.
5. Receive alarm or event information when alarm is triggered or event occurred.
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.
50
HikCentral Professional OpenAPI Developer Guide
Figure 4-9 API Calling Flow of Searching for Events and Getting Pictures
1. Get related resources information, including cameras, encoding device, and access points, refer
to Manage Resources for details.
2. Perform one of the following operations to search for alarm records, vehicle passing records,
and card swiping 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 vehicle passing records.
- Call POST /artemis/api/acs/v1/door/events to search for card swiping records.
3. Optional: Get the picture URL from the searched events and perform one of the following
operations to download the alarm picture, vehicle passing picture, and access control event
picture.
51
HikCentral Professional OpenAPI Developer Guide
52
HikCentral Professional OpenAPI Developer Guide
Steps
Note
Currently, the parameters of managing persons' access levels must be configured on HikCentral
Professional. That is, before managing access levels or applying persons' access level settings to
device, you must add persons, add access levels, create access group, and link person group with
access group on the platform.
1. Optional: Call POST /artemis/api/acs/v1/privilege/group to get the existing access levels for
reference.
2. Optional: Call POST /artemis/api/acs/v1/privilege/group/single/personList to get the persons
related to the access levels for reference.
53
HikCentral Professional OpenAPI Developer Guide
Note
You can also assign access levels to persons on the platform. Refer to the User Manual of
HikCentral Professional Web Client for details.
4. Optional: Call POST /artemis/api/acs/v1/privilege/group/single/deletePersons to unassign
access levels to persons.
5. Call POST /artemis/api/visitor/v1/auth/reapplication to apply persons' access level settings to
device.
6. Optional: Call POST /artemis/api/acs/v1/auth/applicationResult to get the details of access
level applying.
54
HikCentral Professional OpenAPI Developer Guide
Figure 4-12 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_data to download the vehicle pictures via
the URLs in the records.
55
HikCentral Professional OpenAPI Developer Guide
Figure 4-13 API Calling Flow of Getting the 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.
56
HikCentral Professional OpenAPI Developer Guide
Figure 4-14 API Calling Flow of Searching for the 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.
57
HikCentral Professional OpenAPI Developer Guide
Figure 4-15 API Calling Flow of Getting the 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.
58
HikCentral Professional OpenAPI Developer Guide
Figure 4-16 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
59
HikCentral Professional OpenAPI Developer Guide
Make a Reservation
Call POST /artemis/api/visitor/v2/appointment to make a reservation for a visitor.
Note
A reservation record ID will be returned, which is used for checking in.
60
HikCentral Professional OpenAPI Developer Guide
Figure 4-18 API Calling Flow of Checking in a Visitor with Reservation Information
1. Call POST /artemis/api/visitor/v1/appointment/appointmentlist to get the reservation record.
2. Call POST /artemis/api/visitor/v1/registerment to check in a visitor.
3. Call POST /artemis/api/acs/v1/privilege/group to get the access level list.
4. Call POST /artemis/api/acs/v1/privilege/group/single/addPersons to assign access levels to
the visitor.
5. Call POST /artemis/api/visitor/v1/auth/reapplication to apply the visitor's access level settings
to devices.
61
HikCentral Professional OpenAPI Developer Guide
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.
62
HikCentral Professional OpenAPI Developer Guide
Figure 4-19 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 Events of Vehicles Linked to On-Board Devices 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.
63
HikCentral Professional OpenAPI Developer Guide
64
HikCentral Professional OpenAPI Developer Guide
Figure 4-21 API Calling Flow of Getting People Counting Statistics of Vehicle Linked to On-Board
Device
1. Call POST /artemis/api/aiapplication/v1/people/advance/resourceGroupList to get the list of
resource groups.
2. Call POST /artemis/api/aiapplication/v1/people/resourceGroupRealTimeCount to get the real-
time statistics of resource groups.
65
HikCentral Professional OpenAPI Developer Guide
66
HikCentral Professional OpenAPI Developer Guide
Figure 4-23 API Calling Flow of Searching for Matched Human Bodies
1. Call the Base64 converter to get the picture data.
2. Call POST /artemis/api/body/v1/application/pictureRecognition to detect human body and
get the human body coordinates.
3. Call POST /artemis/api/body/v1/application/pictureModel to get the human body modeling
data according to the coordinates.
67
HikCentral Professional OpenAPI Developer Guide
68
HikCentral Professional OpenAPI Developer Guide
Request URL
https://[serverAddress]:[serverPort]/artemis/api/common/v1/version
Request Parameters
Response Parameters
69
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,
70
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",
71
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/advance/acsDeviceList
Request Parameters
72
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"pageNo": 1,
"pageSize": 10,
"acsDevName": "10.18.64.39"
}
Response Parameters
73
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/acsDevice/indexCode/acsDeviceInfo
Request Parameters
74
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"acsDevIndexCode": "46"
}
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
}
}
75
HikCentral Professional OpenAPI Developer Guide
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/encodeDevice/advance/
encodeDeviceList
Request Parameters
Request Example
{
"pageNo": 1,
"pageSize": 10,
"encodeDevName": "10.18.66.25",
}
Response Parameters
76
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"total": 1,
"pageNo": 1,
"pageSize": 10,
"list": [
{
"encodeDevIndexCode": "85",
"encodeDevName": "10.18.66.25",
"encodeDevIp": "10.18.66.25",
"encodeDevPort": "9000",
"encodeDevCode": "SimulatorDevice",
"treatyType": "hiksdk_net",
"status ": 2
}
]
}
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/encodeDevice/encodeDeviceList
77
HikCentral Professional OpenAPI Developer Guide
Request Parameters
Request Example
{
"pageNo": 1,
"pageSize": 2
}
Response Parameters
78
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",
"status ": 1
},
{
"encodeDevIndexCode": "85",
"encodeDevName": "10.18.66.25",
"encodeDevIp": "10.18.66.25",
"encodeDevPort": "9000",
"encodeDevCode": "SimulatorDevice",
"treatyType": "hiksdk_net",
"status ": 2
}
]
}
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/encodeDevice/indexCode/
encodeDeviceInfo
79
HikCentral Professional OpenAPI Developer Guide
Request Parameters
Request Example
{
"encodeDevIndexCode": "85"
}
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"encodeDevIndexCode": "85",
"encodeDevName": "10.18.66.25",
"encodeDevIp": "10.18.66.25",
80
HikCentral Professional OpenAPI Developer Guide
"encodeDevPort": "9000",
"encodeDevCode": "SimulatorDevice",
"treatyType": "hiksdk_net",
"status": 2
}
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/intelligentServer/
intelligentServerList
Request Parameters
Request Example
{
"pageNo": 1,
"pageSize": 2
}
81
HikCentral Professional OpenAPI Developer Guide
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"total": 4,
"pageNo": 1,
"pageSize": 2,
"list": [
{
"intelligentServerIndexCode": "1",
"intelligentServerName": "10.41.7.96",
"intelligentServerIp": "10.41.7.96",
"status": 1
},
{
"intelligentServerIndexCode": "2",
"intelligentServerName": "10.19.167.130",
82
HikCentral Professional OpenAPI Developer Guide
"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
}
83
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
}
84
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
85
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
86
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"pageNo": 1,
"pageSize": 2,
"mobileDevName": "10.18.64.39"
}
Response Parameters
87
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/indexCode/
recordServerInfo
88
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",
89
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/recordServerList
Request Parameters
90
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"pageNo": 1,
"pageSize": 2
}
Response Parameters
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",
91
HikCentral Professional OpenAPI Developer Guide
"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/recordStatus
Request Parameters
Request Example
{
"pageNo": 1,
92
HikCentral Professional OpenAPI Developer Guide
"pageSize": 2,
"recordServerIndexCode": "1",
"poolID": "0"
}
Response Parameters
93
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
}
]
}
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/streamServer/streamServerList
94
HikCentral Professional OpenAPI Developer Guide
Request Parameters
Request Example
{
"pageNo": 1,
"pageSize": 2
}
Response Parameters
95
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
}
]
}
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/videoManagementServer
96
HikCentral Professional OpenAPI Developer Guide
Request Parameters
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"ip": "127.0.0.1",
"port": 443,
"cpu": 90,
"status": 0
97
HikCentral Professional OpenAPI Developer Guide
}
}
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
Request Parameters
98
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"pageNo": 1,
"pageSize": 10,
"siteName": "HikCentral Professional"
}
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"total": 2,
"pageNo": 1,
"pageSize": 10,
"list": [
{
"siteIndexCode": "0",
"siteName": "HikCentral Professional",
99
HikCentral Professional OpenAPI Developer Guide
"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
Request Example
{
"siteIndexCode": "17"
}
100
HikCentral Professional OpenAPI Developer Guide
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/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
101
HikCentral Professional OpenAPI Developer Guide
Request Parameters
Request Example
{
"pageNo": 1,
"pageSize": 2
}
Response Parameters
102
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/region/indexCode/regionInfo
Get the area information by area ID.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/region/indexCode/regionInfo
103
HikCentral Professional OpenAPI Developer Guide
Request Parameters
Request Example
{
"regionIndexCode": "28",
"siteIndexCode": "0"
}
Response Parameters
Response Example
{
"code": "0",
104
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"
}
105
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"
106
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
107
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"pageNo": 1,
"pageSize": 2,
"regionIndexCode": "1",
"siteIndexCode": "0",
"deviceType": "encodeDevice",
"bRecordSetting": 1
}
Response Parameters
108
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
}
]
}
}
Remarks
The returned cameras do not contain child cameras.
POST /artemis/api/resource/v1/regions/subRegions
Get the area list of a specified parent area by resource type and permission.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/regions/subRegions
109
HikCentral Professional OpenAPI Developer Guide
Request Parameters
Request Example
{
"siteIndexCode": "0",
"parentIndexCode": "0"
}
Response Parameters
110
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/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
111
HikCentral Professional OpenAPI Developer Guide
Request Parameters
112
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"pageNo": 1,
"pageSize": 100,
"cameraName": "Simulator Channel",
"deviceType": "encodeDevice"
"encodeDevIndexCode": "85",
"devIndexCode": "15",
"regionIndexCode": "95",
"siteIndexCode": "0",
"bRecordSetting": 1
}
Response Parameters
113
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"total": 2,
"pageNo": 1,
"pageSize": 100,
"list": [
{
"cameraIndexCode": "1213",
"cameraName": "Simulator Channel",
"capabilitySet": "ptz",
"encodeDevIndexCode": "85",
"recordType": "0",
"recordLocation": "1",
"regionIndexCode": "95",
"siteIndexCode": "0",
"status": 2
},
{
"cameraIndexCode": "1212",
"cameraName": "Simulator Channel",
"capabilitySet": "ptz",
"encodeDevIndexCode": "85",
"recordType": "0",
"recordLocation": "1",
"regionIndexCode": "95",
"siteIndexCode": "0",
"status": 2
}
]
}
}
114
HikCentral Professional OpenAPI Developer Guide
Remarks
If there are multiple search conditions, they will be combined for search.
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
Request Parameters
115
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"pageNo": 1,
"pageSize": 2,
"siteIndexCode": "0",
"deviceType": "encodeDevice",
"bRecordSetting": 1
}
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"total": 51,
116
HikCentral Professional OpenAPI Developer Guide
"pageNo": 1,
"pageSize": 2,
"list": [
{
"cameraIndexCode": "1213",
"cameraName": "Simulator Channel",
"capabilitySet": "ptz",
"encodeDevIndexCode": "85",
"recordType": "0",
"recordLocation": "1",
"regionIndexCode": "95",
"siteIndexCode": "0",
"status": 2
},
{
"cameraIndexCode": "1212",
"cameraName": "Simulator Channel",
"capabilitySet": "ptz",
"encodeDevIndexCode": "85",
"recordType": "0",
"recordLocation": "1",
"regionIndexCode": "95",
"siteIndexCode": "0",
"status": 2
}
]
}
}
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
117
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"cameraIndexCode": "1213"
}
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
}
}
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.
118
HikCentral Professional OpenAPI Developer Guide
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/regions/regionIndexCode/cameras
Request Parameters
Request Example
{
"pageNo": 1,
"pageSize": 2,
"regionIndexCode": "1",
119
HikCentral Professional OpenAPI Developer Guide
"siteIndexCode": "0",
"deviceType": "encodeDevice",
"bRecordSetting": 1
}
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"total": 1,
"pageNo": 1,
"pageSize": 2,
"list": [
{
"cameraIndexCode": "1",
"cameraName": "Simulator Channel",
120
HikCentral Professional OpenAPI Developer Guide
"capabilitySet": "ptz,event_veh",
"encodeDevIndexCode": "1",
"recordType": "0",
"recordLocation": "1",
"regionIndexCode": "1",
"siteIndexCode": "0",
"status": 2
}
]
}
}
Remarks
The returned cameras do not contain child cameras.
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
Request Parameters
121
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"orgName": "test",
"pageNo": 1,
"pageSize": 10
}
Response Parameters
122
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
Request Parameters
123
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"orgIndexCode": "3"
}
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"orgIndexCode": "3",
"orgName": " name_test ",
"parentOrgIndexCode": "1"
}
}
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
124
HikCentral Professional OpenAPI Developer Guide
Request Parameters
Request Example
{
"pageNo": 1,
"pageSize": 100
}
Response Parameters
125
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"
}
]
}
}
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
126
HikCentral Professional OpenAPI Developer Guide
Request Parameters
Request Example
{
"parentOrgIndexCode": "1",
"pageNo": 1,
"pageSize": 10
}
Response Parameters
127
HikCentral Professional OpenAPI Developer Guide
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"
}
]
}
}
POST /artemis/api/resource/v1/org/rootOrg
Get the root organization information.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/org/rootOrg
128
HikCentral Professional OpenAPI Developer Guide
Request Parameters
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"orgIndexCode": "1",
"orgName": "root",
"parentOrgIndexCode": "0"
}
}
POST /artemis/api/resource/v1/org/single/add
Add an organization.
129
HikCentral Professional OpenAPI Developer Guide
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/org/single/add
Request Parameters
Request Example
{
"orgName": "name",
"parentIndexCode": "1"
}
Response Parameters
130
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
Request Example
{
"orgIndexCode": "4"
}
Response Parameters
131
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data": ""
}
POST /artemis/api/resource/v1/org/single/update
Edit the information of an organization.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/org/single/update
Request Parameters
132
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"orgName": "name_test",
"orgIndexCode": "4",
"parentIndexCode": "1"
}
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": ""
}
133
HikCentral Professional OpenAPI Developer Guide
POST /artemis/api/resource/v1/acsDoor/acsDoorList
Get the information list of all access points, and all information is returned by page.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/acsDoor/acsDoorList
Request Parameters
Request Example
{
"pageNo": 1,
"pageSize": 2
}
Response Parameters
134
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
}
]
135
HikCentral Professional OpenAPI Developer Guide
}
}
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.
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",
136
HikCentral Professional OpenAPI Developer Guide
"regionIndexCode": "77"
}
Response Parameters
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
}
]
137
HikCentral Professional OpenAPI Developer Guide
}
}
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
Request Example
{
"doorIndexCode": "938"
}
Response Parameters
138
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"doorIndexCode": "938",
"acsDevIndexCode": "46",
"regionIndexCode": "77",
"doorNo": "6",
"doorName": "Door 01",
"doorState": 4
}
}
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
139
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"regionIndexCode": "f182356d-8647-4fd8-96d0-cf635e9293cd",
"pageNo": 1,
"pageSize": 2
}
Response Parameters
140
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"total": 2,
"pageNo": 1,
"pageSize": 2,
"list": [{
"doorIndexCode": "9290949c81434d2a84a06a6d127cefd6",
"doorName": "A14906_A14906_door1",
"doorNo": "1",
"regionIndexCode": "f182356d-8647-4fd8-96d0-cf635e9293cd",
"acsDevIndexCode": "c322b802d3a4453b9923792acc5d6a25"
},
{
"doorIndexCode": "c0d46ff668134e4f816fe6921f2d5070",
"doorName": "A14906_A14906_door2",
"doorNo": "2",
"regionIndexCode": "f182356d-8647-4fd8-96d0-cf635e9293cd",
"acsDevIndexCode": "c322b802d3a4453b9923792acc5d6a25"
}]
}
}
POST /artemis/api/resource/v1/reader/search
Get card reader information.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/reader/search
Request Parameters
141
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"doorIndexCode": "938"
}
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
142
HikCentral Professional OpenAPI Developer Guide
"data": {
"total": 2,
"list": [
{
"indexCode": "5",
"name": "Cardreader 01",
"enable": 0
},
{
"indexCode": "6",
"name": "Cardreader 02",
"enable": 0
}
]
}
}
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
143
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"pageNo": 1,
"pageSize": 10,
"personName": "",
"plateNo": "N746",
"phoneNo": "",
"vehicleGroupIndexCode": "1"
}
Response Parameters
144
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"total": 1,
"pageNo": 1,
"pageSize": 10,
"list": [
{
"vehicleId": "20",
"plateNo": "NN7464",
"personName": "test test",
"personFamilyName": "test",
"personGivenName": "test",
"phoneNo": "",
"vehicleColor": 3,
"vehicleGroupIndexCode": "1"
}
]
}
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/indexCode/vehicleInfo
Get the information of a specified vehicle by vehicle ID.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/vehicle/indexCode/vehicleInfo
145
HikCentral Professional OpenAPI Developer Guide
Request Parameters
Request Example
{
"vehicleIndexCode": "7 "
}
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"vehicleId": "7",
"plateNo": "AB5555",
"personName": "1 2",
"phoneNo": "",
"vehicleColor": 0,
"vehicleGroupIndexCode": "1"
}
146
HikCentral Professional OpenAPI Developer Guide
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
147
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"plateNo": "NN7464",
"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
148
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"vehicleId": "20",
"plateNo": "NN7464",
"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/delete
Delete a vehicle
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/vehicle/single/delete
Request Parameters
149
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"vehicleId": "12"
}
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": ""
}
POST /artemis/api/resource/v1/vehicle/single/update
Edit information of a vehicle.
150
HikCentral Professional OpenAPI Developer Guide
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/vehicle/single/update
Request Parameters
151
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"vehicleId": "21",
"plateNo": "74651544B",
"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"
}
Response Parameters
152
HikCentral Professional OpenAPI Developer Guide
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
Request Parameters
153
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"pageNo": 1,
"pageSize": 10
"vehicleGroupIndexCode": “1”
}
Response Parameters
154
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"total": 1,
"pageNo": 1,
"pageSize": 10,
"list": [
{
"vehicleId": "7",
"plateNo": "888",
"personName": "1 2",
"personFamilyName": "2",
"personGivenName": "1",
"phoneNo": "",
"vehicleColor": 0,
"vehicleGroupIndexCode": "1"
}
]
}
}
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
155
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"vehicleGroupName": "test",
"description": "test"
}
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"vehicleGroupIndexCode": "4",
"vehicleGroupName": "test",
"description": "test"
156
HikCentral Professional OpenAPI Developer Guide
}
}
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
Request Example
{
"vehicleGroupIndexCode": "4"
}
Response Parameters
157
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data": ""
}
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
158
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"vehicleGroupIndexCode": "4",
"vehicleGroupName": "test_mod",
"description": "test_mod"
}
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": ""
}
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
159
HikCentral Professional OpenAPI Developer Guide
Request Parameters
Request Example
{
"pageNo": 1,
"pageSize": 10
}
Response Parameters
160
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/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
161
HikCentral Professional OpenAPI Developer Guide
Request Parameters
Request Example
{
"pageNo": 1,
"pageSize": 10
}
Response Parameters
162
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.
163
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",
164
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
165
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"pageNo": 1,
"pageSize": 10,
"mobilevehicleName":"10.18.68.12",
"devIndexCode":"1"
}
Response Parameters
166
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"
}
]
}
}
167
HikCentral Professional OpenAPI Developer Guide
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
Request Parameters
Request Example
{
"pageNo": 1,
"pageSize": 10,
"personName": "test"
}
168
HikCentral Professional OpenAPI Developer Guide
Response Parameters
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": ""
169
HikCentral Professional OpenAPI Developer Guide
},
"email": "",
"remark": "",
"beginTime": "2021-04-25T16:19:27+08:00",
"endTime": "2031-04-25T16:19:27+08:00",
"cards": [
{
"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/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
170
HikCentral Professional OpenAPI Developer Guide
Request Parameters
Request Example
{
"pageNo": 1,
"pageSize": 2
}
Response Parameters
171
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/face/update
Edit the information of face linked with the person.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/person/face/update
Request Parameters
172
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"personId": "1",
"faceData": " AQSkzFYSEbxpSTWIl7lb2dtYSUW4"
}
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
173
HikCentral Professional OpenAPI Developer Guide
"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",
"fingerPrintData": "228697F1AD0146C8D00",
"relatedCardNo": "1123"
}
]
}
174
HikCentral Professional OpenAPI Developer Guide
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data":””
}
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
175
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"personCode": "3536895491"
}
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": {
176
HikCentral Professional OpenAPI Developer Guide
"picUri": ""
},
"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/personId/customFieldsUpdate
Edit the person's custom information.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/person/personId/
customFieldsUpdate
177
HikCentral Professional OpenAPI Developer Guide
Request Parameters
Request Example
{
"personId": "1150",
"list": [
{
"id": "12",
"customFiledName": "ssss",
"customFieldType": 2,
"customFieldValue": "2354"
}
]
}
Response Parameters
178
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data": ""
}
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"
}
179
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",
180
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/personList
Get the information list of all persons, and all information is returned by page.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/person/personList
Request Parameters
Request Example
{
"pageNo": 1,
181
HikCentral Professional OpenAPI Developer Guide
"pageSize": 2
}
Response Parameters
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": "",
182
HikCentral Professional OpenAPI Developer Guide
"personPhoto": {
"picUri": ""
},
"email": "",
"remark": "",
"beginTime": "2021-04-25T16:19:27+08:00",
"endTime": "2031-04-25T16:19:27+08:00",
"cards": [
{
"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",
183
HikCentral Professional OpenAPI Developer Guide
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
184
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.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/person/single/add
185
HikCentral Professional OpenAPI Developer Guide
Request Parameters
186
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"personCode": "123245214",
"personFamilyName": "LI",
"personGivenName": "person0",
"gender": 1,
"orgIndexCode": "1",
"remark": "description",
"phoneNo": "13000110011",
"email": "person1@qq.com",
"cards": [
{
"cardNo": "123456"
}
],
"beginTime": "2020-05-26T15:00:00+08:00",
"endTime": "2030-05-26T15:00:00+08:00"
}
Response Parameters
187
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data": "1150"
}
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
188
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"personId ": "1"
}
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": ""
}
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
189
HikCentral Professional OpenAPI Developer Guide
Request Parameters
190
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"personId": "1150",
"personCode": "123245214",
"personFamilyName": "Li",
"personGivenName": "person0",
"orgIndexCode": "1",
"gender": 1,
"phoneNo": "13000110011",
"remark": "description",
"email": "person1000@qq.com",
"cards": [
{
"cardNo": "123456"
}
],
"beginTime": "2022-05-26T15:00:00+08:00",
"endTime": "2030-05-26T15:00:00+08:00"
}
Response Parameters
191
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "ok",
"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",
192
HikCentral Professional OpenAPI Developer Guide
"acsDevIndexCode": "1"
}
Response Parameters
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
193
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"customFieldList": {
"customField": [
{
"customFieldName": "123",
"customFieldType": 0,
"presetValueList": {
"presetValue": [
{
"value": "0",
"ID": "1"
}
]
},
"isPublic": 0,
"isShow": 1
}
]
}
}
Response Parameters
194
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data":{
"Id": "1",
"customFieldName": "wwww",
"customFieldType": 0,
"isPublic": 0
}
}
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": [
{
195
HikCentral Professional OpenAPI Developer Guide
"customFieldId": "1",
"customFieldName": "123",
"isShow": 1,
"customFieldName": 3,
"presetValueList": {
"presetValue": [
{
"value": "0",
"ID": "1"
}
]
}
}
]
}
}
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.
196
HikCentral Professional OpenAPI Developer Guide
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/person/customFields/single/delete
Request Parameters
Request Example
{
"customFieldId": "1"
}
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": ""
}
197
HikCentral Professional OpenAPI Developer Guide
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
Request Parameters
Request Example
{
"indexCodes": [
"2"
],
"name": ""
}
198
HikCentral Professional OpenAPI Developer Guide
Response Parameters
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
199
HikCentral Professional OpenAPI Developer Guide
Request Parameters
Request Example
{
"indexCodes": [
"1"
]
}
Response Parameters
200
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data": ""
}
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",
201
HikCentral Professional OpenAPI Developer Guide
"description": "test"
}
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
202
HikCentral Professional OpenAPI Developer Guide
Request Parameters
Request Example
{
"indexCode": "1",
"name": "name_mod",
"description": "test_mod"
}
Response Parameters
203
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
204
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"pageNo": 1,
"pageSize": 6
}
Response Parameters
205
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
206
HikCentral Professional OpenAPI Developer Guide
Request Parameters
Request Example
{
"indexCodes": "1"
}
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
207
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
208
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
209
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.
210
HikCentral Professional OpenAPI Developer Guide
Request URL
https://[serverAddress]:[serverPort]/artemis/api/frs/v1/application/picture
Request Parameters
Request Example
{
"url": "Dev://picture/Streaming/tracks/303/?name=405812&size=405812&DEVICE=26&TYPE=0&VSM=0",
"isHumanSearchPic": 0
}
Response Parameters
211
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
212
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"faceGroupIndexCode": "1",
"pageNo": 1,
"pageSize": 20
}
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"total": 1
"pageNo": 1,
"pageSize": 20,
"list": [
{
"indexCode": "4",
"faceInfo": {
213
HikCentral Professional OpenAPI Developer Guide
"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
214
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"indexCodes": [
"4"
],
"faceGroupIndexCode": "1",
"deleteFromOrg":"0"
}
Response Parameters
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
215
HikCentral Professional OpenAPI Developer Guide
Request Parameters
Request Example
{
"personIndexCode": "1",
"faceGroupIndexCode": "1",
"faceInfo": {
"personGivenName": "san",
"personFamilyName": "zhang",
"sex": "1"
},
"facePic": {
"faceBinaryData": "/9j/4AAQSkZJRgABAQEAAAAAAAD/4QBCRXhpZgAATU"
}
}
216
HikCentral Professional OpenAPI Developer Guide
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"indexCode": "4"
}
}
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
217
HikCentral Professional OpenAPI Developer Guide
Request Parameters
Request Example
{
"pageNo": 1,
"pageSize": 2,
"alarmInputName": "D1_0.0.0.0",
"devIndexCode": "85",
"regionIndexCode": "95"
}
218
HikCentral Professional OpenAPI Developer Guide
Response Parameters
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
}
]
}
}
219
HikCentral Professional OpenAPI Developer Guide
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
Request Example
{
"pageNo": 1,
"pageSize": 2
}
Response Parameters
220
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
}
]
221
HikCentral Professional OpenAPI Developer Guide
}
}
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
Request Parameters
Request Example
{
"alarmInputIndexCode": "1215"
}
Response Parameters
222
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"alarmInputIndexCode": "1215",
"alarmInputName": "D1_0.0.0.0",
"regionIndexCode": "95",
"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
223
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"pageNo": 1,
"pageSize": 10,
"alarmOutputName": "0.0.0.0",
"devIndexCode": "85",
"regionIndexCode": "95"
}
Response Parameters
224
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
}
]
225
HikCentral Professional OpenAPI Developer Guide
}
}
POST /artemis/api/resource/v1/alarmOutput/controlling
Control alarm output.
Request URL
https://[serverAddress]:[serverPort]/artemis/api/resource/v1/alarmOutput/controlling
Request Parameters
Request Example
{
"alarmOutputIndexCode": "1",
"action": 1
}
Response Parameters
226
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"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
227
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"pageNo": 1,
"pageSize": 2
}
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"total": 81,
228
HikCentral Professional OpenAPI Developer Guide
"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",
"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
229
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"alarmOutputIndexCode": "1218"
}
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"alarmOutputIndexCode": "1218",
"alarmOutputName": "D2_0.0.0.0",
"regionIndexCode": "95",
"devIndexCode": "85",
"devResourceType": "encodeDevice",
"status": -1
}
}
230
HikCentral Professional OpenAPI Developer Guide
Request URL
https://[serverAddress]:[serverPort]/artemis/api/aiapplication/v1/people/
statisticsTotalNumByTime
Request Parameters
231
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
232
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
}
]
}
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/aiapplication/v1/people/
resourceGroupRealTimeCount
Request Parameters
233
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"resourceGroupIndexCodes":"1"
}
Response Parameters
Response Example
{
"code":"0",
"msg":"Success",
"data":{
"list":[{
"time":"2018-07-26T15:00:00+08:00",
"cameraIndexCode":"1",
"exitNum":5,
"enterNum":1
}]
}
}
234
HikCentral Professional OpenAPI Developer Guide
Request URL
https://[serverAddress]:[serverPort]/artemis/api/aiapplication/v1/people/advance/
resourceGroupList
Request Parameters
Request Example
{
"pageNo": 1,
"pageSize": 10
}
Response Parameters
235
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code":"0",
"msg":"Success",
"data":{
"total":2,
"pageNo":1,
"pageSize":10,
"list":
}
}
236
HikCentral Professional OpenAPI Developer Guide
Request URL
https://[serverAddress]:[serverPort]/artemis/api/aiapplication/v1/people/
statisticsHeatMapByTime
Request Parameters
Request Example
{
"cameraIndexCode": "1",
"statisticsType": 0,
"beginTime": "2022-02-16T15:00:00+08:00",
"endTime": "2022-02-16T16:00:00+08:00"
}
237
HikCentral Professional OpenAPI Developer Guide
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"maxValue": -1,
"minValue": -1,
"averageValue": -1,
238
HikCentral Professional OpenAPI Developer Guide
"arrayLine": -1,
"arrayColum": -1,
"buffer": ""
}
}
Note
Supports DST in ISO 8601 format, which is represented by "yyyy- MMddTHH: mm:ss+current time
difference". When you search by device time,
Request URL
https://[serverAddress]:[serverPort]/artemis/api/video/v1/cameras/playbackURLs
Request Parameters
239
HikCentral Professional OpenAPI Developer Guide
240
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":""
}
Response Parameters
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==",
241
HikCentral Professional OpenAPI Developer Guide
"uuid":"",
"recordLocation":1
}
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/video/v1/cameras/previewURLs
Request Parameters
242
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"cameraIndexCode":"1",
"streamType":0,
"protocol":"rtsp",
"transmode":1
}
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
243
HikCentral Professional OpenAPI Developer Guide
+DwPdkSiALHgLmcWShmtWnKnfD5lhfDSMakMUxtlqfqOalXw5AAcSxoz76LkR8qzI8lKncuhXO9RslvYiC0UJN/
b3tmwUH999oWgJbX6jd3mN/p3FPgi4NtkbADKKnmjEY8NI9cPDcHaMfV+oJCYF0aVCjI3BU9AnPY="
}
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/video/v2/cameras/previewURLs
Request Parameters
244
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"cameraIndexCode":"1",
"streamType":0,
"protocol":"rtsp",
"transmode":1,
}
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="
},
245
HikCentral Professional OpenAPI Developer Guide
{
"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="
}
]
}
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/video/v1/cameras/talkURLs
Request Parameters
246
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"cameraIndexCode": "1",
"transmode": 1
}
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="
}
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/video/v1/device/talkURLs
247
HikCentral Professional OpenAPI Developer Guide
Request Parameters
Request Example
{
"cameraIndexCode": "1",
"transmode": 1
}
Response Parameters
248
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
249
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"cameraIndexCode": "89",
"patrolIndex": 1,
"patrolName": "1",
"patrolPointInfoList": [
{
"presetIndex": 1,
"speed": 1,
"dwellTime": 15
}
]
}
Response Parameters
250
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
251
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
252
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
253
HikCentral Professional OpenAPI Developer Guide
Request Parameters
Request Example
{
"cameraIndexCode": "89"
}
Response Parameters
Response Example
{
"code": "0",
254
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
}
255
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
256
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"cameraIndexCode": "89",
"presetIndex":1
}
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": ""
}
257
HikCentral Professional OpenAPI Developer Guide
Request URL
https://[serverAddress]:[serverPort]/artemis/api/video/v1/presets/searches
Request Parameters
Request Example
{
"cameraIndexCode": "89"
}
Response Parameters
258
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
259
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..
260
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
261
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
262
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data": “data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/
2wBDAAYEBAUEBAYFBQUHBgYHCRAKCQgICRMODgsQFxQYGBYUFhYZHCQfGRsiGxYWICsgIiYnKSkpGB4tMCwoMCQoKSf
/2wBDAQYHBwkICRIKChInGhYaJycnJycnJycnJycnJycnJycnJycnJycnJycnJycnJy”
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/video/v1/download
Request Parameters
263
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",
"videoType": 1
}
264
HikCentral Professional OpenAPI Developer Guide
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"downID": "F704686D84CD4E34A2181A915862FE3F"
}
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/video/v1/downloadURL
265
HikCentral Professional OpenAPI Developer Guide
Request Parameters
Request Example
{
"downloadID": "1"
}
Response Parameters
266
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
267
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
268
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"
]
}
}
269
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
270
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
271
HikCentral Professional OpenAPI Developer Guide
272
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
}
273
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"
}
274
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
275
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
276
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
277
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
278
HikCentral Professional OpenAPI Developer Guide
Request Parameters
Request Example
{
"eventTypes":[131329,131330,131331]
}
Response Parameters
Response Example
{
"code": 0,
279
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
280
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)"
}
]
}
}
281
HikCentral Professional OpenAPI Developer Guide
Request URL
https://[serverAddress]:[serverPort]/artemis/api/eventService/v1/generalEventRule/single/add
Request Parameters
282
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
283
HikCentral Professional OpenAPI Developer Guide
Request Parameters
Request Example
{
"generalEventRuleIndexCode": "1"
}
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": ""
}
284
HikCentral Professional OpenAPI Developer Guide
Request URL
https://[serverAddress]:[serverPort]/artemis/api/eventService/v1/generalEventRule/single/update
Request Parameters
285
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
286
HikCentral Professional OpenAPI Developer Guide
Request Parameters
Request Example
{
"generalEventRuleIndexCodes": "1",
"description": "descriptioninfo",
"alarmPriority": 1,
287
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
288
HikCentral Professional OpenAPI Developer Guide
Request Parameters
Request Example
{
"picUri": "/pic?=d7ei703i10cd*73a-d5108a--22cd0c9d6592aiid="
}
Response Parameters
289
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
290
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"pageIndex": 1,
"pageSize": 10,
"criteria": {
"eventCategory": 100652,
"eventName": "name"
},
"sort": {
"sortField": "EventName",
"orderType": 0
}
}
Response Parameters
291
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 ).
292
HikCentral Professional OpenAPI Developer Guide
Request URL
https://[serverAddress]:[serverPort]/artemis/api/visitor/v1/appointment
Request Parameters
293
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": "999999@qq.com",
"phoneNo": "13600000000",
"plateNo": "A666",
"companyName": "AAA",
"certificateType": 111,
"certificateNo": "null",
"remark": "visitor",
"faces": [
{
"faceData": "/9j/4AAQSkZRgABAQEAAAAAAAD/4QBCRXhpZgAATU.."
}
],
"fingerPrint": [
{
"fingerPrintIndexCode": "1",
"fingerPrintName": "fringe_pringt_01",
"fingerPrintData": "46504D228697F1AD0146C8D00",
"relatedCardNo": "123456"
}
],
"cards": [
{
"cardNo": "123456"
}
294
HikCentral Professional OpenAPI Developer Guide
]
}
}
]
}
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"appointRecordId": "1",
"visitorId":”"2"
}
}
295
HikCentral Professional OpenAPI Developer Guide
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
296
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",
"faces": [
{
"faceData": "/9j/4AAQSkZJRgABAQEAAAAAAAD/4QBCRXhpZgAATU.."
}
],
"fingerPrint": [
{
"fingerPrintIndexCode": "1",
"fingerPrintName": "fringe_pringt_01",
"fingerPrintData": "46504D228697F1AD0146C8D00",
"relatedCardNo": "123456"
}
297
HikCentral Professional OpenAPI Developer Guide
],
"cards": [
{
"cardNo": "123456"
}
]
}
}
]
}
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data":
}
298
HikCentral Professional OpenAPI Developer Guide
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
299
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": "999999@qq.com",
"phoneNo": "13600000000",
"plateNo": "A666",
"companyName": "AAA",
"certificateType": 111,
"certificateNo": "null",
"remark": "visitor",
"faces": [{
"faceData": "/9j/4AAQSkZRgABAQEAAAAAAAD/4QBCRXhpZgAATU.."
}],
"fingerPrint": [{
"fingerPrintIndexCode": "1",
"fingerPrintName": "fringe_pringt_01",
300
HikCentral Professional OpenAPI Developer Guide
"fingerPrintData": "46504D228697F1AD0146C8D00",
"relatedCardNo": "123456"
}],
"cards": [{
"cardNo": "123456"
}]
}
}]
}
Response Parameters
Request Example
{
"code": "0",
"msg": "Success",
"data": {
"appointRecordId": "1",
"visitorId":"2"
"qrCodeImage": "iVBORw0KGgoAAAANSUhEUg”
}
}
301
HikCentral Professional OpenAPI Developer Guide
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
Request Parameters
302
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",
"faces": [
{
"faceData": "/9j/4AAQSkZJRgABAQEAAAAAAAD/4QBCRXhpZgAATU.."
}
303
HikCentral Professional OpenAPI Developer Guide
],
"fingerPrint": [
{
"fingerPrintIndexCode": "1",
"fingerPrintName": "fringe_pringt_01",
"fingerPrintData": "46504D228697F1AD0146C8D00",
"relatedCardNo": "123456"
}
],
"cards": [
{
"cardNo": "123456"
}
]
}
}
]
}
Response Parameters
Request Example
{
"code": "0",
"msg": "Success",
"data":
}
304
HikCentral Professional OpenAPI Developer Guide
Request URL
https://[serverAddress]:[serverPort]/artemis/api/visitor/v2/appointment
Request Parameters
305
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":"1@qq.com",
"phoneNo":"13600000000",
"plateNo":"Zhe A",
"companyName":"hik",
"certificateType":111,
"certificateNo":"dddd2234",
"remark":"null",
306
HikCentral Professional OpenAPI Developer Guide
"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"
}
}
}
]
}
}
Response Parameters
307
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"appointRecordId": "1",
"visitorId":"2",
"AppointCode":"5080"
}
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/visitor/v1/appointment/single/delete
Request Parameters
308
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"appointRecordId ": "5"
}
Response Parameters
Request Example
{
"code": "0",
"msg": "Success",
"data":""
}
309
HikCentral Professional OpenAPI Developer Guide
Request URL
https://[serverAddress]:[serverPort]/artemis/api/visitor/v2/appointment/update
Request Parameters
310
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",
"faces":"null",
"customField":[{
"customID":"1",
"customFieldName":"",
"customFieldType":0,
311
HikCentral Professional OpenAPI Developer Guide
"customFieldValue":""
}]
}
}],
"accessInfo":{
"accessLevelList":[{
"accessLevel":{
"id":1,
"baseInfo":{
"name":"1"
}
}
}]
}
}
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"appointRecordId": "6",
"visitorId": "5",
"appointCode": "6582"
312
HikCentral Professional OpenAPI Developer Guide
}
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/visitor/v1/visitor/out
Request Parameters
Request Example
{
"appointRecordId": "1"
}
Response Parameters
313
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data":
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/visitor/v1/appointment/appointmentlist
Request Parameters
314
HikCentral Professional OpenAPI Developer Guide
315
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": "",
"visitorReason": 4
}
Response Parameters
316
HikCentral Professional OpenAPI Developer Guide
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,
"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
}
}
}]
}
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/visitor/v1/appointment/downloadpicture
317
HikCentral Professional OpenAPI Developer Guide
Request Parameters
Request Example
{
"visitorId": "1",
"picType": "0"
}
Response Parameters
318
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
Request Example
{
"pageIndex":0,
"pageSize":0,
"customFieldName":""
}
319
HikCentral Professional OpenAPI Developer Guide
Response Parameters
Response Example
{
"code":"0",
"msg":"Success",
"data":{
"CustomFieldList":{
"TotalNum":0,
"pageIndex":0,
"pageSize":0,
"CustomField":[
{
"indexCode":0,
"customFieldType": 0,
"customFieldName":"",
"PresetValueList":{
"PresetValue":[
{
320
HikCentral Professional OpenAPI Developer Guide
"indexCode":0,
"value":""
}
]
}
}
]
}
}
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/visitor/v1/visitorgroups
Request Parameters
Request Example
{
"SearchCriteria": {
"visitorGroupName": ""
}
}
Response Parameters
321
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
322
HikCentral Professional OpenAPI Developer Guide
Request Parameters
Request Example
{
"VisitorListRequest":{
"indexCode":"1",
"pageIndex":0,
"pageSize":0,
"searchCriteria":{
"identifiyCode":"",
"personName":"",
"phoneNum":"",
"companyName":"",
"remperatureStatus":0,
"blackLisitStatus":0
}
323
HikCentral Professional OpenAPI Developer Guide
}
}
Response Parameters
Response Example
{
"code":"0",
"msg":"Success",
"data":{
"pageSize":1,
"pageIndex ":10,
"total":10,
"VisitorList":{
"Visitor":[{
"ID":0,
"BaseInfo":{
"fullName":""
}
324
HikCentral Professional OpenAPI Developer Guide
}]
}
}
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/visitor/v1/visitor/visitorInfo
Request Parameters
325
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"pageNo ":"0",
" pageSize":"20",
"searchCriteria":{
"visitorGroupID":"1,2,3"
}
}
Response Parameters
Request URL
https://[serverAddress]:[serverPort]/artemis/api/visitor/v1/visitor/single/visitorinfo
Request Parameters
326
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"visitorId": "125"
}
Response Parameters
Request URL
https://[serverAddress]:[serverPort]/artemis/api/visitor/v1/auth/reapplication
Request Parameters
327
HikCentral Professional OpenAPI Developer Guide
Response Parameters
Response Example
{
"code": "0",
"msg": "ok",
"data": ""
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/pms/v1/image_data
328
HikCentral Professional OpenAPI Developer Guide
Request Parameters
Request Example
{
domainId : 0
{
"aswSyscode": "hnj5h245h5234h45345y",
"picUri": "/pic?=d7ei703i10cd*73a-d5108a--22cd0c9d6592aiid="
}
Response Parameters
329
HikCentral Professional OpenAPI Developer Guide
Response Example
HTTP/1.1
Content-Type:image/jpeg;charset=utf-8
Date:YourDate
Content-Length:image_length
[Picture Data]
Request URL
https://[serverAddress]:[serverPort]/artemis/api/pms/v1/crossRecords/page
Request Parameters
330
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
331
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"
}
]
}
}
332
HikCentral Professional OpenAPI Developer Guide
Request URL
https://[serverAddress]:[serverPort]/artemis/api/vehicle/v1/parkinglot/list
Request Parameters
Response Parameters
Response Example
{
"code": "0",
333
HikCentral Professional OpenAPI Developer Guide
"msg": "Success",
"data": {
"total": 3,
"list": [
{
"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
334
HikCentral Professional OpenAPI Developer Guide
Request Parameters
Request Example
{
"parkingLotIndexCode": "1"
}
Response Parameters
335
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code":"0",
"msg":"Success",
"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
336
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"parkingLotIndexCode" : "1",
"floorIndexCode" : "14"
}
Response Parameters
337
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
}]
}]
}
}
338
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
339
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":""
}]
340
HikCentral Professional OpenAPI Developer Guide
}
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/vehicle/v1/parkinglot/passageway/record
Request Parameters
341
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
342
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
},
343
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":{
344
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
345
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"pageIndex":1,
"pageSize":3,
"queryInfo":{
346
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,
347
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
348
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"
349
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"
}
350
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
351
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"plateLicense":"123",
"personGivenName":"KaiRui",
"personFamilyName":"Jin",
"phoneNo":"1-1807894561",
352
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
353
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"pageIndex": 1,
"pageSize" : 10,
"keyWords" : ""
}
Response Parameters
354
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"
}
]
}
}
355
HikCentral Professional OpenAPI Developer Guide
Request URL
https://[serverAddress]:[serverPort]/api/vehicle/v1/vehicle/blocklist/modify
Request Parameters
356
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": ""
}
357
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",
358
HikCentral Professional OpenAPI Developer Guide
"data": ""
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/acs/v1/auth/applicationResult
Request Parameters
359
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"applicationResultType": 1,
"pageNo": 1,
"pageSize": 2,
"type": 1
}
Response Parameters
360
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"],
"controlType":3
}
361
HikCentral Professional OpenAPI Developer Guide
Response Parameters
Response Example
{
"code":"0",
"msg":"Success",
"data":[
[
{
"doorIndexCode":"1",
"controlResultCode":0,
"controlResultDesc":"Success"
},
{
"doorIndexCode":"2",
"controlResultCode":0,
"controlResultDesc":" Success "
}
]
]
}
362
HikCentral Professional OpenAPI Developer Guide
Request URL
https://[serverAddress]:[serverPort]/artemis/api/acs/v1/door/events
Request Parameters
363
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
364
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"
}
]
}
}
365
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
366
HikCentral Professional OpenAPI Developer Guide
Request Parameters
Request Example
{
"pageNo": 1,
"pageSize": 10,
"type": 1
}
Response Parameters
367
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": ""
}
}
]
}
}
368
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
369
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
370
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"privilegeGroupId": "1",
"type": 1,
"list": [
{
"id": "1"
}
]
}
Response Parameters
Response Example
{
"code": "0",
"msg": "Success",
"data": ""
}
371
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
372
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"total": 1,
"pageNo": 1,
"pageSize": 2,
"list": [
{
"id": "1"
}
]
}
}
373
HikCentral Professional OpenAPI Developer Guide
Request URL
https://[serverAddress]:[serverPort]/artemis/api/visitor/v1/auth/reapplication
Request Parameters
Response Parameters
Response Example
{
"code": "0",
"msg": "ok",
"data": ""
}
374
HikCentral Professional OpenAPI Developer Guide
Request URL
https://[serverAddress]:[serverPort]/artemis/api/visitor/v1/person/ID/elementDownloadDetail
Request Parameters
Request Example
{
"visitorId": "125"
}
Response Parameters
Response Example
{
"code": "0",
375
HikCentral Professional OpenAPI Developer Guide
"msg": "Success",
"data": {
"ElementDetailList": {
"ElementDetail": [
{
"BaseInfo": {
"Name": "undefined",
"ElementType": 0,
"Network": 0
},
"ElementStatus": {
"Status": "-1",
"ErrorModule": "0",
"ErrorCode": "0"
},
"CertificateStatusList": {
"CertificateStatus": [
{
"Type": "0",
"ID": "0",
"Status": "-1",
"ErrorModule": "0",
"ErrorCode": "0"
}
]
},
"ID": "0"
}
]
}
}
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/mobilesurveillance/v1/gpsdetails
376
HikCentral Professional OpenAPI Developer Guide
Request Parameters
Request Example
{
"pageNo": 1,
"pageSize": 15
"mobilevehicleIndexCodes":"1,2"
377
HikCentral Professional OpenAPI Developer Guide
"startTime": "2022-02-10T15:00:00+08:00",
"endTime": "2022-02-11T16:00:00+08:00"
}
Response Parameters
378
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "Success",
"data": {
"total": 1,
"pageIndex": 1,
"pageSize": 10,
"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
379
HikCentral Professional OpenAPI Developer Guide
380
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"pageIndex": 1,
"pageSize": 10,
"mobilevehicleIndexCodes": "1,2",
"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
381
HikCentral Professional OpenAPI Developer Guide
Response Example
{
"code": "0",
"msg": "success",
"data": {
"total": "1",
"pageNo": "1",
"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"
}
]
}
}
382
HikCentral Professional OpenAPI Developer Guide
Request URL
https://[serverAddress]:[serverPort]/artemis/api/mobilesurveillance/v1/single/record
Request Parameters
Request Example
{
“mobilevehicleIndexCode":"1",
" eventIndexCode ": "BF1A2B849C5E4EDC858EF295A4E7DD2D"
}
Response Parameters
383
HikCentral Professional OpenAPI Developer Guide
384
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"
}
]
}
}
385
HikCentral Professional OpenAPI Developer Guide
Request URL
https://[serverAddress]:[serverPort]/artemis/api/body/v1/application/pictureRecognition
Request Parameters
Request Example
{
"intelligentServerIndexCode": "3",
"pictureData": "test"
}
Response Parameters
386
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
387
HikCentral Professional OpenAPI Developer Guide
Request Parameters
388
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"intelligentServerIndexCode": "1",
"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"
}
}
389
HikCentral Professional OpenAPI Developer Guide
Request URL
https://[serverAddress]:[serverPort]/artemis/api/body/v1/application/captureSearch
Request Parameters
390
HikCentral Professional OpenAPI Developer Guide
Request Example
{
"intelligentServerIndexCode": "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",
"maxResults": 100,
"searchResultPosition": 0,
"modelMaxNum": 100
}
Response Parameters
391
HikCentral Professional OpenAPI Developer Guide
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",
"y": "0.21"
},
"gender": 0,
"bag": 0,
"jacketType": 0,
"trousersType": 0,
"ageGroup": 0,
"hairStyle": 0,
"jacketColor": 0,
"trousersColor": 0,
"things": 0,
392
HikCentral Professional OpenAPI Developer Guide
"mask": 0
}
]
}
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/frs/v1/application/pictureRecognitionModel
Request Parameters
Request Example
{
"intelligentServerIndexCode": "3",
"pictureData": "base64"
}
393
HikCentral Professional OpenAPI Developer Guide
Response Parameters
Response Example
{
"code": "0",
"msg": "success",
"data": {
"targets": [
{
"targetModelData": "test",
"faceRect": {
"height": "0.89",
"width": "0.15",
"x": "0.12",
"y": "0.21"
}
}
]
}
}
394
HikCentral Professional OpenAPI Developer Guide
Request URL
https://[serverAddress]:[serverPort]/artemis/api/frs/v1/application/captureSearch
Request Parameters
395
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
396
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,
397
HikCentral Professional OpenAPI Developer Guide
"glasses": 1,
"smile": 1,
"ageGroup": 1
}
]
}
}
Request URL
https://[serverAddress]:[serverPort]/artemis/api/focsign/v1/material/dataSource/search
Request Parameters
Request Example
{
"sourceType": "push",
"dataType": "character",
398
HikCentral Professional OpenAPI Developer Guide
"sourceFrom": "all"
}
Response Parameters
Response Example
{
"code": "0x0190020f",
"msg": "Success",
"data": {
"total": 1,
"pageSize": 1,
"pageNo": 0,
"list": [
{
"sourceName": "testName",
"sourceID": "UUID",
"materialNo": 185,
"sourceType": "pull",
"dataType": "pic",
"sourceFrom": "custom"
}
]
}
}
399
HikCentral Professional OpenAPI Developer Guide
Request URL
https://[serverAddress]:[serverPort]/artemis/api/focsign/v1/material/dataSource/update
Request Parameters
Request Example
{
"dataType": "character",
"dataUpdateType": "cover",
"maxMaterialNum": 2,
"characterInfo": {
"contentList": [
{
"id": 1,
"content": "1111",
"playTime": 1
}
]
}
}
Response Parameters
400
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",
401
HikCentral Professional OpenAPI Developer Guide
"dataType": "character",
"dataUpdateType": "cover",
"maxMaterialNum": 2,
"characterInfo": {
"contentList": [
{
"id": 1,
"content": "1111",
"playTime": 1
}
]
}
}
]
}
Response Parameters
Response Example
{
"code": "0x0190020f",
"msg": "Success"
}
402
HikCentral Professional OpenAPI Developer Guide
Appendix A. Appendixes
A.1.1 AccessLevel
The table here shows the visitor's access permission.
A.1.2 AcsDevInfo
The table here shows the information of an access control device.
403
HikCentral Professional OpenAPI Developer Guide
A.1.3 AlarmInputInfo
The table here shows the alarm input information.
A.1.4 AlarmOutputInfo
The table here shows the alarm output information.
404
HikCentral Professional OpenAPI Developer Guide
A.1.5 ApplicationErrorResult
The table here shows the applying failure information.
405
HikCentral Professional OpenAPI Developer Guide
A.1.6 BaseInfo
The table here shows the basic information.
A.1.7 bodyRect
The table here shows information of the detected human body.
A.1.8 bodyTargetInfo
The table here shows information of target human body.
406
HikCentral Professional OpenAPI Developer Guide
407
HikCentral Professional OpenAPI Developer Guide
A.1.9 CameraInfo
The table here shows the information of a camera.
408
HikCentral Professional OpenAPI Developer Guide
409
HikCentral Professional OpenAPI Developer Guide
A.1.10 CameraRecordStatus
The table shows the storage status of a camera linked to the specific Storage Server.
410
HikCentral Professional OpenAPI Developer Guide
A.1.11 Card
The table here shows the information of a card .
A.1.12 CertificateStatus
The table here shows the status information of applying visitor's credential to device.
A.1.13 characterInfo
The table here shows the text content information.
411
HikCentral Professional OpenAPI Developer Guide
A.1.14 CustomField
The table here shows the custom information about a person.
412
HikCentral Professional OpenAPI Developer Guide
A.1.15 dataSourceBatchUpdateList
The table here shows the information of data resource update in a batch.
A.1.16 dataSourceData
The table here shows the information of data resource update.
413
HikCentral Professional OpenAPI Developer Guide
A.1.17 DeviceError
The table here shows the error information of a device.
A.1.18 DoorControlResult
The table here shows the information of an access point control result.
414
HikCentral Professional OpenAPI Developer Guide
A.1.19 DoorInfo
The table here shows the information of an access point.
A.1.20 ElementDetail
The table here shows the information of access level application information.
415
HikCentral Professional OpenAPI Developer Guide
A.1.21 ElementDetailBaseInfo
The table here shows the information of the device which the access level is applied to.
A.1.22 ElementStatus
The table here shows the status information of the device which the access level is applied to.
416
HikCentral Professional OpenAPI Developer Guide
A.1.23 EncodeDevInfo
The table here shows the information of an encoding device.
A.1.24 eventLabelList
The table here shows information of event tags.
417
HikCentral Professional OpenAPI Developer Guide
A.1.25 eventList
The table here shows information of the event.
418
HikCentral Professional OpenAPI Developer Guide
A.1.26 EventPic
The table here shows the event picture information.
A.1.27 EventRecord
The table here shows the information of an event record.
419
HikCentral Professional OpenAPI Developer Guide
A.1.28 face
The table here shows the information of a face.
420
HikCentral Professional OpenAPI Developer Guide
A.1.29 FaceGroupInfo
The table here shows the information of a face comparison group.
A.1.30 FaceInfo
The table here shows the information of a face.
A.1.31 facePic
The table here shows the information of a face picture.
421
HikCentral Professional OpenAPI Developer Guide
A.1.32 FaceMatchRecord
The table here shows the face comparison information.
422
HikCentral Professional OpenAPI Developer Guide
A.1.33 faceTargetInfo
The table here shows the information of the target face.
423
HikCentral Professional OpenAPI Developer Guide
424
HikCentral Professional OpenAPI Developer Guide
A.1.34 faceTargets
The table here shows the information of face modeling.
425
HikCentral Professional OpenAPI Developer Guide
A.1.35 FingerPrint
The table here shows the information of a fingerprint.
A.1.36 fingerPrintUpdateResult
This table shows the a fingerprint updating result.
426
HikCentral Professional OpenAPI Developer Guide
A.1.37 FloorInfo
The table here shows the floor information.
A.1.38 FloorOverViewInfo
The table here shows the floor overview.
427
HikCentral Professional OpenAPI Developer Guide
A.1.39 ForbiddenVehicleInfo
The table here shows information of the vehicle in the blocklist.
428
HikCentral Professional OpenAPI Developer Guide
A.1.40 GeneralEventRule
The table here shows information of generic event rule.
429
HikCentral Professional OpenAPI Developer Guide
A.1.41 gpsInfo
The table here shows the GPS information.
A.1.42 HDDInfo
The table shows the information of a HDD.
430
HikCentral Professional OpenAPI Developer Guide
A.1.43 IntelligentServerInfo
The table shows the information of an Intelligent Server.
A.1.44 LiveViewUrlInfo
The table shows the information of live view URL.
431
HikCentral Professional OpenAPI Developer Guide
A.1.45 MobileDeviceInfo
The table here shows the on-board device information.
A.1.46 MobilevehivleInfo
The table here shows the information of vehicles linked to on-board devices.
432
HikCentral Professional OpenAPI Developer Guide
A.1.47 OrgInfo
The table here shows the information of an organization.
433
HikCentral Professional OpenAPI Developer Guide
A.1.48 ParkingFeeCalculate
The table here shows the information for parking fee calculation.
A.1.49 ParkingFeeConfirm
The table here shows the information for parking fee confirmation.
434
HikCentral Professional OpenAPI Developer Guide
A.1.50 ParkingLotInfo
The table here shows the information about a parking lot.
A.1.51 ParkingRecordInfo
The table here shows the information about a vehicle parking record.
435
HikCentral Professional OpenAPI Developer Guide
A.1.52 ParkingSpaceInfo
The table here shows the information about a parking space.
436
HikCentral Professional OpenAPI Developer Guide
A.1.53 PassingRecordInfo
The table here shows the information about a vehicle passing record.
437
HikCentral Professional OpenAPI Developer Guide
A.1.54 PassVehicleRecord
The table here shows the information of a vehicle passing record.
438
HikCentral Professional OpenAPI Developer Guide
A.1.55 PatrolInfo
The table here shows the patrol information.
439
HikCentral Professional OpenAPI Developer Guide
A.1.56 PatrolPointInfo
The table here shows the information of a preset in the patrol.
440
HikCentral Professional OpenAPI Developer Guide
A.1.57 PeopleCountInfo
This table shows people counting statistics information of an item.
A.1.58 PeopleCountingParam
The table here shows people counting parameters.
A.1.59 PersonInfo
The table here shows the information of a person.
441
HikCentral Professional OpenAPI Developer Guide
442
HikCentral Professional OpenAPI Developer Guide
A.1.60 PersonInOutEvents
The table here shows the information of an access point event.
443
HikCentral Professional OpenAPI Developer Guide
A.1.61 PersonPhoto
The table here shows the information of a person picture.
A.1.62 picInfo
The table here shows the picture information.
444
HikCentral Professional OpenAPI Developer Guide
A.1.63 PlaybackUrlVideoInfo
The table shows the information of playback URL and video segment.
445
HikCentral Professional OpenAPI Developer Guide
A.1.64 PresetInfo
This table shows the information of a preset.
A.1.65 PresetValue
The table here shows the information about a preset value.
A.1.66 PrivilegeGroupInfo
The table here shows access group information.
446
HikCentral Professional OpenAPI Developer Guide
A.1.67 ReaderInfo
The table here shows card reader information.
A.1.68 RealPeopleCountInfo
The table here shows the real-time statistics of a group.
447
HikCentral Professional OpenAPI Developer Guide
A.1.69 RecordOverview
The table here shows the record overview.
448
HikCentral Professional OpenAPI Developer Guide
A.1.70 RelatedResourceInfo
The table here shows related resources.
449
HikCentral Professional OpenAPI Developer Guide
A.1.71 RecordServerInfo
The table shows the information of a Storage Server.
450
HikCentral Professional OpenAPI Developer Guide
A.1.72 RegionInfo
The table here shows the information of an area.
A.1.73 RelatedErrorInfo
The table here shows the details of an error.
451
HikCentral Professional OpenAPI Developer Guide
A.1.74 ResourceGroupInfo
The table here shows information about a resource group.
A.1.75 SiteInfo
The table here shows the information of a site.
A.1.76 SpaceTypeOverViewInfo
The table here shows the information about a parking space type.
452
HikCentral Professional OpenAPI Developer Guide
A.1.77 StatisticResult
The table here shows the statistics result.
A.1.78 StreamServerInfo
The table shows the information of a Stream Media Server.
453
HikCentral Professional OpenAPI Developer Guide
A.1.79 SubscriptionInfo
The table here shows the details of a subscribed event.
Note
Refer to Event Message Format for
the event details received in the
address.
454
HikCentral Professional OpenAPI Developer Guide
A.1.80 tableInfo
The table here shows the table information.
A.1.81 TimeSchedule
The table here shows the information of time schedule template.
A.1.82 TimeZoneInfo
The table shows the time zone information.
455
HikCentral Professional OpenAPI Developer Guide
A.1.83 TwoWayAudioUrlInfo
The table shows the information of two-way audio URL.
456
HikCentral Professional OpenAPI Developer Guide
A.1.84 VehicleGroupInfo
The table here shows the vehicle group information.
A.1.85 VehicleInfo
The table here shows the information of a vehicle.
457
HikCentral Professional OpenAPI Developer Guide
A.1.86 Version
The table here shows the product version information.
A.1.87 VideoInfo
This table shows the information of a video segment for playback.
458
HikCentral Professional OpenAPI Developer Guide
A.1.88 Visitor
The table here shows the visitor information.
A.1.89 VisitorappointInfo
The table here shows the information of a reservation record.
459
HikCentral Professional OpenAPI Developer Guide
460
HikCentral Professional OpenAPI Developer Guide
A.1.90 VisitorInfo
The table here shows visitor information.
461
HikCentral Professional OpenAPI Developer Guide
A.1.91 VisitorPhoto
The table here shows visitor's photo information.
462
HikCentral Professional OpenAPI Developer Guide
463
HikCentral Professional OpenAPI Developer Guide
Example
Event Message Example
{
"method": "OnEventNotify",
464
HikCentral Professional OpenAPI Developer Guide
"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":""}
}]
}
}
Example
Message Example of Access Control Event
465
HikCentral Professional OpenAPI Developer Guide
{
"personId": "",
"cardNo": "",
"checkInAndOutType": ,
"picUri": "",
"temperatureData": ,
"temperatureStatus": ,
"wearMaskStatus": ,
"readerIndexCode": ,
"readerName":
}
Example
Message Example of ANPR Event
{
"plateNo":""
}
Example
Message Example of License Plate Matched or Mismatched Event
{
"plateNo":"",
466
HikCentral Professional OpenAPI Developer Guide
"vehicleGroupIndexCode":""
}
467
HikCentral Professional OpenAPI Developer Guide
Example
Message Example of Face Comparison Event
{
"alarmResult":{
"faces":[{
"URL": "",
"snap_pic_data": "",
"age":{
"ageGroup":"CHILD"
},
468
HikCentral Professional OpenAPI Developer Guide
"faceRect":[{
"height": ,
"width": ,
"x": ,
"y":
}],
"temperature":{
"temperatureData": ,
"temperatureStatus":
},
"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:""
}
469
HikCentral Professional OpenAPI Developer Guide
470
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,
471
HikCentral Professional OpenAPI Developer Guide
"vehicleColor": 0,
"vehicleTpe": 0
}
}
472
HikCentral Professional OpenAPI Developer Guide
Gender Type
Vehicle Color
473
HikCentral Professional OpenAPI Developer Guide
Video Type
474
HikCentral Professional OpenAPI Developer Guide
475
HikCentral Professional OpenAPI Developer Guide
Capability Set
Transmission Protocol
Recording Type
476
HikCentral Professional OpenAPI Developer Guide
Age Group
Camera Alarms
477
HikCentral Professional OpenAPI Developer Guide
478
HikCentral Professional OpenAPI Developer Guide
479
HikCentral Professional OpenAPI Developer Guide
Door Alarms
480
HikCentral Professional OpenAPI Developer Guide
Person Alarms
481
HikCentral Professional OpenAPI Developer Guide
482
HikCentral Professional OpenAPI Developer Guide
483
HikCentral Professional OpenAPI Developer Guide
484
HikCentral Professional OpenAPI Developer Guide
ANPR Events
Facial Events
485
HikCentral Professional OpenAPI Developer Guide
486
HikCentral Professional OpenAPI Developer Guide
487
HikCentral Professional OpenAPI Developer Guide
488
HikCentral Professional OpenAPI Developer Guide
489
HikCentral Professional OpenAPI Developer Guide
490
UD32209B