Get ekeys of a lock

https://api.sciener.com/v3/lock/listKey

List all the common ekeys of a lock, including authorized ekeys.

This API will not return the top administrator's ekey.

Do you want to share an ekey to somebody? refer to cloud API: Send 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
searchStrStringNSearch keywords, fuzzy search by key name
keyRightIntNWhether the ekey is authorized or not: 0 - No, 1 - Yes, used to filter authorized administrator electronic keys, return all ekeys without this parameter
pageNoIntYPage no, start from 1
pageSizeIntYItems per page, max 200
orderByIntYSort by: 0-by name, 1-reverse order by time, 2-reverse order by name
dateLongYCurrent time (timestamp in millisecond)

3 Response and example

ParameterTypeDescription
listJSONArraylist of records
pageNoIntPage no, start from 1
pageSizeIntItems per page, max 200
pagesIntTotal number of pages
totalIntTotal number of records

The objects in the list

ParameterTypeDescription
keyIdIntEkey ID
lockIdIntLock ID, generated by Lock init
usernameStringUsername of an ekey owner
uidIntUser ID
keyNameStringKey name
keyStatusStringRefer to: Ekey status
startDateLongThe time when it becomes valid (timestamp in millisecond)
endDateLongThe time when it is expired (timestamp in millisecond)
keyRightIntIs key authorized: 0-NO, 1-yes
remoteEnableIntIs remote unlock enabled: 1-yes,2-no
senderUsernameStringThe sender's username
remarksStringComment
dateLongSend time (timestamp in millisecond)