Guide
How to set up UniFi Access door codes for your bookings
With UniFi Access connected, every confirmed booking gets its own PIN code that opens the room's doors only around the booking, sent to the client with the confirmation and canceled with the booking. Setting it up takes a public address for the console, an API token and a few minutes in Ruumio.
What the client and you get
- A PIN code of its own for each confirmed booking, working only from a little before the start to a little after the end, as you set
- The code in the booking confirmation, again in the reminder, and with the booking in the client's account
- The code canceled with the booking, so a canceled booking can't open the door
- Codes made, changed and removed on the console by Ruumio, checked every minute, with failed attempts retried
- A button to unlock a door remotely when someone is stuck outside
What you need before you start
Ruumio's server talks to your UniFi Access console over the internet, so the console needs an address the internet can reach.
Ubiquiti's own documentation for each step, from its API reference to the help center's pages on readers and PINs, is linked under Sources, after the steps.
- A UniFi console running UniFi Access, version 1.9.1 or later, set up as standard UniFi Access: Ubiquiti offers the console's API there, and not on consoles upgraded to UniFi Identity Enterprise
- A door hub and a reader with a keypad on each door that booking codes should open (the list is below), and an admin account on the console
- An API token made in UniFi Access (the steps are below)
- A public address for the console: your router's public IP address, or a name for it such as a dynamic DNS name
- A forwarded port: the UniFi Access API port, 12445, forwarded to the console on your router. Ruumio connects to ports 443, 8443 and 12445
- The door codes add-on switched on in Ruumio (Pro includes it)
Which UniFi readers take a booking code
A booking's code is typed in at the door, so the door needs a reader with a keypad. Ubiquiti's help center lists the readers below as taking a PIN (checked on December 3, 2026). PIN unlock is on by default on a reader that supports it; it is set in UniFi Access under Devices, the reader, Settings.
Every reader below has a keypad, which is where the client types the code. Some also read a card, a phone or a fingerprint; a booking's code uses only the keypad.
- G6 Pro Entry
- G3 Reader Pro and G2 Reader Pro
- G3 Intercom and Intercom
- G3 Reader Fingerprint
- Reader Flex
- Retrofit Reader Fingerprint
Create the API token in UniFi Access
The token is what lets Ruumio list your doors, unlock one when you press the button, and make, change and remove each booking's visitor with its PIN. Ruumio keeps it encrypted and uses it only to talk to your console.
- Sign in to the console, open Access and go to Settings → General → Advanced → API Token
- Press Create New and give the token a name, such as Ruumio
- Choose its validity period: the token works until that date, so pick a long one and note when it ends
- Select the permission scopes Ruumio uses: view and edit for spaces (the doors and remote unlock), edit for visitors (each booking's code belongs to a visitor) and view for credentials (new PINs)
- If your team will have lasting door access, also select view and edit for users and for access policies: each team member's code belongs to a user with an access policy and a schedule
- Press Create and copy the token right away: UniFi Access shows it only this once
Make the console reachable
UniFi Access serves its API from the console itself, on port 12445 over https. Give the console a fixed address inside your network, forward port 12445 on your router to it, and use your public IP address or a dynamic DNS name as the address you enter in Ruumio.
The console's own certificate is self-signed. Ruumio handles that by pinning it: you compare the certificate's fingerprint once, and from then on Ruumio talks only to a console that presents exactly that certificate.
Test the token before you connect
Whoever set up your network can check the address and the token from a computer outside the building, before anything is entered in Ruumio:
curl --insecure -H 'Authorization: Bearer YOUR_TOKEN' https://YOUR_ADDRESS:12445/api/v1/developer/doors
A working setup answers with the code SUCCESS and the list of your doors. No answer points at the address or the port forward; an answer about permissions points at the token's scopes.
Step by step in Ruumio
- Open Door codes, the Connection tab, and enter the console's address with its port and no path (for example https://doors.yourstudio.com:12445) and the API token
- Set how many minutes before and after a booking the code works
- Switch on automatic door codes for bookings and save
- If the console has a self-signed certificate, compare its SHA-256 fingerprint with the one UniFi OS shows and trust it; a console with a public certificate doesn't need this
- Press Test connection: the doors are loaded from the console
- Open each room and tick the doors its booking code should open; a room with no door gets no codes
Choosing the time window
Clients arrive a little early and need a moment to pack up. A few minutes before the start and after the end is usually enough; a room with a lot of gear may need more after. Keep the window short where rooms are booked back to back, so one client's code has stopped working before the next booking starts.
If you also keep time free between bookings for cleaning or a reset, the code window can sit inside it.
Keeping it working
- Make a new token before the old one's validity period ends and paste it into the Connection tab
- Keep the console on its fixed local address and the port forward in place when a router is replaced or reset
- If your public IP address changes from time to time, use a dynamic DNS name as the address so it keeps pointing at your router
- After a console reset or a new certificate, Ruumio tells you the certificate has changed: on the Connection tab press Remove the pin, then Show the console's fingerprint, compare it with the one UniFi OS shows and trust it
- Choose the PIN length in UniFi Access under Settings → General → PIN (4, 6 or 8 digits, or variable) before you go live: Ruumio asks the console for each PIN, so new codes follow that setting
- When you change the doors a room opens or the minutes before and after a booking, the codes already sent follow the change and keep their PIN
When something doesn't work
- Ruumio says the API token is wrong or lacks permissions: make a new token with the scopes above, or check that its validity period hasn't ended
- The console didn't answer, or connecting failed: check that the port is still forwarded and the address still points at your router
- Ruumio asks for the console's public address: enter the one that works from outside your network
- The certificate has changed: on the Connection tab remove the pin, then compare the new fingerprint and trust it
- The console gave no PIN code: update UniFi Access and check that the token has the Credentials scope
- The connection test says the token can't read users or access policies: add those scopes to the token, as team access needs them
- A code shows an error on the Codes tab, which lists upcoming and active codes with their status: Retry tries it again, Sync now sends every change to the console at once, and New code replaces a code (the old one stops working)
- A client's code doesn't open the door: check that the room is linked to that door, that they are inside the time window, and that the reader has a keypad
- Someone is outside right now: unlock the door remotely from the Connection tab while you sort it out
Desks held by members
A member who holds a dedicated desk on a monthly plan gets one standing code that opens the desk's doors at any hour while the plan is paid. It stays the same when the plan renews, stops working a day into a period that hasn't been paid and is revoked when the plan ends.
Courses and your team
A course taught to a cohort can share one code that opens the classroom only around each session, or give each student a code of their own for the sessions they have a place in; you choose for each course. These are visitors on the console too, so they need no other scopes.
Owners, administrators and staff can have lasting access to the doors you choose, at any hour or in set hours on each weekday. Ruumio makes each of them a user on the console with an access policy and a schedule named after Ruumio, changes them when you change the doors or hours (the PIN stays), and deactivates and deletes the user when the person leaves your team. Deleting a user needs UniFi Access 3.1.30 or later; on an older console the user is left deactivated.
Sources
Checked on December 3, 2026 against the maker's own pages. Each link opens the page it names:
- UniFi Access API reference (Ubiquiti, PDF)
- API reference §1.1–1.2: creating the API token, and the console's address on port 12445
- API reference §1.5: UniFi Access 1.9.1 or later, and no API after Identity Enterprise
- API reference §4.2: creating a visitor (the booking's visit and its doors)
- API reference §4.9: assigning a PIN code to a visitor
- API reference §3.2, §3.6, §3.9: registering a user, assigning an access policy and a PIN (the edit:user scope)
- API reference §3.23: deleting a user (UniFi Access 3.1.30 or later)
- API reference §5.2, §5.14: creating an access policy and a schedule (the edit:policy scope)
- API reference §6.1: generating a PIN code (the view:credential scope)
- API reference §7.8–7.9: listing the doors and unlocking one remotely
- Configuring Door Unlock Methods in UniFi Access: which readers take a PIN
- Configuring PIN Unlock in UniFi Access: the PIN length
- Ubiquiti Store, Access readers: each reader's unlock methods (the fingerprint readers with a keypad too)
- Configuring Visitor Schedules in UniFi Access: visitors, their doors and PINs
Questions
Do clients need an app?
No. They get a PIN code by email and enter it on the UniFi Access reader at the door.
Which door systems does Ruumio work with?
UniFi Access consoles: Ruumio makes a visitor with a PIN there for each booking.
What happens to the code when a booking is moved or canceled?
A canceled booking's code is removed from the console. When a booking moves to another time or room, its code follows the new booking.
Which UniFi readers work with booking codes?
Readers with a keypad: G6 Pro Entry, G3 Reader Pro and G2 Reader Pro, G3 Intercom and Intercom, G3 Reader Fingerprint, Reader Flex and Retrofit Reader Fingerprint, as Ubiquiti lists them.
Does the API token expire?
It works for the validity period you chose when making it in UniFi Access. Make a new one before that date and paste it into the Connection tab.
How long are the PIN codes?
As long as your console is set to: Ruumio asks UniFi Access for each PIN, so codes follow the PIN length in the console's settings.
Can staff have a code that works at any time?
Yes. Team access gives an owner, administrator or staff member a code for the doors you choose with no end date. The token then also needs the users and access policies scopes.
Updated December 3, 2026
How Ruumio does it
What this guide covers, as it works in Ruumio.
A PIN of its own for each booking
Each confirmed booking gets a PIN that opens the room's doors only around the booking, with the minutes before and after that you choose.
Read more: A PIN of its own for each bookingThe code where the client looks
The client finds the code in the booking confirmation, again in the reminder, and with the booking in their account. No app is needed: they type it in at the door.
The code follows the booking
A canceled booking's code is revoked on the console, and when a booking moves to another time or room, its code moves with it.
Each room opens its own doors
In each room you tick the doors its bookings' codes should open, so a booking opens only the doors of the room it is for.
A remote unlock for someone outside
When someone is stuck outside, you unlock the door remotely with a button in Ruumio while you sort out the code.
A standing code for a dedicated desk
A member with a dedicated desk on a monthly plan keeps one code for the desk's doors, at any hour, for as long as the plan is paid.
Read more: A standing code for a dedicated desk
Start with Ruumio for free
No credit card needed. Your booking page and booking calendar in a few minutes.
Create account