Skip to content

Account

Your account, balance and allowed IPs.

Get your account

curl -s https://api.tpp.io/v1/me -H "Authorization: Bearer $TOKEN"
Field Meaning
pool_bytes Bandwidth bought
used_bytes Bandwidth used
remaining_bytes Bandwidth left
allocated_bytes Bandwidth given to logins
unallocated_bytes Bandwidth not given to any login
allow_ips Where your logins and API keys may be used from; empty is anywhere

Update your account

PATCH /v1/customers/{id}

Use your id from /v1/me. Send any of name, email, password, allow_ips. Changing the password signs out every session.

Allowed IPs

curl -s -X PATCH https://api.tpp.io/v1/customers/$ID \
  -H "Authorization: Bearer $TOKEN" \
  -d '{"allow_ips": ["203.0.113.7", "198.51.100.0/24"]}'

Addresses or CIDR ranges, up to 64. The list replaces the old one; [] allows anywhere. Dashboard sign-in is never restricted. GET /v1/ip shows the address you call from.

Esc