| Characteristic | Creation Parameter | Description |
|---|---|---|
| Who | user_identity_id or user_identity | The user to whom to grant access. You can either create a user identity separately and specify the ID to the access grant or create a new user identity as part of the Access Grant creation action. |
| Where | acs_entrance_ids | The entrances to which to grant access. You can specify one or more entrances by ID. |
| When | starts_at and ends_at | The access schedule. |
| How | requested_access_methods and mode | The access methods that you want to grant for the user. In each
requested_access_method, specify the desired
mode of access, such as a PIN code, key card, or mobile key
(with an Instant Key). |
mobile_key as the mode for a requested access method, and the resulting mobile key also includes an Instant Key.
To create an Instant Key:
- Identify the entrances to which you want to grant the user access.
- Create a user identity for the user to whom you want to grant access. Alternately, you can create a new user identity as part of the Access Grant creation action.
- Create an Access Grant for the user identity to define the entrances to which the user should have access, the starting and ending times for this access, and the requested access methods, including a mobile key.
Identify Entrances
List the entrances in the access system and identify the ones to which you want to grant the user access.- JavaScript
- cURL
- Python
- Ruby
- PHP
- Seam CLI
CodeOutput
Create a User Identity
You can create a user identity before creating the Access Grant, you can retrieve an existing user identity, or you can skip this step and create a new user identity as part of the Access Grant creation action. To create a user identity, specify the uniqueuser_identity_key, email_address, or phone_number of the user. Also, include the ID of the access system in which you want to grant the user access.
- JavaScript
- cURL
- Python
- Ruby
- PHP
- Seam CLI
CodeOutput
Create an Access Grant
To create an Access Grant, specify the user identity, entrance IDs, starting and ending times, and requested access methods. To issue an Instant Key, specifymobile_key as the mode for a requested access method.
- JavaScript
- cURL
- Python
- Ruby
- PHP
- Seam CLI
CodeOutput
instant_key_url property provides the issued Instant Key. Share this URL with your user. For details, see Delivering Instant Keys.
