How to create a sub-user via GoProxies API?
To add an additional sub-user under your main user, you would need to use the auth token that you received from login step and add it into this request. Example below:
In this request these are variable options:
username
- replaceMY_USER
with the username that you want to give to your sub-user.enabled
-true/false
, if you want to the sub-user to be enabled to get traffic set to true if not - false.traffic_limit_amount
- amount of traffic in GBs that the sub-user is allowed to use.period_seconds
- how long the sub-user will be active in seconds.recurring
-true/false
, if you want sub-user to automatically renew once it expires due to"period_seconds"
set it to true, otherwise to false.
Once a sub-user is created you will receive a similar output, which means the sub-user was successfully created:
{"enabled":true,"period_seconds":99999,"period_started_at":"2025-01-01T00:00:00.0Z","recurring":true,"secret":"b09bac352778f29sb1cb55ab255c6def","traffic_limit_amount":10,"traffic_limit_unit":"GB","traffic_used":0,"username":"MY_USER"}
Note: Remember the "secret" provided, as it will serve as the password for directing proxy traffic via the sub-user.
Last updated
Was this helpful?