POST
/
vpn
/
servers
/
create
curl --request POST \
  --url https://vpn.bserv.dev/api/v1/vpn/servers/create \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --header 'token: <api-key>' \
  --data id=29 \
  --data server_name=UK5 \
  --data ip_address=IPAddress \
  --data ssh_port=22 \
  --data ssh_password=Password \
  --data ssh_username=root \
  --data max_connection=0 \
  --data country_id=1 \
  --data vpn_type=openVPN \
  --data 'ssh_password_current=Current Password'
{
  "success": true,
  "message": "Server: 19 created successfully"
}

Authorizations

token
string
header
required

Body

application/x-www-form-urlencoded

Response

200 - application/json

OK

The response is of type object.

POST
/
vpn
/
servers
/
create
curl --request POST \
  --url https://vpn.bserv.dev/api/v1/vpn/servers/create \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --header 'token: <api-key>' \
  --data id=29 \
  --data server_name=UK5 \
  --data ip_address=IPAddress \
  --data ssh_port=22 \
  --data ssh_password=Password \
  --data ssh_username=root \
  --data max_connection=0 \
  --data country_id=1 \
  --data vpn_type=openVPN \
  --data 'ssh_password_current=Current Password'
{
  "success": true,
  "message": "Server: 19 created successfully"
}

Authorizations

token
string
header
required

Body

application/x-www-form-urlencoded

Response

200 - application/json

OK

The response is of type object.