Unlock a door in 60 seconds
Call /locks/unlock_door to request an unlock. Track the action attempt and check result.was_confirmed_by_device: success does not always mean the device confirmed the action. An unlocked state does not tell you whether the door is open.
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_remotely_unlock 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.
Send the unlock command
Send a POST to /locks/unlock_door with the device_id. The response is an action attempt: pending means it is still in progress, and error includes the failure reason. For success, also check result.was_confirmed_by_device because some providers cannot confirm the action on the physical lock.
Check the reported unlock result
Check action_attempt.result.was_confirmed_by_device: some providers report success without physical-device confirmation. Read properties.locked for the reported lock state, or subscribe to lock.unlocked events. Neither an unlocked state nor that event proves the door opened. Use a separate door-position sensor if your workflow needs to know whether the door is open or closed.
Frequently asked questions
Which smart locks support remote unlock?
Seam supports remote unlock on 691 smart lock models from 35 manufacturers, including Yale, Assa Abloy and Salto. 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 fast is a remote unlock?
Wi-Fi locks respond in a second or two. Battery locks behind a Bluetooth bridge or hub take longer, because the bridge has to wake the lock first. The action attempt reports when the command lands, so poll it or listen for lock.unlocked instead of sleeping a fixed delay.
Does remote unlock work when the lock is offline?
No. The command travels over the lock's internet connection, and Seam reports the failure on the action attempt when the lock cannot be reached. For access that has to survive an outage, issue a PIN code or a mobile key: both work at the door without a connection.
Is unlocking a door the same as granting access?
No. /locks/unlock_door requests an unlock now, with no schedule and no credential. It does not physically open the door. To give a person their own access for a window of time, create an Access Grant and let Seam issue the credential. Remote unlock is for letting someone in from an app or a support tool.
Who gets recorded for a remote unlock?
A remote unlock is attributed to your API key, not to a person. When you need a per-user audit trail, request a cloud_key access method on an Access Grant: each unlock through it is attributed to that user identity in the access system's log.
What is an action attempt?
A record of one command's progress. /locks/unlock_door returns it as pending, and Seam updates it to success or error once the lock's system responds. Poll /action_attempts/get with the id; the JavaScript SDK waits for the result by default.
Related
- Implement remote unlockingSend unlock commands and distinguish request success from device confirmation.
- 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 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.