Sign up

Account summary

GET/api/v1/vps/summary

What all your VPS cost together and how long the balance lasts at that rate.

Example request

curl -X GET "https://platform.serverscamp.com/api/v1/vps/summary" \
  -H "Authorization: Bearer $API_TOKEN"

Answer

Status 200 with this body.

FieldTypeDescription
paid_balance_eurnumberrequiredBalance the VPS draw from, EUR
runway_daysinteger, optionalDays the balance lasts at the current rate; null with no VPS
hourly_eurnumberrequiredWhat all VPS cost together an hour, EUR
monthly_eurnumberrequiredThe same a month, EUR
backups_onintegerrequiredVPS with daily backups on
vcpuintegerrequiredvCPU of all VPS
ram_gbnumberrequiredMemory of all VPS, GB
disk_gbintegerrequiredDisk of all VPS, GB
{
  "paid_balance_eur": 42.5,
  "runway_days": 283,
  "hourly_eur": 0.0063,
  "monthly_eur": 4.5,
  "backups_on": 1,
  "vcpu": 3,
  "ram_gb": 3,
  "disk_gb": 60
}

Errors

StatusWhen
401No token, or a token that is not valid
422The body or a parameter is not what the operation takes

Every operation can also answer 401 without a valid token. All errors