Skip to main content
POST
Execute a predefined command on a VPN server

Authorizations

Authorization
string
header
required

Personal Access Token (PAT) passed in the Authorization header (e.g., Bearer <pat>) for authenticated API requests. PATs are generated via /auth/generate-pat after authenticating through the magic link flow.

Path Parameters

id
string
required
Example:

"60c72b2f5f1b2c001c8e4b1a"

Body

application/json
command
string
required

Name of the predefined command to execute

Example:

"restart"

Response

Command executed successfully

message
string
Example:

"Command 'restart' executed successfully"

response
object