Back to Docs

API REFERENCE

Base URL: https://api.wensor.cloud

Authentication

All authenticated endpoints require a Bearer token in theAuthorization header. Obtain a token via POST /api/v1/auth/login.

Authentication

/api/v1/auth
POST/api/v1/auth/login

Authenticate and receive an access token.

POST/api/v1/auth/register

Create a new account.

POST/api/v1/auth/refresh

Refresh an expired access token.

DELETE/api/v1/auth/logout

Revoke the current access token.

Servers

/api/v1/servers
GET/api/v1/servers/

List all servers for the authenticated user.

POST/api/v1/servers/

Create a new server instance.

GET/api/v1/servers/{id}

Get details of a specific server.

PATCH/api/v1/servers/{id}

Update server configuration.

DELETE/api/v1/servers/{id}

Delete a server and all associated data.

POST/api/v1/servers/{id}/power

Send power action (start, stop, restart, kill).

GET/api/v1/servers/{id}/stats

Get real-time resource usage statistics.

Billing

/api/v1/billing
GET/api/v1/billing/invoices

List all invoices for the authenticated user.

GET/api/v1/billing/invoices/{id}

Get a specific invoice with line items.

POST/api/v1/billing/invoices/{id}/pay

Pay an outstanding invoice.

GET/api/v1/billing/balance

Get current account balance and credits.

POST/api/v1/billing/credits/add

Add credits to account via payment method.

Network

/api/v1/network
GET/api/v1/network/ips

List all IP addresses assigned to your account.

GET/api/v1/network/ddos/attacks

Get recent DDoS attack logs.

GET/api/v1/network/ddos/stats

Get mitigation statistics and traffic data.

POST/api/v1/network/firewall/rules

Create a new firewall rule.

DELETE/api/v1/network/firewall/rules/{id}

Delete a firewall rule.

VPS

/api/v1/vps
GET/api/v1/vps/

List all VPS instances.

POST/api/v1/vps/

Provision a new VPS.

GET/api/v1/vps/{id}

Get VPS details and status.

POST/api/v1/vps/{id}/reinstall

Reinstall OS on the VPS.

POST/api/v1/vps/{id}/resize

Upgrade or downgrade VPS resources.

GET/api/v1/vps/{id}/console

Get noVNC console access URL.