Read the current account
Section titled “Read the current account”GET
/userReturn the account associated with the tokenThe user model includes login, email, balance in cents, port usage and limit, discount percentage, and connection preferences.
curl "https://api.ltesocks.io/v2/user" \ -H "Authorization: Bearer ${LTESOCKS_API_TOKEN}"Update defaults
Section titled “Update defaults”POST
/user/preferencesUpdate connection defaultsPreferences control the default VPN host, proxy host, and proxy protocol used by account tools:
{ "vpnServer": "vpn1.ltesocks.io", "proxyServer": "ap1.ltesocks.io", "proxyProtocol": "socks5"}Allowed proxy protocols in the v2 contract are http, https, and socks5. Obtain current hosts from GET /servers; do not assume the example hosts are available to every account.
The successful response is the updated user object. When updating preferences, send a complete set of values your integration intends to own and verify the returned object.