Proxy logins
Separate proxy credentials with their own bandwidth.
A login is a proxy username and password with its own share of your bandwidth. Every account starts with one.
Create
curl -s https://api.tpp.io/v1/logins \
-H "Authorization: Bearer $TOKEN" \
-d '{"name": "client-north", "proxy_user": "acme.north", "proxy_pass": "...", "bytes": 100000000}'
proxy_user: 3-64 letters, digits,_or., unique.proxy_pass: 6-128 characters.bytes: starting bandwidth, optional.plan: needed if you have more than one.
List and read
GET /v1/logins
GET /v1/logins/{id}
Usage
GET /v1/logins/{id}/usage?days=30
Bytes and requests per day, up to 90 days. Add step=3600 for hours.
Update
PATCH /v1/logins/{id}
Send any of name, proxy_user, proxy_pass.
Move bandwidth
POST /v1/logins/{id}/allocate
{ "bytes": 50000000 }
A positive number gives the login bandwidth, a negative one takes unused bandwidth back.
Delete
DELETE /v1/logins/{id}
Unused bandwidth returns to your account.