Issue an offline code in 60 seconds
One Access Grant issues the code. The digits come from a registry the manufacturer keeps synchronized with the lock, so nothing has to reach the door.
Build it with your AI agent
Install the Seam plugin and your coding agent picks up three integration skills: Reservation Automations, Access Grants and Access Codes. It then writes the calls the way we would. Paste the prompt below and let it build.
1. Install the plugin
The Claude Code install also adds our documentation MCP server, so the agent can look up endpoints and device capabilities while it works. Cursor, Codex and other agents get the skills through npx skills add and can add the MCP server there separately.
2. Paste this prompt
How it works
Connect the lock and confirm support
Your user links their lock or access system account through Seam Connect Webview. Seam returns the doors behind it as devices and entrances. Confirm can_program_offline_access_codes is true on what comes back. False means the lock is capable but cannot use it right now, and a missing property means it never does this.
Create an Access Grant
Name the person, the doors and the window, then ask for a offline PIN code in requested_access_methods. Seam works out how to satisfy that on the specific hardware, so the call is the same for a battery deadbolt and a wired reader. Swap device_ids for space_ids to cover a whole unit, or acs_entrance_ids for entrances on an access control system. A time-bound offline code expires at its configured ends_at. Once issued, the Seam API cannot update or revoke the code early; deleting the Access Grant does not invalidate it at the lock. Choose the access window with that limit in mind.
Send the code to your user
Read the digits off the access method once is_issued is true and send them by SMS or email. The lock validates the code with its own clock and keys, so it works with no internet at the door and nobody within Bluetooth range.
Frequently asked questions
Which smart locks support offline access codes?
Seam supports offline access codes on 43 smart lock models from 3 manufacturers, including igloohome, Lockly and Dormakaba. The table on this page comes from Seam's device database, and each model links to its own page with the per-system status and any hardware requirements.
How can a code work on a lock with no internet?
The manufacturer keeps a server-side registry of algorithmically generated codes, synchronized with the lock through shared encryption keys. Seam draws the code from that registry, and the lock recognises it using its own clock. Nothing is programmed onto the device when the code is issued.
Can I change or revoke an offline code early?
No. An offline code cannot be modified, and it cannot be revoked before its expiry, because the lock has no connection to receive the change. Invalidating one early means a factory reset or re-pairing the device. Keep windows short and treat the expiry as the revocation.
Which brands support offline codes through Seam?
igloohome, dormakaba Oracode and Lockly today. The table on this page tracks the live status per system, and each model page lists its own constraints.
What schedules can an offline code have?
Time-bound codes are hourly-bound for short stays or daily-bound for longer ones, and a daily-bound code wants the same clock time in starts_at and ends_at. igloohome and Lockly also issue one-time-use codes. Access Grants pick a valid shape for the device and warn with device_time_constraints_violated when the window cannot be represented.
When should I prefer offline codes over online ones?
When the lock has no reliable connection: remote cabins, basements, parking garages, or fleets where installing bridges is not worth it. If the lock is online, online codes are easier to live with, because they can be changed and revoked at any time.
Related
- Implement offline access codesUnderstand offline code schedules, device restrictions and revocation limits.
- Smart locks that support online access codesEvery model, with the status of each system that issues online access codes.
- Smart locks that support mobile keysEvery model, with the status of each system that issues mobile keys.
- Smart locks that support encoded plastic cardsEvery model, with the status of each system that issues encoded plastic cards.
- Smart locks that support remote unlockEvery model, with the status of each system that supports remote unlock.
- Smart locks that support remote lockEvery model, with the status of each system that supports remote lock.
- Every device and system Seam supportsSearch the whole device database by brand, device type and capability.
- Access control systemsThe wired systems behind the entrances in these grants: Salto, dormakaba, Brivo, ASSA ABLOY and more.
- Smart lock API overviewHow Seam's smart lock API works, from device connection to access automation.