Retrieve TemPolor API account configuration for user_id
May 15, 2025
Table of contents
This endpoint retrieves the details of a specific TemPolor account.
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}
API token
is required, see Setup useapi.net for details.
Responses
-
{ "user_id": "user_id1", "updated": 1715791234567, "updatedUTC": "2025-05-15T14:30:34.567Z", "maxJobs": 10, "requestParams": {} }
-
{ "error": "Unauthorized", "code": 401 }
-
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())