Get List of Accounts
May 15, 2025 (November 21, 2026)
Table of contents
This endpoint retrieves the complete list of configured API accounts for TemPolor. An account TemPolor refused more songs on today (“unlimited gen!”, see the 429 of POST music/song) carries benchedUntil, the time it comes back to song and instrumental requests.
https://api.useapi.net/v1/tempolor/accounts
Request Headers
Authorization: Bearer {API token}
API tokenis required, see Setup useapi.net for details.
Responses
-
{ "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": {}, "benchedUntil": "2026-11-21T18:30:00.000Z" } } -
{ "error": "Unauthorized", "code": 401 } -
Returned when no accounts are configured.
Model
An object keyed by user_id, each holding that account’s configuration as GET accounts/user_id returns it.
The configuration of each account, field by field
{ // TypeScript
[user_id: string]: {
user_id: string
updated: number // timestamp in milliseconds
updatedUTC: string // ISO date string
maxJobs: number
requestParams: {}
benchedUntil?: string // ISO date string, only while the account is paused
}
}
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())