githubEdit

Programming Code-Based Latch Credentials

Learn how to create Latch PIN codes.

Requirements for Syncing PIN Code Access Updates

If you want to sync access updates to Latch-controlled entrances remotely, you must install the hard-wired Latch hubarrow-up-right to connect to all the wireless entrances. Once installed, you can use Seam to program code-based credentials, and the changes will sync automatically through the hub.

Alternately, you can update entrances manually using the Latch Manager Apparrow-up-right whenever you've made changes to your users' access.


Program a Code-Based Latch Credential

To use the Seam API to program codes for users in a Latch ACS:

  1. Create an ACS user.

    • Specify the acs_system_id of the Latch ACS in the building to which you want to grant the new user access.

    • Specify the details of the new ACS user, such as their full_name, email_address, and so on.

  2. Create an ACS credential.

    • Specify the acs_user_id of the user that you just created.

    • Specify the ID of the entrance to which you want to grant access. Note that you must create a separate credential for each entrance to which you want to grant the ACS user access.

    • Specify the desired start and end dates and times for this access.

    • Set the access_method to code.

    Creating a new acs_credential object prompts the Latch ACS to generate a PIN code for the user.

circle-info

When you create a credential for a Latch ACS, you cannot specify a custom code. Instead, you must let Latch generate the PIN code.

The following example walks you through this process:

Code:

Output:


Next Steps

To learn more about using the Seam API with your Latch ACS, see the following topics:

Last updated

Was this helpful?