Check if Keypad entry code is valid

Hi all,
I need to build an interface (web app or app) that:

  1. allows user to submit the code they received by Nuki;
  2. the app checks if the code is valid (existing and enabled at the current time)
  3. if the code is valid, the app will load a page with instructions.

Any suggestion for API regarding step #2 ?

Thank you!

With the Web API you can get a list of all Keypad codes for a devices via
GET /smartlock/{smartlockId}/auth
and then filtering for type = 13
With this you should be able to verify if a code would currently be valid.

But be aware that you would need such an interface to be secured against (brute-force) attacks to “guess” correct entry codes for a Keypad.

1 Like