Swiniot
  1. Door Lock Callback Commands
  • Swiniot Open Platform
    • API LIST
      • Token Acquisition and Usage Guide
      • Electricity Meter API
        • Query total electricity meter count
        • Query single electricity meter information
        • Query electricity meter recharge records
        • Query electricity consumption of a single meter
        • Query all electricity meter information
        • Query three-phase meter voltage, current, and power
        • Bind electricity meter
        • Unbind electricity meter
        • Electricity meter recharge
        • Electricity meter reading reset
        • Electricity meter switch
        • Set electricity price
        • Switch electricity meter payment mode
        • Electricity meter operation log
        • Bluetooth switch
        • Bluetooth switch - response
        • Bluetooth meter reading
        • Bluetooth meter reading - response
        • Bluetooth recharge
        • Bluetooth recharge - response
      • Water Meter API
        • Water meter recharge - Bluetooth
        • Water meter recharge - Bluetooth -response
        • Query total water meter count
        • Query single water meter information
        • Query water meter recharge records
        • Query water consumption of a single water meter
        • Batch query all water meter information
        • Add water meter
        • Water meter reading reset
        • Water meter operation log
        • Water meter recharge
        • Modify water price
        • Modify water meter payment mode
        • Valve-controlled water meter open/close valve
      • Super Gateway Door Lock API
        • Door Lock Command Dispatch
          • Door lock Bluetooth initialization command
          • Add, edit, or delete landlord password (only one password allowed)
          • Add, edit, or delete tenant password (only one password allowed)
          • Open door
          • Call the disconnect remote command before connecting via Bluetooth. Otherwise, the Bluetooth connection will fail.
          • Unbind door lock
          • Door card operations (add, delete, etc.)
          • Fingerprint operations (add, delete, etc.)
        • Door Lock Callback Commands
          • Door lock initialization callback API
            GET
          • API to call after door lock initialization is complete
            GET
          • Landlord password add, delete, or update callback API
            GET
          • Tenant password add, delete, or update callback API
            GET
          • Open door callback
            GET
          • Door lock unbind callback API
            GET
          • Door card Bluetooth callback API
            GET
          • Fingerprint Bluetooth callback API
            GET
        • Door lock list
          GET
  1. Door Lock Callback Commands

API to call after door lock initialization is complete

GET
https://api.swiniot.com/open/sw/answer/electricity
Initialize power callback. After the door lock initialization succeeds (i.e., the GET https://api.zhihuifangdong.net/open/sw/answer/initialize request completes), a Bluetooth command is returned. Send this command back to this callback endpoint to complete the door lock initialization.

Request

Query Params

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 'https://api.swiniot.com/open/sw/answer/electricity?message=A................................&doorName=SL_40717260100000'

Responses

🟢200Success
application/json
Bodyapplication/json

Example
{}
Modified at 2026-06-12 06:52:41
Previous
Door lock initialization callback API
Next
Landlord password add, delete, or update callback API
Built with