Create a User Identity
Use the Seam API to create auser_identity. A user identity represents the hotel guest.
- JavaScript
- cURL
- Python
- Ruby
- PHP
- C#
Code:Output:
Create an Access Grant
To create an Access Grant, specify the user identity, entrance or space IDs, and starting and ending times. Includemobile_key as a requested access method.
- JavaScript
- cURL
- Python
- Ruby
- PHP
- C#
Code:Output:
Deliver the Instant Key
Share the generatedinstant_key_url with your user in your preferred way, depending on your product flow and guest experience. For most use cases, the simplest way to deliver an Instant Key is using a link in a text message or email. This method works well if you already collect the guest’s phone number or email at booking.
Note that Instant Keys are also designed to have an appropriately-short validity period, as indicated by the Instant Key resource’s expires_at property.
