Skip to main content

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.
Once installed, sign-up for Seam to get your API key, and export it as an environment variable:
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.
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)
Confirm the Connect Webview was successful by querying the status.

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 check device.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:
If you prefer to manage individual codes yourself, you can also use the lower-level Access Codes API. Either way, dormakaba Oracode enforces device-specific time constraints, so read the device’s time slots before choosing your 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: If you have any questions or want to report an issue, email us at support@seam.co.