Skip to main content

Retrieve Token

Retrieves a single residential token's information, optionally with usage statistics. Residential tokens always authenticate with generated username/password credentials.
POST/resi/token

Authentication

Basic username/password authentication

Request Body

token
Required
Type:string
Description:

The token to retrieve information for

usage
Optional
Type:boolean
Description:

Whether to include usage statistics in the response. Defaults to false if not specified. If "usage" is set to false, the response will not include the "usage" array.

Default:false

Code Example

const axios = require('axios');

const url = "https://api.unknownproxies.com/api/v1/resi/token";
const headers = {
"Authorization": "Basic dXNlcjpwYXNz",
"Content-Type": "application/json"
};
const data = {
"token": "your-token-here",
"usage": "your-usage-here"
};

try {
const response = await axios.post(url, {
headers,
data
});
console.log(response.data);
} catch (error) {
console.error('Error:', error.response?.data || error.message);
}

Response Example

{
  "token": "zu8sBXS4gkh7",
  "username": "kGyohRda",
  "authType": "user",
  "password": "bkXBberMQ7",
  "durationHours": 750,
  "status": "active",
  "createdAt": 1752251968,
  "updatedAt": 1754843968,
  "dataUsage": 11574848653,
  "dataLimit": 100000000000,
  "usage": [
    {
      "date": "2025-10-31",
      "usage": 10000000
    },
    {
      "date": "2025-10-30",
      "usage": 222000
    },
    {
      "date": "2025-10-29",
      "usage": 333000
    }
  ],
  "allowedPools": ["us-s", "us-r", "tickets-us-s", "tickets-us-r", "ca-s", "ca-r", "gb-s", "gb-r"]
}

Usage Statistics

When you set the usage parameter to true, the response will include a usage array containing daily data usage statistics. This is helpful for tracking bandwidth consumption over time.

Token Case Sensitivity

Token identifiers are case-sensitive. For example, ABC123def456 is different from abc123DEF456. Make sure to use the exact case when specifying a token in API requests.

After retrieving a token, you can:

To understand the complete token data structure, see the Residential Token Schema documentation.