
Create a User Identity
Use the Seam API to create auser_identity. A user identity represents the hotel guest.
Code:
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.
Code:
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.

expires_at property.