Create custom landing pages
On top of customizing emails, you might also want to design a custom page that presents the available doors to the user, e.g. add your own logo, colors, or render the door buttons based on your company's design guidelines.
To achieve this, you can fetch a list of all doors that the link provides access to, and use this information to create your own custom doors overview page.
Users with a digital credential can unlock doors associated with the link without having to sign in. Also, Geofence restrictions and Reader proximity restrictions do not apply to digital credentials, allowing remote door opening from any location. To ensure secure usage, please follow our recommended access link best practices.
- Generate the access link or QR code as shown in Send digital credentials via customized emails
- Copy the
secretvalue that is returned upon link creation - In a new request, change the
Authorizationheader value toKISI-GROUP-LINK - Paste the
secretvalue right afterKISI-GROUP-LINK - Send a
GETrequest to the Fetch locks endpoint, as shown below
Example
curl --request GET \
--url https://api.kisi.io/locks \
--header 'Authorization: KISI-GROUP-LINK <secret> ' \
--header 'Content-Type: application/json'
Response
If your request was successful, you'll receive a 200 OK response with a list of doors that the respective link provides access to.
Unlock doors with the access link
Once a user selects a door to unlock from the list, you can unlock it using the access link credential. The unlock process works the same as cloud unlocks, but uses the KISI-GROUP-LINK authorization instead of KISI-LOGIN:
- Use the same
Authorizationheader format:KISI-GROUP-LINK <secret> - Send a
POSTrequest to the Unlock lock endpoint - Include the
lock_idof a chosen door in the request URL
Example
curl --request POST \
--url https://api.kisi.io/locks/{lock_id}/unlock \
--header 'Authorization: KISI-GROUP-LINK <secret>' \
--header 'Content-Type: application/json' \
--data '{
"context": {
"location": {
"longitude": 0,
"latitude": 0
}
},
"lock": {
"proximity_proof": null
}
}'
A digital credential is always associated to a group. This means, the link provides access to the same doors its associated group provides access to.