Seam provides a universal API to connect and control many brands of access control systems. This guide provides a rapid introduction to connecting and controlling your Hotek access control system using the Seam API.Hotek systems communicate over TCP via a Seam Bridge installed on the property network.To learn more about other access control systems supported by Seam, head over to our integration page.
Seam provides client libraries for many languages, such as JavaScript, Python, Ruby, PHP, and others, as well as a Postman collection and OpenAPI spec.
pip install seam# For some development environments, use pip3 in this command instead of pip.
bundle add seam
composer require seamapi/seam
Install using nuget: https://www.nuget.org/packages/Seam
// Add to your pom.xml or build.gradle — see Maven Central for details.
# cURL is already installed on most systems. No additional installation needed.# Export your API key as an environment variable:export SEAM_API_KEY=seam_test2ZTo_0mEYQW2TvNDCxG5Atpj85Ffw
Once installed, sign up for Seam to get your API key, and export it as an environment variable:
This guide uses a Sandbox Workspace. Only virtual devices can be connected. If
you need to connect a real Hotek system, use a non-sandbox workspace and API key.
To control your Hotek system via the Seam API, you must first authorize your Seam workspace against your Hotek installation. To do so, Seam provides Connect Webviews: pre-built UX flows that walk you through authorizing your application to control your Hotek system.
import { Seam } from "seam";const seam = new Seam();const connectWebview = await seam.connectWebviews.create({ accepted_providers: ["hotek"],});console.log(connectWebview.login_successful); // false// Send the webview URL to your userconsole.log(connectWebview.url);
from seam import Seamseam = Seam()webview = seam.connect_webviews.create(accepted_providers=["hotek"])assert webview.login_successful is False# Send the webview URL to your userprint(webview.url)
require "seam"seam = Seam.new(api_key: "MY_API_KEY")webview = seam.connect_webviews.create( accepted_providers: ["hotek"])puts webview.login_successful # false# Send the webview URL to your userputs webview.url
<?phpuse Seam\SeamClient;$seam = new SeamClient("YOUR_API_KEY");$webview = $seam->connect_webviews->create( accepted_providers: ["hotek"]);echo $webview->login_successful; // false// Send the webview URL to your userecho $webview->url;
using Seam.Client;var seam = new SeamClient(apiToken: "YOUR_API_KEY");var webview = seam.ConnectWebviews.Create( acceptedProviders: new List<string> { "hotek" });Console.WriteLine(webview.LoginSuccessful); // false// Send the webview URL to your userConsole.WriteLine(webview.Url);
import co.seam.Seam;import co.seam.api.types.ConnectWebview;Seam seam = Seam.builder().apiKey("YOUR_API_KEY").build();ConnectWebview webview = seam.connectWebviews().create( ConnectWebviewsCreateRequest.builder() .acceptedProviders(List.of("hotek")) .build());System.out.println(webview.getLoginSuccessful()); // false// Send the webview URL to your userSystem.out.println(webview.getUrl());
Navigate to the URL returned by the Webview object. Since you are using a sandbox workspace, complete the login flow by entering the Hotek sandbox test credentials:
Bridge connection — the pairing token is prefilled in sandbox mode
Hotek Dashboard Credentials:
Site Name: Any string (e.g., “My Hotek Site”)
TCP Port: Any port number
Hotek SMART Server IP Address: prefilled
Confirm the Connect Webview was successful by querying its status:
var user = seam.Acs.Users.Create( acsSystemId: hotekSystem.AcsSystemId, fullName: "Jane Guest");Console.WriteLine(user.AcsUserId);
var user = seam.acs().users().create( AcsUsersCreateRequest.builder() .acsSystemId(hotekSystem.getAcsSystemId()) .fullName("Jane Guest") .build());System.out.println(user.getAcsUserId());
room_101 = next(e for e in entrances if e.display_name == "Room 101")credential = seam.acs.credentials.create( acs_user_id=user.acs_user_id, access_method="card", allowed_acs_entrance_ids=[room_101.acs_entrance_id])print(credential)
Now that you’ve completed this guide, you can try connecting a real Hotek system. To do so, make sure to switch to a non-sandbox workspace and API key, and ensure you have a Seam Bridge installed on the property network.In addition, if you’d like to explore other aspects of Seam, here is a list of helpful resources:
Access Grants — the recommended way to manage access across providers