--- title: "Trigger Door Actions via HTTP Commands" slug: "trigger-door-actions-via-http-api-e18" updated: 2026-05-27T02:51:45Z published: 2026-05-27T02:51:45Z canonical: "knowledge.akuvox.com/trigger-door-actions-via-http-api-e18" --- > ## Documentation Index > Fetch the complete documentation index at: https://knowledge.akuvox.com/llms.txt > Use this file to discover all available pages before exploring further. # Trigger Door Actions via HTTP Commands This guide explains how to trigger door actions on the door phone using HTTP commands from a third-party server. Supported actions include: - Door unlock - Door lock (close) - Keep the door open - Get door status - Deny access ## Compatible Model and Minimum Version - E18: 18.30.11.27 - R20V5: 320.30.12.28 ## Prerequisites Before proceeding, ensure the following conditions are met: - The device must be accessible on the same network as your server. - You have admin access to the device web interface. This article takes E18 as an example. ## How It Works Each door action is triggered by sending an HTTP request to the device. The request must include: - The device IP address - Authentication credentials - The action command - The door(relay) number ## Step 1: Enable Open Door via HTTP 1. Navigate to the device IP in a browser. The login username and password are **admin**(by default). 2. Go to **Access Control > Relay > Open Relay via HTTP**. 3. Enable the feature. 4. Customize the username and password for authentication. ![](https://cdn.document360.io/f09a6106-e976-455e-b2d0-3d88b5385960/Images/Documentation/image-Y0D1OM17.png) 1. Click Submit. > [!NOTE] > Security Recommendation > > Use a unique, strong password for the HTTP relay credentials. Avoid using the default admin credentials. ## Step 2: Check High Security Mode High Security Mode affects which URL format is accepted. To check the current setting, go to **System > Security > High Security Mode**. It is enabled by default. - **High Security Mode Switch OFF:** Both the old URL and the new URL are supported. - **High Security Mode Switch ON:** Only the new URL is supported. ![](https://cdn.document360.io/f09a6106-e976-455e-b2d0-3d88b5385960/Images/Documentation/image-UKGYN972.png) ## Step 3: Use the Standard URL Format Choose the appropriate URL format based on your **High Security Mode** setting. Only the **Action** parameter needs to change between different door commands. ### New URL Format(Recommended) ```plaintext http://{username}:{password}@{device_ip}/fcgi/OpenDoor?action={Action}&DoorNum={DoorNum} ``` **Example — Open Door** ```plaintext http://admin:Admin123@192.168.88.118/fcgi/OpenDoor?action=OpenDoor&DoorNum=1 ``` ### Old URL Format ```plaintext http://{device_ip}/fcgi/do?action={Action}&UserName={username}&Password={password}&DoorNum={DoorNum} ``` **Example — Open Door** ```plaintext http://192.168.88.118/fcgi/do?action=OpenDoor&UserName=admin&Password=Admin123&DoorNum=1 ``` ## Step 4: Replace Parameters Replace the placeholders in the URL with your actual values: | Parameter | Description | | --- | --- | | `{username}` | The Open Door via HTTP username(set in Step 1) | | `{password}` | The Open Door via HTTP password(set in Step 1) | | `{device_ip}` | Device IP address | | `{Action}` | The action to perform(See **Supported Actions** below) | | `{DoorNum}` | The relay to be triggered. - Relay A: DoorNum = 1 - Relay B: DoorNum = 2 | ### Supported Actions | Action | Description | | --- | --- | | OpenDoor | Open the door | | CloseDoor | Close the door | | OpenDoorForever | Keep the door open | | DoorStatus | Get door status | | RefuseOpenDoorWrongCardID | Deny access due to an invalid card | ## Step 5: Examples The following examples use the new URL format. Replace credentials and IP with your own values. ### Open the Door ```plaintext http://admin:Admin123@192.168.88.118/fcgi/OpenDoor?action=OpenDoor&DoorNum=1 ``` ### Close the Door ```plaintext http://admin:Admin123@192.168.88.118/fcgi/OpenDoor?action=CloseDoor&DoorNum=1 ``` ### Keep the Door Open ```plaintext http://admin:Admin123@192.168.88.118/fcgi/OpenDoor?action=OpenDoorForever&DoorNum=1 ``` ### Get Door Status ```plaintext http://admin:Admin123@192.168.88.118/fcgi/OpenDoor?action=DoorStatus&DoorNum=1 ``` ### Deny Access(Invalid Card) ```plaintext http://admin:Admin123@192.168.88.118/fcgi/OpenDoor?action=RefuseOpenDoorWrongCardID&DoorNum=1 ```