Skip to main content

Create API Logins

Manage API Access

This document explains how to create API logins (X-API-USER and X-API-PASSWORD) in the WAP portal. You may log in to the WAP portal with your root logins on port 5555.

Create API  User and Password

Go to Preferences  >> API Manager

Go to  Create API Account

Now enter the API User Name and password, re-enter the password, and select the  Remote Access Options.

API User Name  -  A user name for the API which we will use with the apiuser

Password - A password for the API user, which we will use with the apiauth

Remote Access Options - If you like to allow the api user to connect from any IP,  you can choose to Allow any IP. If you want to restrict access to certain IPs, you can enter them by selecting Allow the following IPs only.

Allowing any IP is called Open Access.

Restricting access by IP is called Restricted Remote  Access. It is recommended to connect via secured IPs.

After creating the API user account, you may need to store the api password in a secure location.  You can't retrieve the API  password once created. You can only reset the password.

The API passwords are stored in the UNIX password hash format.

Summary

Once created, the API user credentials can be used to authenticate API requests:

  • X-API-USER → API username
  • X-API-PASSWORD → API password

These credentials must be included in every API request using the required authentication headers.