Skip to content

Settings

SDK Reference · Resource

Settings

Read gateway addresses, usage totals, and account-wide configuration.

method

get()

Get account settings

Returns proxy gateway addresses, account usage totals, referral thresholds, and supported crypto currencies for the authenticated account.

Signature

Promiseclient.settings.get(options: SettingsGetOptions = {}): Promise<SettingsGetResponse>

Parameters

NameTypeRequirementDescription
acceptLanguagestringOptionalPreferred language for human-readable API errors. Supported languages: en, ru, uk, de, it, fr, es, zh-hans, ja. Regional language tags and quality weights are accepted; unsupported or omitted values use English.

Example

const result = await client.settings.get();

Returns

SettingsResponse

The operation completed successfully.

typeSettingsResponse10fields
gateways
SettingsGateway[]
Required
—
typeSettingsGateway9fields
id
string
Required
—
name
string
Required
—
region
string
Required
—
hostname
string
Required
Cluster gateway domain, or a server IP when no domain is configured.
hostnames
string[]
Required
The cluster domain, or unique server IPs when no domain is configured.
port_http
number
Required
—
port_socks5
number
Required
—
port_auto
number
Required
—
port_haproxy
number
Required
—
spent_total
number
Required
—
orders_total
number
Required
—
orders_active
number
Required
—
data_available
number
Required
—
data_spent
number
Required
—
referrals
SettingsReferral
Required
—
typeSettingsReferral4fields
reward_balance_percentage
number
Required
—
reward_data_percentage
number
Required
—
reward_min_balance
number
Required
—
reward_min_data
number
Required
—
crypto
SettingsCrypto
Required
—
typeSettingsCrypto1field
currencies
string[]
Required
—
payment_methods
string[]
Required
—
payment_gateways
PaymentGateway[]
Required
—
typePaymentGateway6fields
code
string
Required
—
name
string
Required
—
kind
string
Required
—
supported_currencies
string[]
Required
—
supported_crypto_currencies
string[]
Required
—
requires_crypto_currency
boolean
Required
—

Throws

ApiError

Normalized API, transport, and response processing failure.

  • kind: "validation"The request arguments or business rules are invalid.
  • kind: "authentication"Authentication credentials are missing, expired, or invalid.
  • kind: "permission"The authenticated account cannot perform this operation.
  • kind: "server"ProxyRequest could not complete the operation.
  • kind: "network"The request could not reach ProxyRequest.
  • kind: "unexpected"The response could not be decoded or did not match the SDK contract.
Advanced variants
  • client.settings.getWithResponse(options): Promise<ApiResponse<SettingsGetResponse>>

    Returns response status, headers, ETag and idempotency metadata with the decoded data.