Skip to main content

List All Tokens

Retrieves a list of all residential tokens filtered by status. Returned tokens always show generated username/password authentication details.
POST/resi/token/list

Authentication

Basic username/password authentication

Request Body

status
Required
Type:string
Description:

Filter tokens by status

Validation:

Must be "active", "expired", or "deleted"

Code Example

const axios = require('axios');

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

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,
    "allowedPools": ["us-s", "us-r", "tickets-us-s", "tickets-us-r", "ca-s", "ca-r", "gb-s", "gb-r"]
  },
  {
    "token": "HG5zl2QURXJF",
    "username": "newuser2",
    "authType": "user",
    "password": "newpass22",
    "durationHours": 0,
    "status": "active",
    "createdAt": 1754286589,
    "updatedAt": 1754342102,
    "dataUsage": 20964502,
    "dataLimit": 50000000000,
    "allowedPools": []
  }
]

Status Filtering

You can filter tokens by three status types:

  • active - Tokens that are currently operational and can send traffic
  • expired - Tokens that have reached their dataLimit or exceeded their durationHours
  • deleted - Tokens that were manually deactivated via the delete endpoint

Response Format

The endpoint returns an array of token objects (without usage statistics). Each token includes all standard fields from the Residential Token Schema.

Note

This endpoint does not include the usage array in the response. To get usage statistics for a specific token, use the Retrieve Residential Token endpoint with usage: true.

After listing your tokens, you can:

For complete details on all token fields, see the Residential Token Schema documentation.