Sessions

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

GET

List sessions -/user/sessions

Query method

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

Query parameters

IdentifierRegulationsExample
include-apiNot necessarilynullableex-booleanfalse
searchNot necessarilynullablestring195
per-pageNot necessarilynullableinteger95
pageNot necessarilynullableinteger8
sort-byNot necessarilynullablestringapp\_validators\_ex_in_rule""
sort-orderNot necessarilynullablestringin:asc, desc"asc"

Code examples

1async function getUserSessions() {
2   const baseUrl = 'http://apilocal.stableproxy.com/v2';
3   const req = await fetch(baseUrl + '/user/sessions?' + Object.entries({
4         "include-api": false,
5         "search": 195,
6         "per-page": 95,
7         "page": 8,
8         "sort-by": "",
9         "sort-order": "asc"
10      }).map(([key, value]) => key + "=" + value).join('&'), {
11         method: 'GET',
12         headers: {
13            'Authorization': 'API-Token [YOUR TOKEN]',
14            'Content-Type': 'application/json'
15         }
16      }
17   );
18   
19   const res = await req.json();
20}

Examples of answers

GET

View session -/user/sessions/{id}

Query method

GEThttp://apilocal.stableproxy.com/v2/user/sessions/{id}

Query parameters

IdentifierRegulationsExample
id1required78

Code examples

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

Examples of answers

DELETE

Delete session -/user/sessions/{id?}

Query method

DELETEhttp://apilocal.stableproxy.com/v2/user/sessions/{id?}

Code examples

1async function deleteUserSessions{id?}() {
2   const baseUrl = 'http://apilocal.stableproxy.com/v2';
3   const req = await fetch(baseUrl + '/user/sessions/{id?}', {
4         method: 'DELETE',
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

StableProxy

StableProxy

© StableProxy – 2021 - 2025 – Ukraine

Payment methods