en-bvcsp
  1. Authentication
en-bvcsp
  • Root directory
    • Root directory
      • Authentication
        • User Login
          POST
        • Log out
          POST
        • Refresh token
          POST
        • Get the current logged-in user information
          GET
        • Change the current user's password
          POST
        • Get the device login QR code
          POST
        • Batch obtain login QR codes
          POST
      • User
        • Get root user group information
        • Get user group information
        • Get the user group list
        • Get user list
        • Get the list of online users
        • Get user online status
        • Get the user's current location
        • Get user information
      • Role
        • Get the list of roles
        • Get role information
        • Create role
        • Modify role
        • Delete role
        • Get the list of role resources
        • Add role resource
        • Delete role resource
      • User Management
        • Create user group
        • Modify user group
        • Delete user group
        • User information retrieval request
        • Check whether the created user information is available.
        • Create user
        • Modify user
        • Delete user
        • Change user password
        • Kick the user offline
        • Get the list of user resources
        • Add user resource
        • Delete user resources
        • Bind user device
        • Unbind user device
      • device
        • Get root device group information
        • Get the device group list
        • Get device group information
        • Get the device category list
        • Get device classification information
        • Get the device list
        • Get device information
        • Get the online status of the device
        • Get the device's current location
        • Get battery information
        • Pass-through command
        • Manual Recording - Start
        • Manual Recording - Stop
        • Manually capture a picture
      • Device Management
        • Create a device group
        • Modify device group
        • Delete device group
        • Add device
        • Delete device
        • Restart the device
        • Turn off the device
        • Create device category
        • Modify device category
        • Delete device category
        • Get ungrouped device information
        • Modify the device's basic information
        • Batch modify the group to which the device belongs
        • Batch modify the category to which the device belongs
        • Modify device channel information
        • Kick the online device offline
        • Get general configuration
        • Set general configuration
        • Set power configuration
        • Get Ethernet configuration
        • Set up Ethernet configuration
        • Get Wifi configuration
        • Set up Wi-Fi configuration
        • Get wireless network configuration
        • Set up wireless network configuration
        • Get capture configuration
        • Set up capture configuration
        • Get audio input configuration
        • Set audio input configuration
        • Get audio output configuration
        • Set audio output configuration
        • Get device encoding channel attributes
        • Set device encoding channel attributes
        • Get video source
        • Set video source
        • Get device GPS configuration
        • Set device GPS configuration
        • Get device server configuration
        • Set device server configuration
        • Get device storage information
        • Set device storage information
        • Get formatting progress
        • Format the memory
        • Get device storage settings
        • Modify device storage settings
        • Get device upload settings
        • Modify device upload settings
        • Get storage status
        • Get storage plan
        • Set up a storage plan
        • Get overlay information
        • Set overlay information
        • Get firmware upgrade status
        • Batch get firmware upgrade status
        • Firmware upgrade
        • Get law enforcement device information
        • Set law enforcement device information
        • Get sensor data
        • Set sensor data
        • Get online and offline control configuration
        • Set up online and offline control configuration
        • Add configuration plan
        • Modify the configuration plan
        • Delete configuration plan
        • Get configuration plan
        • Get the configuration plan list
        • Add configuration plan device
        • Delete the configuration plan device
        • Get the list of configured device.
        • Get the configuration plan device
        • Get the list of devices not associated with the configuration plan
        • Get device language
        • Change device language
        • Get alarm input configuration
        • Set alarm input configuration
      • Gimbal
        • Pan-Tilt Lens Control
        • Get the list of gimbal presets
        • Add gimbal preset point
        • Modify the pan-tilt preset point
        • Delete Pan-Tilt Preset Point Operation
        • Go to the PTZ preset point
        • Get the list of gimbal cruise routes
        • Add gimbal cruise route
        • Start the pan-tilt cruise route.
        • Stop the gimbal cruise route
        • Delete the gimbal cruise route
      • IM group
        • Get group list
        • Get the group member list
        • Get group member information
        • Get group information
        • Create group
        • Edit group
        • Delete group
        • Add group members
        • Delete group members
        • Modify other group members
        • Modify your group nickname
        • Transfer Group
        • create a meeting
        • revision meeting
        • delete conference
        • Get meeting information
        • Get a list of meeting members
        • Get meeting member information
        • Get the default meeting member list
        • Join the meeting yourself
        • Quit the meeting yourself
        • floor requesting
        • concluding
        • Invite others to join the meeting
        • Kick people out of meetings
        • Name others to speak
        • Get default meeting
        • Add default meeting
        • Delete default meeting
        • Conference recording control
        • gag control
      • instant messaging
        • Send communication message
        • Confirmation message read
        • Check your chat history
        • Advanced query of chat history
        • Query the read message ID
        • Request audio and video call
        • Delete chat history
      • websocket
        • Online status subscription
        • Alarm event subscription
        • Instant messaging subscription
        • Device location subscription
        • Conference event subscription
        • Command interactive subscription
        • Push messages to third parties
      • historical data
        • Platform document retrieval
        • Obtain video file information
        • Modify video file information
        • handle alarm
        • alarm records
        • Delete alarm records in batches
        • Device GPS trajectory
        • Device File Retrieval
        • Download device files
        • Delete device files
        • Device offline log
        • User offline log
        • Device offline log (extend)
        • User offline log (extend)
        • operation log
        • channel log
        • System alarm record
        • Basic data statistics
        • Channel log statistics
        • Offline data statistics
      • electronic fence
        • Get a list of fences
        • Get fence information
        • Create a platform fence
        • Modify platform fence
        • Remove platform fence
        • Get a list of fencing equipment
        • Add fencing equipment
        • Remove fence equipment
      • alarm linkage
        • Add alarm linkage
        • Modify alarm linkage
        • Get alarm linkage list
        • Get alarm linkage
        • Delete alarm linkage
        • Add alarm linkage object list
        • Delete alarm linkage object
        • Get a list of alarm linkage objects
        • Add alarm linkage action
        • Delete alarm linkage action
        • Get a list of alarm linkage actions
        • Get alarm linkage actions
      • 28181in
        • Get a list of 28181 devices
        • Get 28181 device information
        • Add 28181 equipment
        • Modification of 28181 Equipment
        • Remove 28181 equipment
        • Get a list of 28181 platforms
        • Get 28181 platform information
        • Add 28181 platform
        • Modify the 28181 platform
        • Delete the 28181 platform
        • Get the 28181 platform grouping list
        • obtain configuration information
        • Create a video file download task
        • Get a list of video files
        • Get video file download progress
        • Video file download
        • Update channel information
        • Push the 28181 platform organization structure to 28181 output
        • Create server certificate request
        • Get a list of server certificates
        • Get server certificate information
        • Modify server certificate information
        • Delete server certificate
        • self-signed server certificate
        • Upload device certificate request
        • Get a list of device certificate requests
        • issue certificates
        • Modify certificate request information
        • Get device certificate request information
        • Delete device certificate request information
        • Add national secret equipment information
        • Get a list of national secret devices
        • Modify national secret equipment information
        • Delete national secret equipment information
        • Obtain national secret equipment information
      • 28181out
        • Add superior platform
        • Obtain superior platform information
        • Modify the superior platform
        • Delete superior platform
        • Get a list of superior platforms
        • push list
        • acquisition state
        • Get a list of device groups
        • Add device grouping
        • Modify device grouping
        • Delete device grouping
        • Get device groups
        • Get a list of 28181 devices
        • Get a list of unadded devices
        • Add 28181 equipment
        • Add 28181 equipment in batches
        • Modification of 28181 Equipment
        • Remove 28181 equipment
        • Obtaining 28181 device information based on puid
        • Obtaining 28181 device information based on national standard id
        • Add channel information
        • Modify channel information
        • Delete channel information
        • Get channel information
        • Get a list of 28181 channels
        • Add superior platform equipment
        • Delete superior platform equipment
        • Get a list of superior platform devices
      • map label
        • Create map point labels
        • Modify map point labels
        • Query the map point label list
        • Query map point label information
        • Create map line labels
        • Modify map line labels
        • Query the map line label list
        • Query map line label information
        • Create map surface labels
        • Modify map surface labels
        • Query the map tab list
        • Query map label information
        • Add map label anchor points
        • Modify map label anchor points
        • Delete map label anchor points
        • Delete map tags
        • Query the map label anchor point list
        • Query map label positioning point information
      • Video file timeline
        • added
        • delete
        • query
      • platform storage
        • Download Plan--Add
        • Download Plan-Get
        • Download Plan-Modify
        • Download Plan--Query
        • Download Plan-Delete
        • Video Plan-Add
        • Video Plan-Get
        • Video Plan--Modify
        • Video Plan-Query
        • Video Plan-Delete
        • Plan Device Association--Add
        • Plan Equipment Association-Modify
        • Plan Equipment Association-Delete
        • Planning Equipment Association--Query
        • Planned equipment association--query is not associated
        • Manual recording-start
        • Manual recording-End
        • Grab a picture manually
      • Platform storage status
        • Download Plan List
        • Download the list of planned associated devices
        • Downloading list
        • Device File List
        • retry/priority download
        • Re-download (downloaded file)
        • conversation list
        • close the session
        • Video Plan Log-Equipment
        • Video Plan Log-Video Plan
      • contact
        • Cancel the top
        • Add top
        • Get top list
      • module program
        • cs app query
        • cs app batch modification
        • cs app modification
        • webapp query
        • webapp Get the homepage
        • webapp settings home page
        • webapp Get configuration
        • webapp settings configuration
        • plugapp query
        • module query
      • black and white list
        • Get black and white list configuration
        • Modify black and white list configuration
        • Get the black and white list
        • Delete black and white list
        • Add black and white list
      • media streaming operation
        • close the session
        • Open the device's audio and video stream webrtc
        • Open the device audio and video stream bvrtc
        • Open the voice conference stream webrtc
        • Open the voice conference stream bvrtc
        • Open the voice conference stream websocket
        • Open playback of audio and video streams
        • playback control
        • View the conversation list
        • Get session information
        • View the list of streaming services
        • Reset streaming service statistics
        • Push audio and video streaming webrtc
      • Collection station management
        • Enter collection station
        • Get a list of collection stations
        • Obtain collection station information
        • Modify collection station information
        • Delete collection station information
        • Kick the collection station offline
      • Acquisition station docking
        • Collection station online
        • Collection station offline
        • Collection station keeps alive
        • Index of reporting documents
        • Get file information
        • delete files
      • Platform document classification
        • Get a classified list of files
        • Get file classification information
        • Create file classification
        • Modify file classification
        • Delete file classification
        • File binding classification
  • Schemas
    • Root directory
      • Root directory
        • gpsdata
        • Flat type
    • root directory
      • code
      • pageInfo
      • day_time_slice
      • online_status
      • language
      • imgroup_member
      • conf_member
      • file information
      • download_plan
      • record_plan
      • app_info
      • conference_info
      • statistics_filter
      • statistics_info
      • avcall
      • time_slice
      • configplan
      • configplan_pu
      • im_message
      • imgroup_info
      • response
    • user
      • role_info
      • user_group
      • power_resource
      • permission
      • user_info
    • device
      • Ethernet configuration
      • wifi_config
      • snapshot_config
      • gps_config
      • pu_zfy_info
      • pu_sensor_data
      • language_info
      • pu_online_control
      • station_info
      • pu_cruise_info
      • pu_overlay_config
      • pu_storage_schedule
      • pu_storage_rule
      • storages_config
      • Device server configuration
      • encoder_config
      • audioin_config
      • radio_config
      • battery information
      • pu_info
      • group information
      • channel
      • uploadConfig
    • map
      • flat type
      • maplabel_line
      • gps_data
      • maplabel_point
      • platffence_info
      • gps_time
      • marker point coordinates
      • maplabel_plane
    • alarm
      • alarm_info
      • alert_in
      • alarm_link_action
      • alarm_type
      • action_type
      • alarm_action
    • 28181
      • cert_info
      • cert_csr_info
      • gm_device
      • upperserver_info
      • gb28181_id
      • 28181out_device_group
      • platform_info
      • 28181out_upper_device
      • bv28181in_device
  1. Authentication

User Login

POST
https://192.168.88.11:9781/bvcsp/v1/auth/login
Last modified:2026-01-04 06:12:28
If the client sends an HTTP request to perform an operation on a resource while the device is either unauthenticated or its authentication has expired, the server will return a failure with code==9. In this case, you need to use this interface to perform authentication.
After this interface returns a 200 success code, it indicates that the authentication was successful. Subsequently, when sending other requests, you need to include the data.token string in the request. There are three ways to pass the token (listed in order of priority—choose one):
1.
As a query parameter, with the key being "token".
2.
In the "Authorization" header.
3.
In the "Authorization" cookie.
4.
In the "Sec-WebSocket-Protocol" header.
This interface does not guarantee data security; it relies on SSL to ensure data security. We recommend accessing this interface via HTTPS.
Once a token is created, it remains valid until it expires.
The steps for generating the encrypted password are as follows: sha256(sha256(account_password)_timestamp):
Timestamp: UTC time (the number of seconds since January 1, 1970, 00:00:00), and the difference between this timestamp and the backend system time should not be too large.
1.
Ciphertext 1 = SHA256(id_password), which means combining "account_password" and then encrypting it using the SHA256 algorithm.
2.
Encrypted password = SHA256_T: Ciphertext. The ciphertext itself is calculated as SHA256(Ciphertext 1_timestamp), meaning combining Ciphertext 1 with "_timestamp" and then encrypting it again using SHA256.
Example (we recommend using online SHA256 encryption to verify):
Account: admin
Password: 123456
Timestamp: 1721272800
Step 1: SHA256(admin_123456) results in: 6848d6405bf34bf9b2d82ed8822c756807632d3eaefedec90ac33cb32ac83671
Step 2: SHA256(6848d6405bf34bf9b2d82ed8822c756807632d3eaefedec90ac33cb32ac83671_1721272800) results in: ebc145ec6decbc3e7842f1fbc2bd6d0cf65e76f1dc3b7e21ebfd01a5c5a8c65a
The encrypted password is: SHA256_T:ebc145ec6decbc3e7842f1fbc2bd6d0cf65e76f1dc3b7e21ebfd01a5c5a8c65a
Note: The passwords stored in the database have already been encrypted by the backend.

Request

Header Params

Body Params application/json

Example
{
    "username": "admin",
    "password_encrypted":  "SHA256_T:ebc145ec6decbc3e7842f1fbc2bd6d0cf65e76f1dc3b7e21ebfd01a5c5a8c65a",
    "timestamp": 1721272800
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://192.168.88.11:9781/bvcsp/v1/auth/login' \
--header 'Content-Type: application/json' \
--data-raw '{
    "username": "admin",
    "password_encrypted":  "SHA256_T:ebc145ec6decbc3e7842f1fbc2bd6d0cf65e76f1dc3b7e21ebfd01a5c5a8c65a",
    "timestamp": 1721272800
}'

Responses

🟢200Success
application/json
Body

Example
{
    "code": 0,
    "msg": "OK",
    "data": {
        "token": "_c9g7HJwCXIYpDq18gcsM00ZdCHAzO3w_L9XCbDGOffsdpMfDHHICrP0W9RtpiAYYvRIye94GwQUbkD0wWUYrTGG2U-VT8GGOuEIMTPZVL9Cv8z-7rflw9gjz-KjJCP66",
        "timeout": 14400,
        "appID": 529,
        "remaining": 0,
        "locking": 0,
        "change_password": false
    }
}
Modified at 2026-01-04 06:12:28
Next
Log out
Built with