Retrieve TemPolor API account configuration for user_id

May 15, 2025

Table of contents

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

This endpoint retrieves the details of a specific TemPolor account.

Setup TemPolor

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

The user_id value should correspond to an account configured previously via a POST accounts request.

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

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

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

    Configuration not found. To create configuration use POST accounts.

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