NEO CLOUD SMART LOCK |
NEO CLOUD ACCESS CONTROL |
API Key: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI1YzI3Yjk3ZDRiMTJhMTAw
MTc3MTVlZmYiLCJsYXRlc3RfdG9rZW5fZGF0ZSI6IjIwMTktMDEtMTNUMDY6NTI6MzUuMjg5WiIsImlhdCI6MTU0NzUwMTM5Mn0.v8cuLVqum_sWuM1OsSWiM3MUpRYRHuSMsBYucZIYVk0
Request URL |
factory_name is obtained from app interface. It either starts with ‘SS’ or ‘UL’. Replace API_KEY with your API Key retrieved from above. |
|
Request Method |
GET |
|
Header |
Content-type |
application/json |
Body |
nil |
|
Example:
HTTP Status Code |
Response Body (Plain Text) |
200 |
{ |
400 |
You are not the admin. |
500 |
Unknown Error |
504 |
{
"ack": 504,
"message": "Gateway timeout. You should retry the request again now.",
ref: "UOWS-Xmuj"
}
|
Request Header |
x-auth-token |
<your API Key here> |
Request URL |
factory_name is obtained from app interface. It either starts with ‘SS’ or ‘UL’. |
|
Request Method |
POST |
|
Header |
Content-type |
application/json |
Body |
password_id: [Int] 101->200 , |
{ |
Example
POST https://cloud.kas.com.au/api/lockCommand/remotePassword/S000510
HTTP Status Code |
Response Body (Plain Text) |
200 |
{ |
400 |
You are not the admin. |
500 / 504 |
Unknown Error
{
"ack": 504,
"message": "Gateway timeout. You should retry the request again now."
}
|
Request Header |
x-auth-token |
<your API Key here> |
Request URL |
factory_name is obtained from app interface. It either starts with ‘SS’ or ‘UL’. |
|
Request Method |
DELETE |
|
Header |
Content-type |
application/json |
Body |
password: [String] 1234 or 223344 (4-6 digits) |
{ “password”:”1234″ |
Example
DELETE https://cloud.kas.com.au/api/lockCommand/remotePassword/S000510
HTTP Status Code |
Response Body |
200 |
{ |
400 |
You are not the admin. |
500 / 504 |
Unknown Error
{
"ack": 504,
"message": "Gateway timeout. You should retry the request again now."
}
|
Request Header |
x-auth-token |
<your API Key here> |
Request URL |
factory_name is obtained from app interface. It either starts with ‘SS’ or ‘UL’. |
|
Request Method |
GET |
|
Header |
Content-type |
application/json |
Body |
none |
none |
Example
GET https://cloud.kas.com.au/api/lockCommand/remotePassword/S000510
HTTP Status Code |
Response Body |
200 |
{ |
400 |
You are not the admin. |
500 / 504 |
Unknown Error |
Request Header |
x-auth-token |
<your API Key here> |
Request URL |
factory_name is obtained from app interface. It either starts with ‘SS’ or ‘UL’. |
|
Request Method |
GET |
|
Header |
Content-type |
application/json |
Body |
application |
none |
Example
GET https://cloud.kas.com.au/api/events/SS000510
HTTP Status Code |
Response Body |
200 |
{ “events”: { “_id”: “5ccf7997c89f1a0017350b78”, “l_factory_name”: “SS001479”, “events”: [ { “date_added”: “2019-08-07T13:45:48.140Z”, “_id”: “5d4ad60ccd2f7a0017ba7f1d”, “event_type”: 1, “event_type_label”: “Unlock Event”, “battery”: 97, “user_id”: 102, “user_type”: 3, “user_type_desc”: “password”, “user_id_value”: “4321”, “user_name”: “User 2”, “date_added_timezone_name”: “Australia/Brisbane” }, { “date_added”: “2019-08-16T00:25:25.346Z”, “_id”: “5d55f7f51d7b40001772b613”, “event_type”: 1, “event_type_label”: “Unlock Event”, “battery”: null, “user_id”: null, “user_type”: 7, “user_type_desc”: “Remote Unlock”, “user_id_value”: “test@test.com”, “user_name”: “User 1”, “date_added_timezone_name”: “Australia/Brisbane” } ], “__v”: 0, “l_lock_title”: “Door Lock 2” }, “ack”: 0 } |
40x |
You are not the admin. You are not the manager. Invalid Token. Lock is not found. |
500 |
Unknown Error |
Notice:
Request Header |
x-auth-token |
<your API Key here> |
Request URL |
factory_name is obtained from app interface. It either starts with ‘SS’ or ‘UL’. |
|
Request Method |
GET |
|
Header |
Content-type |
application/json |
Body |
none |
none |
Example
GET https://cloud.kas.com.au/api/lockCommand/remoteRFID/S000510
HTTP Status Code |
Response Body |
200 |
{ |
400 |
You are not the admin. |
500 / 504 |
Unknown Error |
Request Header |
x-auth-token |
<your API Key here> |
Request URL |
factory_name is obtained from app interface. It either starts with ‘SS’ or ‘UL’. |
|
Request Method |
POST |
|
Header |
Content-type |
application/json |
Body |
rfid_id: [Int] 101->200 , or 101-> 2000 for Access Control Reader
rfid_end_time: [String] YYMMDDHHmm,
rfid_name: [String] “John”,
uid: [String] - hexadecimal number of the rfid tag (4 hex bytes i.e 8 char string)
kas_uid: [String] - Number on the keycards provided by kas (10 digits only)
is_kas_uid: [Bool] - provide true if you are using kas_uid (ones provided by kas with 10 digits) - default False |
{ “rfid_end_time”:”1904251200″, “rfid_name”: “John”,
"uid": "ABCD1234",
"kas_uid": "1234567890",
"is_kas_uid":true
} |
Example
POST https://cloud.kas.com.au/api/lockCommand/remoteRFID/S000510
HTTP Status Code |
Response Body (Plain Text) |
200 |
{ |
400 |
You are not the admin. |
500 / 504 |
Unknown Error
{
"ack": 504,
"message": "Gateway timeout. You should retry the request again now."
}
|
Request Header |
x-auth-token |
<your API Key here> |
Request URL |
factory_name is obtained from app interface. It either starts with ‘SS’ or ‘UL’. |
|
Request Method |
DELETE |
|
Header |
Content-type |
application/json |
Body |
rfid_id: [Number] 101 |
{ |
Example
DELETE https://cloud.kas.com.au/api/lockCommand/remoteRFID/S000510
HTTP Status Code |
Response Body |
200 |
{ |
400 |
You are not the admin. |
500 / 504 |
Unknown Error
{
"ack": 504,
"message": "Gateway timeout. You should retry the request again now."
}
|
Request Header |
x-auth-token |
<your API Key here> |
Request URL |
factory_name is obtained from app interface. It either starts with ‘SS’ or ‘UL’. |
|
Request Method |
PUT |
|
Header |
Content-type |
application/json |
Example
PUT https://cloud.kas.com.au/api/lockCommand/setClock/S000510
HTTP Status Code |
Response Body |
200 |
{ |
400 |
You are not the admin. |
500 / 504 |
Unknown Error
{
"ack": 504,
"message": "Gateway timeout. You should retry the request again now."
}
|
ACK |
Response Body (message) |
Correction |
1 |
Success |
n/a |
2 / 4 / 6 |
Error. Internal interface error. Failed. Timeout. |
Try command again or Invalid parameters. Try adding a pincode on top of the existing ID and delete that one later. |
5 |
Pending |
Waiting for the API response. |
8 |
Failed. No gateway nearby |
Ensure gateway is nearby. You might have to wait a few minutes for the gateway and lock to automatically discover each other. |