Overview
Seam provides a universal API to connect and control many brands of locks. This guide provides a rapid introduction to connecting and controlling your dormakaba Oracode locks using the Seam API. To learn more about other device brands supported by the Seam API, such as Yale, Schlage, and August, head over to our integration page. Note that dormakaba offers multiple lines of products, including Lyazon, Sapphire, Oracode, and more. This guide is specifically for dormakaba Oracode.1 — Install the Seam SDK
Seam provides client libraries for many languages, such as JavaScript, Python, Ruby, PHP, and others, as well as a Postman collection and OpenAPI spec.- JavaScript / TypeScript (npm, GitHub)
- Python (pip, GitHub)
- Ruby Gem (rubygem, GitHub)
- PHP (packagist, GitHub)
- Java (GitHub)
- C# (nuget, GitHub)
- Go (GitHub)
- JavaScript
- Python
- Ruby
- PHP
- C#
This guide uses a sandbox
workspace. You can
only connect virtual devices to a sandbox workspace. If you need to connect
real Oracode devices, use a non-sandbox workspace and API key.
2 — Link Your dormakaba Oracode Account with Seam
To control your dormakaba Oracode locks using the Seam API, the owner or manager of these locks must first authorize your Seam workspace to access their dormakaba Oracode account. To do so, Seam provides Connect Webviews, which are pre-built UX flows that walk the device owner or manager through authorizing your application to control Oracode locks.This guide discusses using a Seam sandbox workspace with virtual devices.
However, to connect real devices to Seam, some manufacturers may require
additional prerequisite setup steps. For dormakaba Oracode-specific
instructions, see the dormakaba Oracode device integration
guide.
Request a Connect Webview
Authorize Your Workspace
Navigate to the URL that the Connect Webview object returned. Because you are using a sandbox workspace, complete the login flow by entering the following dormakaba Oracode sandbox test account credentials:- username: jane
- site: Ocean Beach Vacations
- time zone: (Any)
3 — Retrieve dormakaba Oracode Devices
After a dormakaba Oracode account is linked with Seam, you can retrieve the connected devices.4 — Grant Access on a dormakaba Oracode Lock
dormakaba Oracode grants access exclusively through access codes—there is no remote unlock or mobile key. Each door programs either online or offline access codes, depending on whether it is gateway-connected. Seam detects this automatically, so checkdevice.can_program_online_access_codes and device.can_program_offline_access_codes to see which applies.
We recommend granting access with Access Grants, Seam’s high-level, device-agnostic API. An Access Grant creates the correct dormakaba Oracode access code for you and manages its lifecycle:
starts_at and ends_at. For full details—including online vs. offline codes, checking time constraints, and hourly- and daily-bound codes—see Creating dormakaba Oracode Access Codes.
dormakaba Oracode does not let you specify a code for an access code. Instead
it auto-generates a six-digit code, which the Seam API returns. If you try to
pass the
code argument to the access code create function, the Seam API
returns an error.Next Steps
Now that you’ve completed this guide, you can try to connect a real dormakaba Oracode device. To do so, make sure to switch to a non-sandbox workspace and API key because you cannot connect real devices to sandbox workspaces. In addition, if you’d like to explore other aspects of Seam, check out the following helpful resources:- Schlage Getting Started Guide
- Yale Getting Started Guide
- SmartThings Getting Started Guide
- Configuring webhooks for device events
- Core Concepts