Get List of Accounts

May 15, 2025

Table of contents

  1. Request Headers
  2. Responses
  3. Model
  4. Examples
  5. Try It

This endpoint retrieves the complete list of configured API accounts for TemPolor.

Setup TemPolor

https://api.useapi.net/v1/tempolor/accounts

Request Headers
Authorization: Bearer {API token}
Responses
  • 200 OK

    {
      "user_id1": {
        "user_id": "user_id1",
        "updated": 1715791234567,
        "updatedUTC": "2025-05-15T14:30:34.567Z",
        "maxJobs": 10,
        "requestParams": {}
      },
      "user_id2": {
        "user_id": "user_id2",
        "updated": 1715791234567,
        "updatedUTC": "2025-05-15T14:30:34.567Z",
        "maxJobs": 20,
        "requestParams": {} 
      }
    }
    
  • 401 Unauthorized

    {
      "error": "Unauthorized",
      "code": 401
    }
    
  • 404 Not Found

    Returned when no accounts are configured.

Model
{   // TypeScript
  [user_id: string]: {
    user_id: string
    updated: number // timestamp in milliseconds
    updatedUTC: string // ISO date string
    maxJobs: number
    requestParams: {}
  }
}
Examples
  • curl -H "Accept: application/json" \
         -H "Authorization: Bearer …" \
         -X GET https://api.useapi.net/v1/tempolor/accounts
    
  • const apiUrl = `https://api.useapi.net/v1/tempolor/accounts`; 
    const api_token = "API token";  
    const data = { 
      method: 'GET',
      headers: {
        'Authorization': `Bearer ${api_token}`,
        'Content-Type': 'application/json' }
    };
    const response = await fetch(apiUrl, data);
    const result = await response.json();
    console.log("response", {response, result});
    
  • import requests
    apiUrl = f"https://api.useapi.net/v1/tempolor/accounts" 
    api_token = "API token"
    headers = {
        "Content-Type": "application/json", 
        "Authorization" : f"Bearer {api_token}"
    }
    response = requests.get(apiUrl, headers=headers)
    print(response, response.json())
    
Try It