Promo Get available for activation promocodes.

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

GET

Get available promocodes Promo Get available for activation promocodes. User -/promo/available

Query method

GEThttps://api.stableproxy.com/v2/promo/available

Code examples

async function getPromoAvailable() {
   const baseUrl = 'https://api.stableproxy.com/v2';
   const req = await fetch(baseUrl + '/promo/available', {
         method: 'GET',
         headers: {
            'Authorization': 'API-Token [YOUR TOKEN]',
            'Content-Type': 'application/json'
         }
      }
   );
   
   const res = await req.json();
}

Examples of answers

GET

Get active promocodes Promo Get active promocodes for user. User -/promo/list

Query method

GEThttps://api.stableproxy.com/v2/promo/list

Code examples

async function getPromoList() {
   const baseUrl = 'https://api.stableproxy.com/v2';
   const req = await fetch(baseUrl + '/promo/list', {
         method: 'GET',
         headers: {
            'Authorization': 'API-Token [YOUR TOKEN]',
            'Content-Type': 'application/json'
         }
      }
   );
   
   const res = await req.json();
}

Examples of answers