Create an Access Code
Creates a new access code. For granting access, we recommend Access Grants instead: they work across both standalone smart locks and access control systems and manage the underlying codes for you. Use this low-level endpoint only when you need direct control over a code on a single device, such as setting a custom PIN value.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
ID of the device for which you want to create the new access code.
Indicates whether external modification of the code is allowed. Default: false.
Code to be used for access.
4 - 12^\d+$Key to identify access codes that should have the same code. Any two access codes with the same common_code_key are guaranteed to have the same code. See also Creating and Updating Multiple Linked Access Codes.
Indicates whether external modification of the code is allowed. Default: false.
Indicates whether the access code is an offline access code.
Indicates whether the offline access code is a single-use access code.
Maximum rounding adjustment. To create a daily-bound offline access code for devices that support this feature, set this parameter to 1d.
1hour, 1day, 1h, 1d Name of the new access code. Enables administrators and users to identify the access code easily, especially when there are numerous access codes.
Indicates whether native scheduling should be used for time-bound codes when supported by the provider. Default: true.
Preferred code length. Only applicable if you do not specify a code. If the affected device does not support the preferred code length, Seam reverts to using the shortest supported code length.
Indicates whether to use a backup access code pool provided by Seam. If true, you can use /access_codes/pull_backup_access_code.
Deprecated. Use is_offline_access_code instead.
Response
OK
Represents a smart lock access code. See the access_code object.