Create an access code in 60 seconds
Create an Access Grant with a code access method. Seam generates the PIN and programs it onto the lock.
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_online_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 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. The credential's schedule ends at ends_at. Deleting the grant requests removal of its credentials from the connected device or access system.
Send the PIN to your user
Read the code off the access method once is_issued is true, then send it by SMS or email. The keypad works even if the guest's phone is dead, and nobody installs anything.
Frequently asked questions
Which smart locks support online access codes?
Seam supports online access codes on 543 smart lock models from 32 manufacturers, including Yale, TTLock and Assa Abloy. 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 do I check whether a specific lock can take online access codes?
Call /devices/list and read can_program_online_access_codes on the device. True works today. False means the lock is capable but cannot use it right now. A missing property means the model never does it, so check all three states.
Can I set the PIN code myself instead of letting Seam generate it?
Yes on most online-code locks: the lower-level access codes API takes a custom code. Access Grants generate it for you because that path also handles collisions, retries and the lock's slot limits.
What happens if the lock is offline when I create the grant?
Seam queues the code and programs it as soon as the lock reconnects. The access method stays unissued until then, so watch the access_method.issued event before you send anyone digits.
Do access codes count against a limit on the lock?
Most locks have a finite number of code slots, and some accept only certain schedule shapes. Seam reports those limits per device and reclaims slots as grants end.
Related
- Implement PIN code accessCreate Access Grants and check that a PIN has been issued before sharing it.
- 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.
- Smart locks that support offline access codesEvery model, with the status of each system that issues offline access codes.
- 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.