Application Programming Interface (API) for VPS Creation and can be used for various other purposes as well.
Brought by UnknownVPS Team
Bot Link: Discord Bot by LongZ3r
- LongZ3r - Discord Bot Contribution
To deploy this project on your trusted infrastructure. This guide considers you have Node 16 or 18 installed and you are doing all things in one go.
mkdir -p Hapow sudo apt-get install curl -y cd Hapow curl -Lo package.json "https://github.com/unknownvps/hapow/raw/master/package.json" curl -Lo updater.js "https://github.com/unknownvps/hapow/raw/master/updater.js" npm i node updater.js cd unknownvps-api/dist nano .envStep 10 - Create a settings.json file and fill the required details from example settings.json in the repository
nano settings.json node index.js GET /api/ping| Parameter | Type | Description |
|---|---|---|
None |
string |
Get API Response Time |
POST /api/users/create| Parameter | Type | Description |
|---|---|---|
email |
string |
Required. Email of user to create. |
discordId |
string |
Required. Discord Id of user to create. |
POST /api/users/verify/mail| Parameter | Type | Description |
|---|---|---|
email |
string |
Required. Email of user to verify. |
discordId |
string |
Required. Discord Id of user to verify. |
POST /api/users/verify/token| Parameter | Type | Description |
|---|---|---|
token |
string |
Required. Token received on email |
discordId |
string |
Required. Discord Id of user to verify. |
GET /api/users/info/${discordId}| Parameter | Type | Description |
|---|---|---|
discordId |
string |
Required. Discord Id of user to get data from. |
POST /api/vps/add| Parameter | Type | Description |
|---|---|---|
vps_name |
string |
Required. Name of VPS. |
vps_os |
string |
Required. OS of VPS. |
vps_pass |
string |
Required. Password of VPS for the defined user. |
vps_user |
string |
Required. User for VPS. |
vps_ip |
string |
Required. IP to access VPS. |
POST /api/vps/assign| Parameter | Type | Description |
|---|---|---|
discordId |
string |
Required. Discord ID to assign VPS to. |