Create or update TemPolor API account
May 15, 2025
Table of contents
This endpoint configures a TemPolor API account with the provided credentials.
https://api.useapi.net/v1/tempolor/accounts
Request Headers
Authorization: Bearer {API token}
Content-Type: application/json
API token
is required, see Setup useapi.net for details.
Request Body
{
"requestParams": {},
"maxJobs": 10
}
-
requestParams
is required, see Setup TemPolor for details on how to obtain it. -
maxJobs
is optional, the maximum number of concurrent jobs allowed for this account.
Default is 10.
Responses
-
{ "user_id": "123456789", "updated": 1715791234567, "updatedUTC": "2025-05-15T14:30:34.567Z", "maxJobs": 10, "requestParams": {} }
-
{ "error": "Parameter requestParams is required", "code": 400 }
-
{ "error": "Unauthorized", "code": 401 }
-
{ "error": "Subscription required", "code": 402 }
Model
{ // TypeScript
user_id: string
updated: number // timestamp in milliseconds
updatedUTC: string // ISO date string
maxJobs: number
requestParams: {}
}
Examples
-
curl -X POST https://api.useapi.net/v1/tempolor/accounts \ -H "Accept: application/json" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer …" \ -d '{ "requestParams": {}, "maxJobs": 10 }'
-
const apiUrl = `https://api.useapi.net/v1/tempolor/accounts`; const api_token = "API token"; const data = { method: 'POST', headers: { 'Authorization': `Bearer ${api_token}`, 'Content-Type': 'application/json' }, body: JSON.stringify({ requestParams: {}, maxJobs: 10 }) }; const response = await fetch(apiUrl, data); const result = await response.json(); console.log("response", {response, result});
-
import requests import json apiUrl = "https://api.useapi.net/v1/tempolor/accounts" api_token = "API token" headers = { "Content-Type": "application/json", "Authorization": f"Bearer {api_token}" } payload = { "requestParams": {}, "maxJobs": 10 } response = requests.post(apiUrl, headers=headers, data=json.dumps(payload)) print(response, response.json())