Features

A list of all publicly available methods for interacting with the API.

GET

Get user features -/user/features

Query method

GEThttp://apilocal.stableproxy.com/v2/user/features

Code examples

1async function getUserFeatures() {
2   const baseUrl = 'http://apilocal.stableproxy.com/v2';
3   const req = await fetch(baseUrl + '/user/features', {
4         method: 'GET',
5         headers: {
6            'Authorization': 'API-Token [YOUR TOKEN]',
7            'Content-Type': 'application/json'
8         }
9      }
10   );
11   
12   const res = await req.json();
13}

Examples of answers

PUT

Toggle features -/user/features

Query method

PUThttp://apilocal.stableproxy.com/v2/user/features

Query parameters

IdentifierRegulationsExample
featuresrequiredarray[]
statusrequiredex-booleanfalse
redirect-urlNot necessarilynullableurl956
features.*requiredstringdistinctin:notify.mail, notify.telegram, notify.sms, notify.push"notify.mail"

Code examples

1async function putUserFeatures() {
2   const baseUrl = 'http://apilocal.stableproxy.com/v2';
3   const req = await fetch(baseUrl + '/user/features', {
4         method: 'PUT',
5         headers: {
6            'Authorization': 'API-Token [YOUR TOKEN]',
7            'Content-Type': 'application/json'
8         },
9         body: JSON.stringify({
10            "features": [],
11            "status": false,
12            "redirect-url": 956,
13            "features.*": "notify.mail"
14         }),
15      }
16   );
17   
18   const res = await req.json();
19}

Examples of answers

StableProxy

StableProxy

© StableProxy – 2021 - 2025 – Ukraine

Payment methods