Create or update TemPolor API account

May 15, 2025 (November 16, 2026)

Table of contents

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

This endpoint configures a TemPolor API account with the provided credentials.

Setup TemPolor

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

Request Headers
Authorization: Bearer {API token}
Content-Type: application/json
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
  • 200 OK

    {
      "user_id": "123456789",
      "updated": 1715791234567,
      "updatedUTC": "2025-05-15T14:30:34.567Z",
      "maxJobs": 10,
      "requestParams": {}
    }
    
  • 400 Bad Request

    {
      "error": "Parameter requestParams is required",
      "code": 400
    }
    
  • 401 Unauthorized

    {
      "error": "Unauthorized",
      "code": 401
    }
    
  • 402 Payment Required

    {
      "error": "Subscription required",
      "code": 402
    }
    
Model

The saved account, in the same shape as GET accounts/user_id: its user_id, update time and maxJobs.

The saved account configuration, field by field
{   // 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())
    
Try It