> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.hosthub.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Manually store access codes and automatically share them with guests

Using Hosthub's manual access code creation and automatic sharing functionality is simple and easy.

## Manually store a new access code in a booking

After you created a new access code using your smart device app for a specific booking you can store it in the booking page. This way you can reference it at any time and also you can automatically send it to your guests using an automated message. To store the created access code in a booking:

- Go to the booking page
- Open the **Access code** tab
- Press the **Create access code** button
- Give a descriptive **Name** to your access code, this can be a description of the location of the access device or the door to which it is attached to.
- Enter the code string in the **Code** field
- Click **Save**

![image](https://downloads.intercomcdn.com/i/o/1011605935/89fc6e7dde63037bf3877432/Google+Chrome+-+Hosthub+-+Bookings+-+Q5mZq5JdPG+2024-04-04+at+3_22_20+PM.gif?expires=1782972000&signature=545634eee58ff430160b0ee1f29e7c68ef41b237a6108c97bddd2b87b1eb0a5e&req=dSAmF89%2BmIhcXPMW3nq%2BgdJ8ETXqfeQO3%2FoNALfDu4iZCeqnYxucsvmoJc0Z%0ACssHAC1MI6YI5cELNvzlRA9Igcg%3D%0A)

## Automatically share the booking access code with your guests

Once a new access code has been stored for a booking then this can be sent to your guest automatically using an automated message. In order to do this you need to create a new automated message template with your check in instructions and include the**{allAccessCodes}** variable in it. This way, when the access instructions message is sent to your guest it will include automatically the name and the string of your stored access code.

If no access code is stored in a booking when a new automated message including {allAccessCodes} is scheduled to be sent to the guest (because you forgot to store it), then you will get an email notifying you for the missing info so that you can go and fix the issue by sending the access code with a new message.

![image](https://downloads.intercomcdn.com/i/o/1011610677/b2c8b3689618c6870f68817c/Screenshot+2024-04-04+at+3_06_20%E2%80%AFPM.png?expires=1782972000&signature=ea3282d516501a50da07268e5a05ef163456aa438a44430f8ecf0c4916e0865f&req=dSAmF89%2FnYdYXvMW3nq%2BgX9KHk5jDG03C%2FGRW0sB6h1auC679OkF%2BR8IIOJ7%0AJp8QVDQ%2BUCYDPc%2BAlJYYNDQfFIU%3D%0A)