DEV Community

Allan Denot for ownVPN

Posted on • Edited on

How to create a Vultr API token

Step 1: Login to your Vultr Account

Go to https://my.vultr.com/ and login to your account.

Step 2: Enable the Vultr API

Click on your name in the top right corner to access a dropdown menu. Select “API” from this menu:

Vultr menu option API

In the Personal Access Token panel, click the large blue “Enable API” button to activate the API:

Vultr activate API

Step 3: Manage Your IP Addresses

Once you have enabled the Vultr API, go to the Access Control Area (Account → API) to whitelist your IP address. This allows the ownvpn MacOS app to utilize the API on your behalf.

Vultr automatically whitelists your current IP address when you enable the API. If your IP address changes, remember to update the whitelist.

To check your current IP address, visit: https://api.ipify.org/

Vultr API whitelisting

If your IP changes frequently, you may opt to whitelist all IP addresses. Note that this is less secure. If you choose this option, take extra precautions to secure your API Personal Access Token.

Vultr API whitelist all

The ownvpn MacOS app stores your API token in MacOS’s keychain to ensure security.

Step 4: Copy Your Personal Access Token

You can find your Personal Access Token on the API page of your Vultr account at any time. Copy this token and enter it into the ownvpn settings, ensuring it is kept secure.

Vultr API copy token

Step 5. Setup ownvpn App

  1. Open the ownvpn app and select “Settings” from the menu bar.
  2. Under “Provider,” choose “Vultr” and select your desired Country/Region.
  3. Click on “Credentials” and enter the API token you copied from the previous step.

    ownvpn provider settings

  4. After saving your settings, a green tick will appear next to the “Credentials” button, indicating that your credentials are correctly configured.

  5. You are now ready to create your first VPN instance.

Top comments (0)