API Documentation

Introduction

This documentation provides information on how to use the RemoteNetGuard API to manage accounts and servers.


Quick Links:


API Base URL: https://remotenetgaurd.site

Generate Token API
Endpoint
POST /api/token/generate
Description

Generates an authentication token for API access.

Request Body
Parameter Type Required Description
consumer_key string Yes Consumer API key
consumer_secret string Yes Consumer API secret
Response
{
"access_token": "generated_token_here",
"expires_in": 3600
}
Get Servers ID
Endpoint
GET /api/servers
Description

Retrieves a list of available servers.

Request Headers
Header Type Required Description
Authorization string Yes Bearer token for API authentication
Response
{
"status": "success",
"message": "Servers retrieved successfully",
"data": [
    {
        "server_id": "SR5612345",
        "name": "Server 1",
        'server_url': "https://server1.remotenetgaurd.site",
        'server_rng_cost': 1000,
        "status": "active"
    },
    {
        "server_id": "SR867890",
        "name": "Server 2",
        'server_url': "https://server2.remotenetgaurd.site",
        'server_rng_cost': 2000,
        "status": "active"
    }
]
}
Order API Account
Endpoint
POST /api/account/order
Description

Creates a new account with the provided details.

Request Headers
Header Type Required Description
Authorization string Yes Bearer token for API authentication
Request Body
Parameter Type Required Description
account_name string Yes Name of the account
select_server_id string Yes ID of the selected server
username string Yes Username for the new account
password string Yes Password for the new account
port string Yes Port for the new account
Response
{
"status": "success",
"message": "Account created successfully",
"data": {
    "account_id": "12345",
    "username": "newuser",
    "password": "securepassword",
    "port": "8080"
}
}
Account API Status
Endpoint
POST /api/account/status
Description

Checks the status of an account using an authorization token and account ID.

Request Headers
Header Type Required Description
Authorization string Yes Bearer token for API authentication
Request Body
Parameter Type Required Description
account_id string Yes The ID of the account
Response
Success Response
{
"status": "success",
"message": "Account found",
"data": {
    "status": "active",
    "server_id": "12345",
    "account_id": "67890",
    "name": "John Doe",
    "username": "johndoe",
    "password": "securepassword",
    "port": "8080",
    "remote_url": "https://server.example.com:8080",
    "expiry_date": "Sunday, 10 September 2023"
}
}