Masterlock: Get temporary code

Returns a temporary code for the lock.

Most Masterlocks rotate the codes 6 times per day at fixed intervals. These intervals put you at risk of receiving a soon-to-expire code. We don't do any magic to mitigate this, but simply allow for you to supply a validAt query parameter, asking for a code in the near future.

I.e. if you ask for a code valid at 03:59 and it is rotated at 04:00, the user will have 1 minute to input the code. In these cases you may want to relay the next code as well. Use the first code's validTo property to request the next code.

Supported vendorsMasterlock
Required Scopeproject.admin
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

ID of the Project. Must match the one in the JWT.

string
required

ID of the Lock.

Responses

Language
Credentials
Bearer
JWT
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json