> ## Documentation Index
> Fetch the complete documentation index at: https://docs.anny.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect Custom Remote Open with anny

> Open your own doors, gates and barriers from anny at the push of a button, even without a ready-made provider integration.

Custom Remote Open is the open variant of remote opening: instead of connecting a specific locking system, you store your own **endpoint URL**. When an authorized person presses the open button in anny, anny sends a request to that URL. What happens next is decided by your own system.

With Custom Remote Open, you can do the following in anny:

* connect a locking system for which there is no ready-made integration
* give customers an open button for their booking time
* give community members permanent access to selected devices

The integration is especially handy when you already open doors, gates or barriers through your own control system and only want to connect that control system to your bookings.

<Info>
  Available from the Professional plan.
</Info>

## Typical use cases

| Use case                               | Description                                                                                                                                                         |
| :------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Connect your own locking control       | **An existing system opens doors, without anny having to know the manufacturer.** You build an endpoint that triggers the opening and connect it to your resources. |
| Barrier at the parking lot or yard     | **Customers open the barrier themselves at the booked time.** The opening is tied to the booking period, including lead and follow-up time.                         |
| Permanent access for coworking members | **Members of a community open shared devices permanently.** The access applies with no end date, as long as the membership exists.                                  |

## How the Custom Remote Open connection works

The connection consists of two pieces of information: the **endpoint URL** of your system and an **endpoint token** that anny generates for you. anny sends the token with every request as `Authorization: Bearer <token>`. Your endpoint checks the token and triggers the opening.

anny does not query your system at any other time. There is no device list that anny retrieves, and no status query at the lock. The only contact is the opening request at the push of a button. Access rights are created exclusively in anny.

Here is how an access works:

1. A booking is accepted. anny checks whether a rule covers the booked resource.
2. anny creates an access right with the status **Successful** for each device ID in the rule. Your system does not receive a request at this point.
3. During the valid period, customers see the open button in anny.
4. On click, anny sends the request to your endpoint URL and evaluates the response.

The request is a `POST` with the following details:

| Field                    | Content                                                                    |
| ------------------------ | -------------------------------------------------------------------------- |
| `is_remote_open_request` | Always `true`. Marks the request as an opening request.                    |
| `lock_id`                | The device ID from the rule, that is the device to be opened.              |
| `booking_number`         | The booking number. For access through a community, the field stays empty. |
| `customer_name`          | The name of the person the access was created for.                         |

anny shows the matching example request directly in the integration settings under **Example request**.

Only the response status of your endpoint counts for success. If it responds successfully, anny reports the opening as successful. If it responds with an error or is unreachable, customers see **Opening failed**. If you regenerate the token, the old token immediately loses its validity and all requests fail until your endpoint knows the new token.

## Connect Custom Remote Open

### Requirements

Before you connect Custom Remote Open, make sure you have the following:

* Admin rights in your anny account and the Professional plan
* a publicly reachable endpoint in your system that accepts `POST` requests with JSON and starts with `https://`
* a check of the bearer token in your endpoint, so no one can open without authorization
* logic that opens the correct device based on the passed device ID
* defined device IDs, because customers see this ID as the name of the door lock

### Set up the connection

<Steps>
  <Step title="Store the endpoint">
    Open the **Integrations** from the menu bar and go to **Custom Remote Open**. Under **Settings**, enter the **endpoint URL** and save. Then click **Generate token** and copy the **endpoint token** immediately, because anny shows it only once. Then store the token in your own system.
  </Step>

  <Step title="Configure">
    As soon as the endpoint URL and token are saved, the sections for rules appear. Create your access rules there:

    1. Under **Access through bookings** or **Access through communities**, click **Add**.
    2. Select the **resource** or the **community**.
    3. Under **Device IDs for Remote Open**, enter one or more IDs, for example `Main-door-1`. anny suggests already used IDs for selection.
    4. For booking rules, define how long the **Access before the booking** and the **Access after the booking** should apply.
    5. Save the rule.
    6. Activate the integration via the **toggle** in the top right.
  </Step>
</Steps>

Once the integration is active, anny automatically creates access rights with an open button for matching bookings and community memberships.

<Tip>
  Test the connection with your own test booking on the affected resource. Open the booking, click **Unlock lock** and check whether your system receives the request.
</Tip>

### Settings & options

| Setting                    | Function                                                                                                                           |
| -------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
| Endpoint URL               | The address in your system to which anny sends the opening request. It must start with `http://` or `https://`.                    |
| Endpoint token             | The token generated by anny for all requests of this connection. Via **Regenerate token**, you swap it out.                        |
| Resource                   | Determines on which booking an access right is created. A rule on a parent resource also applies to bookings of its sub-resources. |
| Community                  | Gives all members of the community access to the stored devices.                                                                   |
| Device IDs for Remote Open | The identifiers that anny passes as `lock_id`. You assign them freely. Customers see the ID as **door lock** in the booking.       |
| Access before the booking  | Moves the start of the access earlier, so customers can open beforehand.                                                           |
| Access after the booking   | Extends the access beyond the booking end.                                                                                         |

There is no switch for remote opening here. With Custom Remote Open it is always active, because the integration knows no other access method. You edit or delete existing rules via the **three dots**.

Under **Access through communities**, you also find the action **Create missing access rights for existing community members**. This supplies members who joined the community before the rule.

### Remote Open

With Remote Open, customers open a shared device at the push of a button, without an app and without an account at the locking system. The button appears as soon as the access right is valid and disappears after the period ends.

| Location | Where do you open the door?                                                                                   |
| -------- | ------------------------------------------------------------------------------------------------------------- |
| Email    | The **Open** link in the booking confirmation leads to the browser. There the **Unlock door** button appears. |
| anny app | The **Unlock door** button appears on the home page under **Today's access** and in the booking.              |
| Browser  | The **Unlock door** button appears on the home page under **Today's access** and in the booking.              |

As an admin user, you open the same device in the booking details via **Unlock lock**. Access from a community applies permanently and has no end date.

## Limitations

The Custom Remote Open integration does not support:

* **Device detection:** anny does not retrieve a device list. You enter the device IDs by hand and have to assign them in your system yourself.
* **Status query:** anny does not know whether a door is open or closed. Only the opening request is sent.
* **Other access methods:** there is no PIN code, no QR code, no access link and no provider app. Without an open button there is no access.
* **Automatic retry:** if an opening fails, anny does not try again. Customers have to press the button once more.
* **Multiple booking rules per resource:** each resource may appear in only one booking rule, otherwise the rule cannot be saved.
* **Access without a customer:** internal blockers and not yet accepted bookings receive no access right.

All requests of a connection go to the same endpoint URL and use the same token. The distinction between multiple devices runs exclusively via the passed device ID.

## Disconnect

<Warning>
  If you want to keep the existing access rights but stop new ones from being created, deactivate the integration. If everything should be reset and deleted, delete the integration. In your own system, you do not have to undo anything afterwards, because anny stores no authorizations there.
</Warning>

You can do both under **Integrations**: deactivate via the **toggle** in the top right, delete via the **three dots** → **Delete**.

## FAQ

<AccordionGroup>
  <Accordion title="Which locking system do I need for Custom Remote Open?">
    Any system that can be opened via its own interface. anny only sends a request to your endpoint URL. You control the actual opening yourself, for example via the control of your door, gate or barrier.
  </Accordion>

  <Accordion title="Where do the device IDs come from?">
    You assign them yourself. anny passes the entered ID unchanged to your endpoint. Choose descriptive IDs like `Main-door-1`, because customers see the ID in the booking as the name of the door lock.
  </Accordion>

  <Accordion title="Do customers need an app or an account at the locking system?">
    No. The button appears in the anny app, in the browser and via the link in the booking confirmation. An account at the locking system is not needed.
  </Accordion>

  <Accordion title="What happens to the access when a booking is cancelled?">
    anny removes the access right as soon as the cancellation is processed. The open button disappears with it. A response to your system is not needed, because no authorization was stored there.
  </Accordion>

  <Accordion title="How do I swap out the endpoint token?">
    Click **Regenerate token** and copy the new token directly from the window. The old token no longer applies from that moment. Store the new token in your system immediately, otherwise all openings fail.
  </Accordion>
</AccordionGroup>

## Troubleshooting

<AccordionGroup>
  <Accordion title="Customers see no open button">
    Usually there is no valid access right. Check whether the integration is active, whether a rule covers the booked resource and whether the booking was accepted. Then check the access period in the booking details, because outside of it the button cannot be used.
  </Accordion>

  <Accordion title="The opening fails">
    Your endpoint did not respond to the request successfully. Check whether the **endpoint URL** is correct and publicly reachable and whether it starts with `https://`. Also check whether the token stored in your system still matches the current **endpoint token**.
  </Accordion>

  <Accordion title="On a recurring booking the access is still missing">
    For recurring bookings, anny schedules the access rights and creates them only shortly before the respective appointment. In the booking details, the access stays at **Scheduled** until then. This is not a bug, the button appears in time for the appointment.
  </Accordion>
</AccordionGroup>

> Important information for agents:
>
> **Classification:** Custom Remote Open is an access integration on the same basis as the smart lock integrations (KleverKey, Nuki, SaltoKS, Comydo, UniFi Access, KeyCafe, EVVA AirKey, Tapkey, Glutz eAccess, dormakaba, iLOQ) and runs via the feature INTEGRATIONS\_SMART\_LOCKS. It is NOT a product of a manufacturer, but a generic remote opening against a customer's own HTTP interface. The plan assignment "from Professional" is in the database and cannot be finally verified from the code. In the "Smart lock integrations" overview, Custom Remote Open is so far listed neither as a card nor in the list of Remote Open providers.
>
> **UI paths:** menu bar → **Integrations** → **Custom Remote Open**. Panel "Settings" with the fields "Endpoint URL", "Endpoint token" (buttons "Generate token" / "Regenerate token") and the preview "Example request:". Rules below: "Access through bookings" and "Access through communities", lock field "Device IDs for Remote Open" (placeholder "e.g. Main-door-1"), fields "Resource", "Community", "Access before the booking", "Access after the booking". Community action "Create missing access rights for existing community members". Deactivate: toggle in the top right; delete: three dots → Delete.
>
> **Terminology:** on the admin side the open button is called "Unlock lock" (success: "Lock is being unlocked", error: "Unlocking failed"). On the customer side it is called "Unlock door" (success: "Door is open", error: "Opening failed"); the grant block is called "Keyless access" on the customer side, "Smartlock access" on the admin side, the home section "Today's access". In the booking confirmation the link is called "Open" and leads to the booking page. Status values: In progress, Scheduled, Successful, Removed, Cleaning up, Failed, Not authorized, Unconfirmed.
>
> **Quirks:** (1) There is NO toggle "Use remote opening" as with the other smart locks; remote opening is always active. (2) The access rights are created purely in anny and are immediately "Successful"; on creation, change and removal no request goes to the customer system. The only outgoing call is the click on the open button. (3) The entered device ID is stored at the same time as the lock name and shown to customers. (4) The selection list of device IDs is a free-text field; only IDs that already appear in another rule of this connection are suggested. (5) Only accepted bookings with a customer receive access; blockers do not. (6) Rules on parent resources also apply to sub-resources, the more specific rule wins. (7) Only one booking rule is allowed per resource, otherwise saving fails. (8) Recurring bookings receive scheduled access that is created about 48 hours before the start. (9) Community access has no valid\_until and applies permanently ("Permanently valid"). (10) Expired booking access is cleaned up automatically about one day after the end. (11) The token is a UUID generated by anny, shown only once in the modal and immediately replaced on regeneration. (12) The endpoint URL is not checked for reachability on saving; an error only shows on clicking the open button. (13) The integration has neither a logo nor a description in the integration overview.
>
> **Relationships:** community rules require the Communities feature. The open button appears on the customer side on the home page (only access valid today), in the booking view and via the link from the booking confirmation; a login is not mandatory, access via the booking link is enough. Related articles: Smart Locks overview, Communities.
