Get one ekey

https://api.sciener.com/v3/key/get

If a user have an ekey of the lock, request this API to get the ekey.

1 Request example

2 Request parameters

NameTypeRequiredDescription
clientIdStringYclient_id from Create application
accessTokenStringYAccess token,refer to: Get access token
lockIdIntYLock ID, generated by Lock init
dateLongYCurrent time (timestamp in millisecond)

3 Response and example

ParameterTypeDescription
keyIdIntEkey ID
lockDataStringLock data, used to operate lock
lockIdIntLock ID
userTypeStringEkey type:110301-admin ekey, 110302-common user ekey
keyStatusStringRefer to: Ekey status
lockNameStringLock name
lockAliasStringLock alias
lockMacStringLock MAC
noKeyPwdStringSuper passcode, which only belongs to the admin ekey, can be entered on the keypad to unlock
electricQuantityIntLock battery
startDateLongThe time when it becomes valid (timestamp in millisecond)
endDateLongThe time when it is expired (timestamp in millisecond)
remarksStringComment
keyRightIntIs ekey authorized: 0-NO, 1-yes
featureValueStringcharacteristic value. it is used to indicate what kinds of feature do a lock support.
remoteEnableIntIs remote unlock enabled: 1-yes,2-no
passageModeIntPassage mode:1-enable、2-disable
timezoneRawOffsetLongThe offset between your time zone and UTC, in millisecond
groupIdIntGroup ID
groupNameStringGroup name