GET /api/v1/vm
Parameters
- vmid: this parameter represents the identifier (ID) for your VPS.
Request
curl -X GET "https://hammervm.com/api/v1/vm?vmid=1" -H "HVM-Key: api-key-123" Response
{
"vmId": 1,
"host": "2a07:e05:3:f::1",
"password": "KITTENS9.helpful",
"operatingSystem": "Debian 12",
"nextBillingDate": "2025-06-07 10:10:57.595",
"isActive": true
}
"vmId": 1,
"host": "2a07:e05:3:f::1",
"password": "KITTENS9.helpful",
"operatingSystem": "Debian 12",
"nextBillingDate": "2025-06-07 10:10:57.595",
"isActive": true
}
Errors
- 401 Unauthorized: The API Key isn't allowed to access this endpoint.
- 403 Forbidden: You do not have permission to access the target VPS.
- 500 Internal Server Error: An unexpected error occurred on the server.